Skip to content

Fix Postgres configuration store incorrectly handling metadata key in query #3693

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

majkio
Copy link

@majkio majkio commented Mar 9, 2025

Description

Fixes buildQuery function of Postgres configuration store component.
Metadata key is no longer passed as a parameter, fixing the always empty query result.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[3692]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

majkio added 2 commits March 9, 2025 19:34
If key is param the query always returns empty results

Signed-off-by: majkio <[email protected]>
@majkio majkio requested review from a team as code owners March 9, 2025 21:56
@majkio majkio changed the title Majkio fix postgres param Fix Postgres configuration store incorrectly handling metadata key in query Mar 9, 2025
Copy link
Contributor

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Thanks @majkio, please can we add a certification test to cover this fix?

@majkio
Copy link
Author

majkio commented Mar 16, 2025

Hello @JoshVanL I've updated the code and added the test, hope its okay. Feel free to request any additional changes

@majkio majkio force-pushed the majkio-fix-postgres-param branch from 9ff96a5 to f9e724c Compare March 16, 2025 17:13
@majkio majkio force-pushed the majkio-fix-postgres-param branch from f9e724c to 2929367 Compare March 16, 2025 17:16
JoshVanL
JoshVanL previously approved these changes Mar 17, 2025
Copy link
Contributor

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Thanks @majkio!

cicoyle
cicoyle previously approved these changes Mar 31, 2025
@majkio majkio dismissed stale reviews from cicoyle and JoshVanL via 3582bf2 April 7, 2025 11:53
Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants