-
Notifications
You must be signed in to change notification settings - Fork 29
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
set default log file by job outcome #2025
base: master
Are you sure you want to change the base?
set default log file by job outcome #2025
Conversation
dfe8147
to
8f97803
Compare
f31427b
to
44e4d78
Compare
LGTM. Works well. Looking at the "network" tab in the web inspector, it looks like we get two We should be able to disable this check if the file is specified in the initial inputs (the query is only needed if the file is not specified). |
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.
👍
Note, we may need to wait until cylc/cylc-uiserver#657 is merged? |
9706db5
to
6e3f8d1
Compare
fix re-implemented based on review fix broken E2E test fix tests review ammends added change log fix linting issue fixed unit tests review amends review amends 2 fixed issue with query call fix linting fix linting fixed issue with network requests review amends fix unit tests split getDefaultFile into workflow and job functions
4b2d273
to
0f4541b
Compare
@@ -14,3 +14,4 @@ window.ResizeObserver ??= ResizeObserverStub | |||
// Mock element scroll API as not currently included in jsdom: | |||
// https://github.com/jsdom/jsdom/issues/1422 | |||
Element.prototype.scrollBy ??= function () { } | |||
Element.prototype.scrollIntoView ??= function () { } |
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.
Ok, might as well put the whole lot in to avoid potential future pain for devs:
Element.prototype.scrollIntoView ??= function () { } | |
Element.prototype.scrollIntoView ??= function () { } | |
Element.prototype.scroll ??= function () { } | |
Element.prototype.scrollTo ??= function () { } |
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.
Although I'm curious as to why this is needed on this branch?
This pr now implements setting default log file by job outcome in two ways:
If the user navigates to the log view through the node menu the job state is passed to the view as in this pr...
master...MetRonnie:cylc-ui:menu-log-file
If the user manually types in the path of the job via the input in the log view a new query is made as in this pr...
offline data: enable querying failed jobs cylc-uiserver#657
Closes #1241
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.