-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add archive_catalog field to ref_file #303
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
=======================================
Coverage 95.32% 95.32%
=======================================
Files 4 4
Lines 171 171
=======================================
Hits 163 163
Misses 8 8 ☔ View full report in Codecov by Sentry. |
dark: | ||
title: Dark Subtraction | ||
type: string | ||
enum: ['N/A', 'COMPLETE', 'SKIPPED', 'INCOMPLETE'] | ||
archive_catalog: | ||
datatype: nvarchar(15) | ||
destination: [ScienceRefData.dark, GuideWindow.dark] | ||
destination: [ScienceRefData.s_dark, GuideWindow.s_dark] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to send every step to GuideWindow, or just dq_init? (Since GuideWindows aren't going through all the steps, so would never have some of these?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was left open for discussion. I think GuideWindow
is probably not necessary at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves RAD-nnnn
Closes #
This PR addresses an issue with archiving the reference files and populating the archive catalog. Previously the
archive_catalog
field was missing from theref_file
schema which caused the names of the files to not be populated in the database. In addition, there's a name collision becausereftype
is used incal_step
andref_file
. While this is OK for the science files because they are under different tags, in the archive they go in the same database, and so for exampleref_file.dark
andcal_step.dark
both map todark
. To resolve the name collision the archive destination names were changed: the ones incal_step
were prefixed withs
, and the ones inref_file
were prefixed withr
.Note that these changes do not affect data files and so no changes are needed in roman_datamodels.
Checklist
CHANGES.rst
under the corresponding subsection