-
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
namespace refactoring #12082
namespace refactoring #12082
Conversation
We need to adapt the test due to recent namespace changes.
This will give us 'correct' URLs for free when we only pass a `job`-model to a `LinkTo` that links to the `jobs.job.*`-routes.
The new ID handling gives us this behavior for free and we don't need to drill the namespace down through all the route-layers anymore.
* less clever™ metaprogramming when checking for expectedURL * clicking slices job-client-status-summary needs to change its behavior and not pass the namespace query-param anymore.
Default namespaced jobs don't append the `@default`-id anymore due to recent `jobs.job#serialize` changes.
Recent changes changed the behavior of not adding the `@default` -namespace - we need to adapt the tests accordingly
There is no need to check the namespace query-param anymore with `urlWithNamespace` but some tests still are using this. We refactor the tests to be less clever and check the URL in a more manual approach by explicitly defining how the URL should look like if a job belongs to a namespace.
We need to access job-details differently when they have a namespace due to recent namespace changes - we need to make the tests reflect that.
We need to change the way we access `JobDetail`-pages based on recent namespace changes.
* change the breadcrumbs generation to use `idWithNamespace` * adapt tests to reflect new URLs for jobs with namespaces
URLs have changed - tests need to reflect that.
Ember Asset Size actionAs of 02218c6 Files that got Bigger 🚨:
Files that stayed the same size 🤷:
|
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.
After pairing on this together this looks good to me - excited to see this go in. 👏
Ember Test Audit comparison
|
Ember Test Audit flaky testsEmber Test Audit detected these flaky tests on main:
|
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR refactors namespaces in the Nomad UI. Namespaces in the Nomad UI were designed as query parameters and they will now be serialized in the URL with job ids and csi volumes.
RFC: https://docs.google.com/document/d/1ssx1q0k1c3wYhSBS0DIY08njk3jfUdy2cODhgkC7c24/edit