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

UI variables made to be unique by namespace and path #14072

Merged

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Aug 10, 2022

resolves #14066, #13950 and #14066

Adds namespaces to the stored identity of variables.

This means you can have multiple variables at a/b/c/foo0 if their namespaces are different.

IDs are now stored in the browser as <pathname>@<namespace>, or a/b/c/foo0@default in the above case, and URLs reflect this:
image

Note that we now display same-pathed, different-namespaced variables alongside one another:
image

@philrenaud philrenaud self-assigned this Aug 10, 2022
@philrenaud philrenaud linked an issue Aug 10, 2022 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Aug 10, 2022

Ember Asset Size action

As of cb9f34a

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +115 B +185 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

github-actions bot commented Aug 10, 2022

Ember Test Audit comparison

main cb9f34a change
passes 1392 1397 +5
failures 2 2 0
flaky 0 0 0
duration 000ms 000ms -000ms

@github-actions
Copy link

Ember Test Audit flaky tests

Ember Test Audit detected these flaky tests on ca98396:

  • Integration | Utility | exec-command-editor-xterm-adapter: it can wrap to a previous line while backspacing

@philrenaud philrenaud marked this pull request as draft August 11, 2022 21:05
Copy link
Contributor

@ChaiWithJai ChaiWithJai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 tests are failing. But good job so far.

ui/app/components/secure-variable-form.js Outdated Show resolved Hide resolved
ui/app/components/secure-variable-form.js Show resolved Hide resolved
ui/app/controllers/variables/variable.js Show resolved Hide resolved
@@ -8,8 +8,9 @@ export default class VariablesVariableRoute extends Route.extend(
) {
@service store;
model(params) {
// console.log('paramas', params, this.store.findAll('variable'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking: remove

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still here.

ui/app/serializers/variable.js Outdated Show resolved Hide resolved
ui/mirage/scenarios/default.js Show resolved Hide resolved
ui/tests/acceptance/secure-variables-test.js Show resolved Hide resolved
ui/app/components/variable-paths.js Show resolved Hide resolved
@@ -8,8 +8,9 @@ export default class VariablesVariableRoute extends Route.extend(
) {
@service store;
model(params) {
// console.log('paramas', params, this.store.findAll('variable'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still here.

ui/tests/acceptance/secure-variables-test.js Show resolved Hide resolved
…ess (#14098)

* Solves a harsh bug where you have namespace access but no secvars access

* Lint cleanup

* Remove unneeded condition
@philrenaud philrenaud merged commit 9f51a5d into main Aug 15, 2022
@philrenaud philrenaud deleted the 14066-ui-variables-should-be-unique-by-namespace-and-path branch August 15, 2022 15:56
@github-actions
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui] Variables should be unique by namespace and path
2 participants