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

Fix a bug, where you can't edit an existing VSHNPostgreSQL instance #199

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

TheBigLee
Copy link
Member

@TheBigLee TheBigLee commented Jul 18, 2024

Summary

There is currently a bug in the AddConnectionDetails function that takes the SGcluster from the observed rather then the desired state. Since this function is run after the DeployPostgreSQL function and takes the cluster configuration from the observed state and at the end writes it to the desired state, it will effectively override every change done to the SGCluster object in the DeployPostgreSQL function.

The function should rather get the SGCluster object from the desired stage to avoid this issue.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@TheBigLee TheBigLee added the bug Something isn't working label Jul 18, 2024
@TheBigLee TheBigLee requested review from a team, Kidswiss, wejdross and zugao and removed request for a team July 18, 2024 15:26
There is currently a bug in the AddConnectionDetails function that takes
the SGcluster from the `observed` rather then the `desired` state.
Since this function is run *after* the `DeployPostgreSQL` function and
takes the cluster configuration from the `observed` state and at the end
writes it to the `desired` state, it will effectively override every
change done to the `SGCluster` object in the `DeployPostgreSQL`
function.

The function should rather get the `SGCluster` object from the desired
stage to avoid this issue.

Signed-off-by: Nicolas Bigler <[email protected]>
Copy link
Collaborator

@zugao zugao left a comment

Choose a reason for hiding this comment

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

LGTM

@TheBigLee TheBigLee merged commit ad25173 into master Jul 19, 2024
3 checks passed
@TheBigLee TheBigLee deleted the fix/psql-edit branch July 19, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants