-
Notifications
You must be signed in to change notification settings - Fork 518
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
Add new SQL hash calculation #4737
Conversation
|
||
public string GetHash() | ||
{ | ||
// I don't think UnsupportedSearchParams is needed as it isn't used in the actual search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment meant to be committed? 🍒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should reword it, but I think the point is helpful to understand why I didn't include that value in the hash.
Waiting to merge until we can discuss the impact to existing custom queries. |
Description
The SQL query hash has been including parameter values when it shouldn't, which is causing custom queries to be parameter value specific. This is undesired as custom queries should apply regardless of parameter values. This PR changes the way query hashes are generated to remove parameter values.
This will change the hashes of all requests, which will render current custom queries invalid.
Related issues
Addresses Bug 131113: SQL query hashes have parameter value hashes included
Testing
Describe how this change was tested.
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)