Skip to content

location catalog text search support#1640

Open
adamkorynta wants to merge 16 commits into
developfrom
feature/location_text_search
Open

location catalog text search support#1640
adamkorynta wants to merge 16 commits into
developfrom
feature/location_text_search

Conversation

@adamkorynta
Copy link
Copy Markdown
Collaborator

@adamkorynta adamkorynta commented Mar 13, 2026

Fixes: #288

demonstrating usage of: HydrologicEngineeringCenter/cwms-database#123

Adds a test page for location search. Note: needs a newer version of cwmsjs that supports text search catalog parameter (I tested via hotswapping in the debugger).

TODO:

  • merge schema update PR
  • integration testing
  • OpenAPI documentation

demonstrating usage of: HydrologicEngineeringCenter/cwms-database#123

TODO:
- [ ] merge schema update PR
- [ ] integration testing
- [ ] OpenAPI documentation
@adamkorynta adamkorynta marked this pull request as ready for review May 11, 2026 23:57
@adamkorynta adamkorynta changed the title initial location catalog text search support location catalog text search support May 11, 2026
@adamkorynta
Copy link
Copy Markdown
Collaborator Author

image

Screenshot for the location search page.

@krowvin
Copy link
Copy Markdown
Collaborator

krowvin commented May 12, 2026

Quick note

newer version of cwmsjs that supports text search catalog parameter

I rebuilt and published a newer version of cwmsjs. Saw this was 2 months ago. Might see in the docs If the method you seek is present now?

cwmsjs v2.4.0-2026.3.16

@adamkorynta
Copy link
Copy Markdown
Collaborator Author

Quick note

newer version of cwmsjs that supports text search catalog parameter

I rebuilt and published a newer version of cwmsjs. Saw this was 2 months ago. Might see in the docs If the method you seek is present now?

cwmsjs v2.4.0-2026.3.16

This PR is the one adding that query parameter. Kinda chicken-and-egg.

Copy link
Copy Markdown
Contributor

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Overall looks good. Couple of nitpicks. And one thing that's just confusing me.

Comment thread cwms-data-api/src/main/java/cwms/cda/data/dao/LocationsDaoImpl.java Outdated
Comment thread cwms-data-api/src/main/java/cwms/cda/data/dao/LocationsDaoImpl.java Outdated
Comment thread cwms-data-api/src/main/java/cwms/cda/data/dao/LocationsDaoImpl.java
Comment thread cwms-data-api/src/test/java/cwms/cda/api/CatalogControllerTestIT.java Outdated
@adamkorynta adamkorynta requested a review from MikeNeilson May 12, 2026 17:47
Copy link
Copy Markdown
Collaborator

@zack-rma zack-rma left a comment

Choose a reason for hiding this comment

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

Some questions and nitpicks

Comment thread cwms-data-api/src/main/java/cwms/cda/api/CatalogController.java Outdated
Comment thread cwms-data-api/src/test/java/cwms/cda/api/CatalogControllerTestIT.java Outdated
Comment thread cwms-data-api/src/test/java/cwms/cda/api/CatalogControllerTestIT.java Outdated
Comment thread cwms-data-api/src/main/java/cwms/cda/api/CatalogController.java
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.

Provide for searching by public or long name in catalog

4 participants