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

Bug fix: Update KV data when you change the version of a nested secret #25152

Merged
merged 9 commits into from
Feb 1, 2024

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Jan 31, 2024

Fixes #25029.

Regression caused by #24224

This was caused because we were using a tracked property (this.codeMirrorSring) for the secret data and we needed a getter that relied on the this.args.secret model arg. The secret model was updating and thus the secretData was correct behind the scenes but the tracked property was not re-firing because it didn't rely on anything that was triggering a re-fire of the property.

  • Enterprise tests pass. I realize this isn't an enterprise area, but being conservative on all things KV.
  • Make sure new test coverage fails without the changes (suggestion by Claire, thank you).

@Monkeychip Monkeychip added ui bug Used to indicate a potential bug labels Jan 31, 2024
@Monkeychip Monkeychip added this to the 1.15.6 milestone Jan 31, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jan 31, 2024
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

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

These look good to me. In the PR description it might be worth including this resolves a regression introduced by #24224 which is why we're backporting to 1.15

@Monkeychip Monkeychip merged commit a4c8ce6 into main Feb 1, 2024
72 checks passed
@Monkeychip Monkeychip deleted the ui/VAULT-23660/nested-secret-version-dropdown branch February 1, 2024 19:24
Monkeychip added a commit that referenced this pull request Feb 5, 2024
#25152)

* wip need to address testing but want to test something quick on 1.13

* add test coverage

* changelog

* update test comment

* rename getter

* Update kv-data-fields.hbs

revert accidental next step

* linting things
Monkeychip added a commit that referenced this pull request Feb 7, 2024
#25152)

* wip need to address testing but want to test something quick on 1.13

* add test coverage

* changelog

* update test comment

* rename getter

* Update kv-data-fields.hbs

revert accidental next step

* linting things
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed secret/kv ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON view does not update content on version change
2 participants