-
Notifications
You must be signed in to change notification settings - Fork 30
Xtriggers and task run mode in info view #2102
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
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
a7d0e0a
to
8e4dc72
Compare
Note to self - remove the note from cylc doc added in cylc/cylc-doc#816 about info view not showing xtriggers. |
PR is ready for review, but only works in combination with cylc/cylc-flow#6671 |
077f8cd
to
73a93e2
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
73a93e2
to
0356607
Compare
0356607
to
b5be56b
Compare
(I've started looking at this one) |
For context, task filtering based on xtrigger-derived state & task icon badges will follow in future PRs, this one is just about the info view. |
LGTM, small issue with xtrigger sorting and trigger time calculation. Note, we could just replace the |
d741ed5
to
6c5f082
Compare
I've removed seconds. Forgot about retry triggers when I did that. Thought that minutes would be fine.
I've done nothing to sort the items. I imagine accidentally shearing seconds off them won't help. It seems to have sorted itself out in the process of fixing the other issues. |
c977b7c
to
97c4037
Compare
Show wall_clock Trigger time in Z time. * Use v-table for xtriggers * Get rid of the trigger time column and modify the trigger_time to ISO in place * Remove unwanted css add sorting for xtriggers update test to reflect sort
97c4037
to
6478c48
Compare
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="xt in xtriggers" :key="xt"> |
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.
key
is supposed to be a primitive like string or number - https://vuejs.org/api/built-in-special-attributes.html#key
<tr v-for="xt in xtriggers" :key="xt"> | |
<tr v-for="xt in xtriggers" :key="xt.id"> |
const xtriggers = this.task?.node?.xtriggers | ||
xtriggers.forEach(xtrigger => { | ||
if (xtrigger.satisfied === true) { | ||
xtrigger.satisfactionIcon = mdiCheckboxOutline | ||
} else { | ||
xtrigger.satisfactionIcon = mdiCheckboxBlankOutline | ||
} |
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.
This is mutating the task
prop, which should be avoided as it could lead to confusing behaviour.
Edit: seeing as I'm looking at this, I've addressed it quickly: wxtim#7
.get('.c-info .v-expansion-panel:nth-child(4)') | ||
.find('button') | ||
.click({ force: true }) | ||
.get('.v-expansion-panel--active') | ||
.should('have.length', 4) | ||
|
||
.get('.c-info .v-expansion-panel:nth-child(5)') | ||
.find('button') | ||
.click({ force: true }) | ||
.get('.v-expansion-panel--active') | ||
.should('have.length', 5) | ||
|
||
.get('.c-info .v-expansion-panel:nth-child(6)') | ||
.find('button') | ||
.click({ force: true }) | ||
.get('.v-expansion-panel--active') | ||
.should('have.length', 6) |
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.
What's the use in testing the same mechanism repeatedly? Better to test that clicking the expansion panel titled "prerequisites" leads to a prerequisite task being visible and so on?
Edit: #2102 (comment) was marked as resolved but is not?
Requires cylc/cylc-flow#6671 [MERGED]
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.