-
Notifications
You must be signed in to change notification settings - Fork 94
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
review: fix waiting tasks #2938
review: fix waiting tasks #2938
Conversation
@sadielbartholomew @matthewrmshin bafa9d7 changes the approach so that waiting tasks only get displayed if requested by the user. See what you think about the approach, if you approve I'll fix the tests. Otherwise the simplest solution would just be to remove the "waiting" task state from cylc review. |
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.
I have not yet had a chance to review this, but Travis has picked up that one of the Cylc Review sub-tests needs one change to reflect the revised approach.
bafa9d7
to
9945c6d
Compare
Base changed to 7.8.x, cylc-review temporally removed on master so doesn't need a second PR against master. |
(Will we remember to make the same fix later though, when |
Good point! Maybe if we create a ticket, add the commit where it was removed, and a link to the branch |
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.
Issue recreated on master (7.8.x
) branch, & fixed according to the solution described:
waiting tasks only get displayed if requested by the user
For ease of reference for those reading or reviewing this PR, it changes the default page-load state, & UI, of the 'Display Options' top area as follows, where the tasks then shown are those you would expect based on correct application of task status filters in the latter case :
Review service started from 7.8.x
:
... & from this branch:
A few non-essential observations, that I think we should address before merge simply while we are considering this:
-
The icon displayed for the waiting task status is not really appropriate:
Can we change it to the one I also captured here for the job status of the submitted task, with the clock (glyphicon-time
from Inspection on the web element), which implies waiting or at least much more so than the current "play" symbol? -
[See sub-comment.]
9945c6d
to
1e037c8
Compare
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.
Feedback addressed, where I'll bump the point about the waiting task status icon to the Issue #2833 as it not strictly the domain of this PR.
That wouldn't be appropriate as it suggests there is a job running. We could, however, just remove the job icon altogether. |
At present waiting tasks do not appear in Cylc Review due to a SQL query error.
We were joining the tasks and jobs tables. In SQL terms
JOIN
means intersection. As waiting tasks do not have jobs they were excluded in the intersection. I've changed theJOIN
toLEFT JOIN
to include tasks with out jobs.