-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add slots to the Tree and Tree item components, and then use Tree component in GScan #537
Conversation
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
==========================================
+ Coverage 80.66% 80.93% +0.26%
==========================================
Files 67 67
Lines 1319 1327 +8
Branches 80 82 +2
==========================================
+ Hits 1064 1074 +10
+ Misses 232 231 -1
+ Partials 23 22 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Huh, fixing tests took most of the time. Lessons learned:
|
Just needs a couple unit tests to cover the sorting of workflows, then should be ready for review by tomorrow morning 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice.
Rebased, fixed conflicts. |
Fixed conflicts. Now waiting for CI |
@@ -106,71 +106,62 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
v-if="!isLoading && sortedWorkflows && sortedWorkflows.length > 0" | |||
class="c-gscan-workflows" | |||
> | |||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above this part we have the GScan filter, recently merged ☝️ did some manual testing after fixing conflicts, but thought it was still good to let reviewers know what changed recently
return -1 | ||
} | ||
return 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bug in how sorting is being done. With this I think we should get the right behaviour. Tested with two workflows, altering their states. It should be OK now 🤞
Will need to add more e2e/unit tests for the sorting of GScan I think. Will create an issue for that.
Alright, if CI passes, should be ready for review again. |
I'll try to get this one reviewed and merged once it is deconflicted. |
Sorry, I hadn't noticed it had conflicts. Will fix these later (woulf be nice if GitHub added a notification for every PR that had new conflicts since my last visit/commit). |
…rkflow node to a tree item node
Did a bit of testing, appears to be OK. So re-requesting @oliver-sanders ' review, since I had to fix conflicts related to the Cylc Object mutations PR. Hopefully I didn't forget anything 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, mutations seem happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
These changes partially address #502
For the hierarchy in GScan, we don't need/want to re-create a tree/treeitem components pair. Instead, we should be able to use Vue's components slots.
This PR was part of the hierarchy PR for GScan. That PR, however, will take a bit longer to be ready to be merged. And other PR's pending review will also modify the GScan component. So having this simpler PR will make it easier, I think, to merge this change and simplify the hierarchy PR to GScan.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.