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

Fixed an issue with the _lastUpdated search param not being recognised as a valid sort spec with Elastic Search enabled. #6670

Merged
merged 20 commits into from
Feb 10, 2025

Conversation

AbayomiE-T
Copy link
Contributor

@AbayomiE-T AbayomiE-T commented Jan 31, 2025

With HSearch enabled and automatic support of default search params turned off, it is observed that a lot of search parameters are missing from the SearchParamRegistry which results in the error 500 HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: HAPI-2523: Invalid sort specification: _lastUpdated when using the $apply-codesystem-delta-add operation.

A fall back was added in HSearchSortHelperImpl.getParamType() to account for these missing search params.

Closes #6697

@AbayomiE-T AbayomiE-T self-assigned this Jan 31, 2025
Copy link

github-actions bot commented Jan 31, 2025

Formatting check succeeded!

…d as a valid sort spec with Hsearch enabled in CDR
@AbayomiE-T AbayomiE-T changed the title Fixed an issue with the _lastUpdated search param not being recognised as a valid sort spec with Elastic Search enabled Fixed an issue with the _lastUpdated search param not being recognised as a valid sort spec with Elastic Search enabled in CDR Jan 31, 2025
Copy link

codecov bot commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (rel_8_0@65e4b13). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             rel_8_0    #6670   +/-   ##
==========================================
  Coverage           ?   83.58%           
  Complexity         ?    28638           
==========================================
  Files              ?     1798           
  Lines              ?   111325           
  Branches           ?    13979           
==========================================
  Hits               ?    93052           
  Misses             ?    12268           
  Partials           ?     6005           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@epeartree epeartree left a comment

Choose a reason for hiding this comment

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

also, u'll need a changelog. ping me when u get to this.

@AbayomiE-T
Copy link
Contributor Author

also, u'll need a changelog. ping me when u get to this.

Right so I do have one on the CDR side but wasn't sure on how to go about the HAPI side since the bug was reported on CDR. Do I use the same ticket number for the .yaml file? Should it have the same content?

@AbayomiE-T AbayomiE-T changed the title Fixed an issue with the _lastUpdated search param not being recognised as a valid sort spec with Elastic Search enabled in CDR Fixed an issue with the _lastUpdated search param not being recognised as a valid sort spec with Elastic Search enabled. Feb 10, 2025
Copy link
Collaborator

@epeartree epeartree left a comment

Choose a reason for hiding this comment

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

please address

@AbayomiE-T
Copy link
Contributor Author

please address

Addressed!

Copy link
Collaborator

@epeartree epeartree left a comment

Choose a reason for hiding this comment

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

one last one

@AbayomiE-T
Copy link
Contributor Author

one last one

Done!

Copy link
Collaborator

@epeartree epeartree left a comment

Choose a reason for hiding this comment

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

good work, thanks for sticking with it till the completion.

@epeartree epeartree merged commit ce0c41c into rel_8_0 Feb 10, 2025
67 checks passed
@epeartree epeartree deleted the missing-search-params-with-hsearch-enabled branch February 10, 2025 22:00
@AbayomiE-T AbayomiE-T restored the missing-search-params-with-hsearch-enabled branch February 10, 2025 23:09
@AbayomiE-T AbayomiE-T deleted the missing-search-params-with-hsearch-enabled branch February 11, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants