-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[ui] Multi-condition start/revert/edit buttons when a job isn't running #24985
Conversation
e812503
to
d1fb845
Compare
@@ -1215,3 +1217,117 @@ function getScenarioQueryParameter() { | |||
return mirageScenario; | |||
} | |||
/* eslint-enable */ | |||
|
|||
export function createRestartableJobs(server) { |
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.
Sets jobs/versions up both in our mocked mirage smallCluster (where we can preview this), but also in a way that our tests can leverage it easily via import.
5a927eb
to
02e2161
Compare
02e2161
to
cad7a7a
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.
LGTM!
ui/app/routes/jobs/job/index.js
Outdated
// TODO: looks like this watcher is pushing me over the "Browser is freaking out" max connections limit | ||
// versions: this.watchVersions.perform(model), |
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.
Does commenting this out leave the watchRelationship
defined below orphaned? Any consequence to that? Missing this doesn't seem to generate any extra HTTP requests from what I can see in the devtools.
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.
yeah it's only this line in the controller.set('watchers'
bit that causes the extra blocking-query stuff.
I left this commented out because I wanted to be consistent on this page about how we watch for resource updates, but I think I've just made peace with loading it on-demand via the component. Going to remove the versions-loading stuff from the route file.
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 👍
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
b146684
to
aa3eba3
Compare
Stopped:
![image](https://private-user-images.githubusercontent.com/713991/408391017-ac2e3613-4418-4f38-815a-923ed47d4b68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzA1MDYsIm5iZiI6MTczOTMzMDIwNiwicGF0aCI6Ii83MTM5OTEvNDA4MzkxMDE3LWFjMmUzNjEzLTQ0MTgtNGYzOC04MTVhLTkyM2VkNDdkNGI2OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwMzE2NDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ODJkNDgwYWIwNTNmNDMxMDBkN2E2YjI3MWIyNTE4MjE4NDI2YjJmMTg0MzgwYWEzNTQwMzUyNmJmZDNkZTA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jfPzg-ZizZNWh5PJ4COb2ceIGh1b0drGpnCeXv9XYQc)
Failed, but once upon a time it was running:
![image](https://private-user-images.githubusercontent.com/713991/408390922-dba9112b-7ff3-4341-90ab-e5431416719d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzA1MDYsIm5iZiI6MTczOTMzMDIwNiwicGF0aCI6Ii83MTM5OTEvNDA4MzkwOTIyLWRiYTkxMTJiLTdmZjMtNDM0MS05MGFiLWU1NDMxNDE2NzE5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwMzE2NDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZGZmMmUxNDBhNjI2YjM0OWU0MGEzZTBhYTg4ZmVjYTJhOGExZTM0NTg3M2I5ZWMyNzk3ZmE2MmNhNDI2N2NhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mrhR793xCZeV23XmgMIYYHJ_dIbQMsWdCyY5nodvB1U)
Failed, has always been a failure:
![image](https://private-user-images.githubusercontent.com/713991/408391141-5f1ca8c5-23c5-4ec6-9f50-7ef7459b953e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzA1MDYsIm5iZiI6MTczOTMzMDIwNiwicGF0aCI6Ii83MTM5OTEvNDA4MzkxMTQxLTVmMWNhOGM1LTIzYzUtNGVjNi05ZjUwLTdlZjc0NTliOTUzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwMzE2NDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzJkNjBhZGMwMTVlZTAxNjI2MDE1MGNhYTYxNGRjZDFlZTdmMzJkMTkzZGJkNTA4M2E2MTlmMTk5ZmI1ZDNhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FapYQErZLEn5zufWHdcfoC53w8EPq1X82MF3M61N5JI)
Resolves #24980