Skip to content

[APP-604] feat: Add more options api's to support advanced filters#3232

Open
mcmcgrath13 wants to merge 22 commits into
mainfrom
mcm/moar-options
Open

[APP-604] feat: Add more options api's to support advanced filters#3232
mcmcgrath13 wants to merge 22 commits into
mainfrom
mcm/moar-options

Conversation

@mcmcgrath13
Copy link
Copy Markdown
Contributor

@mcmcgrath13 mcmcgrath13 commented May 13, 2026

Description

Add more endpoints to the options api, so they are available for the advanced filter value sets (https://cdc-nbs.atlassian.net/browse/APP-525).

Notes:

  • Made datasource-utils project and moved those to a common spot in libs so they could be used for the options api and mod
  • Tried to re-use database-entites for the finding of the column's name and data source, but this somehow introduced a bunch of auth stuff that I don't really understand why and decided it wasn't worth it to figure it out and instead just wrote a little query
  • Did some minor fixing of existing queries to match the current nbs 6 query more closely
  • There was a bug in a common step, so I fixed it, which then required fixing a bunch of tests

Tickets

Checklist before requesting a review

  • PR focuses on a single story
  • Code has been fully tested to meet acceptance criteria
  • PR is reasonably small and reviewable (Generally less than 10 files and 500 changed lines)
  • All new functions/classes/components reasonably small
  • Functions/classes/components focused on one responsibility
  • Code easy to understand and modify (clarity over concise/clever)
  • PRs containing TypeScript follow the Do's and Don'ts
  • PR does not contain hardcoded values (Uses constants)
  • All code is covered by unit or feature tests

Comment thread apps/modernization-api/build.gradle Outdated
indent_level_nbr as [order]
from NBS_SRTE..Condition_code
where status_cd = 'A'
and condition_codeset_nm = 'PHC_TYPE'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this part of the where was missing when translated from nbs 6 query (shouldn't make a difference in practice from what I see, but to be safe ported it over)

from NBS_SRTE..NAICS_Industry_code
where status_cd = 'A'
and parent_is_cd = 'root'
and indent_level_nbr = 1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

make match the nbs 6 query (though should be equivalent in practice)

@mcmcgrath13 mcmcgrath13 changed the title [APP-525] feat: Add more options api's to support advanced filters [APP-604] feat: Add more options api's to support advanced filters May 14, 2026
@mcmcgrath13 mcmcgrath13 marked this pull request as ready for review May 14, 2026 23:01
@mcmcgrath13 mcmcgrath13 requested a review from a team as a code owner May 14, 2026 23:01
@mcmcgrath13 mcmcgrath13 requested review from JordanGuinn and brick-green and removed request for a team May 14, 2026 23:01
@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant