nomad icon indicating copy to clipboard operation
nomad copied to clipboard

[ui] "Clone and Edit" functionality for versions

Open philrenaud opened this issue 1 year ago • 2 comments
trafficstars

Adds "Clone and Edit" alongside "Revert Version" on the Versions page: image

Because we're passing template strings via query params, this means you can use ?sourceString= on the jobs run page to send someone a readily-editable job spec, using a URL like this.

This also adds a few UX conveniences like prompting a user to "run as a new job instead" if they try updating a job definition and changing its name (which fails a plan request), and reminding them to change the job name in the event they try to clone as a new one image

Resolves #24156

philrenaud avatar Oct 10 '24 18:10 philrenaud

Ember Test Audit comparison

main af31960a62a6909bd6dc766e6729b2bc3e03d572 change
passes 1581 1581 0
failures 0 0 0
flaky 0 0 0
duration 13m 38s 594ms 13m 27s 414ms -11s 180ms

github-actions[bot] avatar Oct 10 '24 19:10 github-actions[bot]

@philrenaud when this is merged, we also need to update the screenshots, and possibly text, in the job versions guide.

aimeeu avatar Oct 10 '24 19:10 aimeeu

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. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Mar 30 '25 02:03 github-actions[bot]