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

refactor(secrets): payload creation for secrets update command #6106

Merged
merged 2 commits into from
May 30, 2024

Conversation

vvagaytsev
Copy link
Collaborator

@vvagaytsev vvagaytsev commented May 30, 2024

What this PR does / why we need it:

A follow-up PR to fix some bugs introduced in #6068.

This also gets rid of unnecessary type UpdateSecretBody. Its newValue field was set but never read. The secrets to be updated did never get updated values.

Moreover, the UpdateSecretBody.newValue was set incorrectly, because it used index-based access on array with the secret id/name used as an index value. That resulted to undefined value.

Which issue(s) this PR fixes:

Patches #6068

Special notes for your reviewer:

  • The secrets updating logic is still a bit complicated and will be simplified in the next PRs.
  • This has refactor commit header because it's a follow-up PR, not a bug fix for an issue that exists in an official release.
  • The changes were tested manually by updating secrets by names and ids

@vvagaytsev vvagaytsev requested a review from twelvemo May 30, 2024 08:54
@vvagaytsev vvagaytsev marked this pull request as ready for review May 30, 2024 08:54
@vvagaytsev vvagaytsev marked this pull request as draft May 30, 2024 08:54
@vvagaytsev vvagaytsev marked this pull request as ready for review May 30, 2024 09:01
@vvagaytsev vvagaytsev enabled auto-merge May 30, 2024 11:39
Copy link
Collaborator

@twelvemo twelvemo left a comment

Choose a reason for hiding this comment

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

Looks good!

@vvagaytsev vvagaytsev added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit 5fb1d94 May 30, 2024
40 checks passed
@vvagaytsev vvagaytsev deleted the fix/secrets-update branch May 30, 2024 12:55
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.

None yet

2 participants