Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix DC/DQD when database code is same as schema name#1911

Open
csafreen wants to merge 5 commits intodevelopfrom
csafreen/investigate_dbSetup
Open

Fix DC/DQD when database code is same as schema name#1911
csafreen wants to merge 5 commits intodevelopfrom
csafreen/investigate_dbSetup

Conversation

Copy link
Collaborator

csafreen commented Feb 26, 2026

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

csafreen temporarily deployed to github February 26, 2026 08:28 -- with GitHub Actions Inactive
csafreen marked this pull request as ready for review February 26, 2026 13:45
Copilot AI review requested due to automatic review settings February 26, 2026 13:45
csafreen temporarily deployed to github February 26, 2026 13:45 -- with GitHub Actions Inactive
csafreen temporarily deployed to github February 26, 2026 13:45 -- with GitHub Actions Inactive
Copilot started reviewing on behalf of csafreen February 26, 2026 13:45 View session
csafreen changed the title Fix issues when database code is same as schema name Fix DC/DQD when database code is same as schema name Feb 26, 2026
Copilot AI reviewed Feb 26, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates analytics and flow execution paths to better handle environments where a dataset's databaseCode and schemaName can collide (or where fully-qualified identifiers are required), and adds a guard for missing CDM versions before launching jobs.

Changes:

  • Add a CDM-version presence check before creating DQD / Data Characterization flow runs.
  • Update analytics-svc CDM version lookup to include databaseCode and adjust Data Characterization vocab schema replacement to be database-qualified.
  • Update Prefect flow plugins / shared utils to allow or use dot-qualified schema identifiers (db.schema).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
functions/jobplugins/src/services/DqdService.ts Adds a guard to fail fast when CDM version is missing before launching DQD.
functions/jobplugins/src/services/DataCharacterizationService.ts Adds the same CDM version guard before launching Data Characterization.
functions/analytics-svc/src/dao/DBDAO.ts Changes CDM version query to reference databaseCode.schemaName.
functions/analytics-svc/src/api/controllers/dbsvc.ts Passes databaseCode into getCDMVersion.
functions/analytics-svc/src/api/controllers/dataCharacterization.ts Changes vocab schema replacement to databaseName.vocabSchema.
flows/base/dqd_plugin/flow.py Passes databaseCode.schemaName into the R entrypoint parameters.
flows/base/data_characterization_plugin/utils.py Qualifies TREX cdm_source query with dbdao.database_code.
flows/base/data_characterization_plugin/flow.py Qualifies vocab/cdm schemas with databaseCode. for schema creation and R execution.
flows/_shared_flow_utils/create_dataset_tasks.py Expands schema safety regex to allow dot-qualified identifiers.

alicia-koh approved these changes Feb 27, 2026
csafreen temporarily deployed to github February 27, 2026 08:20 -- with GitHub Actions Inactive
csafreen temporarily deployed to github February 27, 2026 08:20 -- with GitHub Actions Inactive
csafreen requested a review from Copilot February 27, 2026 08:22
Copilot started reviewing on behalf of csafreen February 27, 2026 08:23 View session
Copilot AI reviewed Feb 27, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

csafreen temporarily deployed to github February 27, 2026 08:32 -- with GitHub Actions Inactive
csafreen temporarily deployed to github February 27, 2026 08:32 -- with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

alicia-koh alicia-koh approved these changes

Zhimin-arya Awaiting requested review from Zhimin-arya Zhimin-arya is a code owner

p-hoffmann Awaiting requested review from p-hoffmann p-hoffmann is a code owner

hengxian-jiang Awaiting requested review from hengxian-jiang hengxian-jiang is a code owner

KangJingA Awaiting requested review from KangJingA KangJingA is a code owner

SantanM Awaiting requested review from SantanM SantanM is a code owner

suwarnoong Awaiting requested review from suwarnoong suwarnoong is a code owner

brandantck Awaiting requested review from brandantck brandantck is a code owner

jerome-ng Awaiting requested review from jerome-ng jerome-ng is a code owner

LSriragavan Awaiting requested review from LSriragavan LSriragavan is a code owner

khairul-syazwan Awaiting requested review from khairul-syazwan khairul-syazwan is a code owner

satish-a0 Awaiting requested review from satish-a0 satish-a0 is a code owner

maggie-li-yd Awaiting requested review from maggie-li-yd maggie-li-yd is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants