Skip to content
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

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

nden
Copy link
Collaborator

@nden nden commented Aug 2, 2023

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 the ref_file schema which caused the names of the files to not be populated in the database. In addition, there's a name collision because reftype is used in cal_step and ref_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 example ref_file.dark and cal_step.dark both map to dark. To resolve the name collision the archive destination names were changed: the ones in cal_step were prefixed with s, and the ones in ref_file were prefixed with r.

Note that these changes do not affect data files and so no changes are needed in roman_datamodels.

Checklist

@nden nden requested review from kdupriestsci and PaulHuwe and removed request for kdupriestsci August 2, 2023 21:24
@nden nden requested review from WilliamJamieson and a team as code owners August 2, 2023 21:27
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (fd14338) 95.32% compared to head (9500a4c) 95.32%.

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.
📢 Have feedback on the report? Share it here.

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]
Copy link
Collaborator

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?)

Copy link
Collaborator Author

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.

Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

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

LGTM

@WilliamJamieson WilliamJamieson merged commit f44168b into spacetelescope:main Aug 3, 2023
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.

4 participants