Skip to content
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

Backport of [ui] Fixes double-namespace-query-param when getting versions into release/1.9.x #24490

Open
wants to merge 1 commit into
base: release/1.9.x
Choose a base branch
from

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #24466 to be assessed for backporting due to the inclusion of the label backport/1.9.x.

The below text is copied from the body of the original PR.


Resolves #24444

I was using a custom +=-based url modifier to add the ?diffVersion to the query to get job versions, ignoring that this was also happening in a nested addToPath method if other query params were inherently present — which is the case if the job has a non-default namespace.

This resulted in a url like job/:jobid/versions?namespace=myNS?diffs=true&diffVersion=3

This PR fixes the double ? and lets the well-vested addToPath() handle all relevant URL param appending.

To test, try applying a namespace, running a job within it, making a new version of it, and checking out the versions page. Before, you'd get 404s and "No changes"; now you should get 200s and version changes.

image
Overview of commits

Copy link

Ember Test Audit comparison

release/1.9.x 3a1ae24 change
passes 1580 1580 0
failures 5 5 0
flaky 0 0 0
duration 000ms 000ms -000ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants