Skip to content

Jcampos/new db schema#234

Merged
rrivera747 merged 33 commits into
developfrom
jcampos/NewDBSchema
Jan 28, 2026
Merged

Jcampos/new db schema#234
rrivera747 merged 33 commits into
developfrom
jcampos/NewDBSchema

Conversation

@jicampos
Copy link
Copy Markdown
Contributor

eflumerf
eflumerf previously approved these changes Jan 14, 2026
@rrivera747
Copy link
Copy Markdown
Contributor

@copilot fix whitespace issues identified in Git Whitespace Check Workflow

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

@rrivera747 I've opened a new pull request, #239, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 27, 2026 22:54
Co-authored-by: rrivera747 <107584474+rrivera747@users.noreply.github.com>
Fix whitespace issue in DBRunInfo.h
Copy link
Copy Markdown
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

This PR implements a major database schema refactoring for the otsdaq-mu2e project, migrating from the old run_condition/run_configuration schema to a new config/run schema design. The changes are part of a broader effort spanning multiple repositories (otsdaq-utilities #225 and otsdaq #290).

Changes:

  • Updated database table names and schema (run_condition → config, run_configuration → run, etc.)
  • Refactored DBRunInfo plugin to work with the new database structure
  • Added helper functions for database operations and error reporting
  • Modified DTCInterfaceTable method signatures for consistency with base class

Reviewed changes

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

Show a summary per file
File Description
otsdaq-mu2e/TablePlugins/DTCInterfaceTable.h Updated method signature for getStructureAsJSON (renamed from getStructureStatusAsJSON) with const parameter
otsdaq-mu2e/TablePlugins/DTCInterfaceTable_table.cc Implementation update matching header file changes
otsdaq-mu2e/RunInfoPlugins/DBRunInfo.h Major API changes including new helper functions, updated documentation, and transition type structure
otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc Complete rewrite of database interaction logic for new schema, including insertRunCondition, claimNextRunNumber, updateRunInfo, and query methods
.gitignore Added UserWebGUI/ServiceData to ignore list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc Outdated
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo.h Outdated
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo.h Outdated
Comment thread otsdaq-mu2e/TablePlugins/DTCInterfaceTable.h
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Comment thread otsdaq-mu2e/RunInfoPlugins/DBRunInfo_runInfo.cc
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

@rrivera747 I've opened a new pull request, #240, to work on those changes. Once the pull request is ready, I'll request review from you.

rrivera747 and others added 6 commits January 27, 2026 17:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rrivera747 <107584474+rrivera747@users.noreply.github.com>
Co-authored-by: rrivera747 <107584474+rrivera747@users.noreply.github.com>
Fix comment style inconsistency in DBRunInfo_runInfo.cc documentation
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 28, 2026

@rrivera747 I've opened a new pull request, #241, to work on those changes. Once the pull request is ready, I'll request review from you.

@rrivera747 rrivera747 requested a review from corrodis January 28, 2026 00:45
Copy link
Copy Markdown
Contributor

@rrivera747 rrivera747 left a comment

Choose a reason for hiding this comment

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

Now is compatible with latest virtual function definitions of the Run Info plugin.

@rrivera747 rrivera747 merged commit 81aa666 into develop Jan 28, 2026
7 of 9 checks passed
@rrivera747 rrivera747 deleted the jcampos/NewDBSchema branch January 28, 2026 01:05
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.

7 participants