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] Job Variables page into release/1.6.x #18106

Conversation

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

Backport

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

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

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


A new route to:

  • Show a user the variables that a job and its groups and tasks have automatic access to (by naming convention)
  • Inform a user about how variables and automatic access work
  • Give a user a quick way to create/edit variables with appropriately pathed names.

A few new conventions added to facilitate good UX here:

  • We want to link to /variables/variable/edit if the variable exists, but /variables/new?path=$varpath if it does not. A new helper and component handle this for us.
  • We want to show the tasks/task groups they could be adding variables for here, but not too many of them. We show up to 2 examples of each and slightly change our copy depending on number of tasks/groups.

image

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/17937-allow-users-to-see-all-the-variables-from-the-job-page-including-groups-and-tasks/repeatedly-blessed-sunbeam branch 2 times, most recently from 049a410 to fb44b78 Compare July 31, 2023 19:04
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/17937-allow-users-to-see-all-the-variables-from-the-job-page-including-groups-and-tasks/repeatedly-blessed-sunbeam branch from fb44b78 to 049a410 Compare July 31, 2023 19:04
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui July 31, 2023 19:10 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad July 31, 2023 19:13 Inactive
@github-actions
Copy link

github-actions bot commented Jul 31, 2023

Ember Test Audit comparison

release/1.6.x 272ae1e change
passes 1499 1506 +7
failures 1 1 0
flaky 0 0 0
duration 000ms 000ms -000ms

* Bones of a component that has job variable awareness

* Got vars listed woo

* Variables as its own subnav and some pathLinkedVariable perf fixes

* Automatic Access to Variables alerter

* Helper and component to conditionally render the right link

* A bit of cleanup post-template stuff

* testfix for looping right-arrow keynav bc we have a new subnav section

* A very roundabout way of ensuring that, if a job exists when saving a variable with a pathLinkedEntity of that job, its saved right through to the job itself

* hacky but an async version of pathLinkedVariable

* model-driven and async fetcher driven with cleanup

* Only run the update-job func if jobname is detected in var path

* Test cases begun

* Management token for variables to appear in tests

* Its a management token so it gets to see the clients tab under system jobs

* Pre-review cleanup

* More tests

* Number of requests test and small fix to groups-by-way-or-resource-arrays elsewhere

* Variable intro text tests

* Variable name re-use

* Simplifying our wording a bit

* parse json vs plainId

* Addressed PR feedback, including de-waterfalling
@philrenaud philrenaud force-pushed the backport/17937-allow-users-to-see-all-the-variables-from-the-job-page-including-groups-and-tasks/repeatedly-blessed-sunbeam branch from 049a410 to 272ae1e Compare July 31, 2023 19:57
@philrenaud philrenaud merged commit f829eb6 into release/1.6.x Aug 1, 2023
10 checks passed
@philrenaud philrenaud deleted the backport/17937-allow-users-to-see-all-the-variables-from-the-job-page-including-groups-and-tasks/repeatedly-blessed-sunbeam branch August 1, 2023 13:59
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