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

REL-4619 Use the gemini id to identify grating changes #2316

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cquiroz
Copy link
Contributor

@cquiroz cquiroz commented Jan 9, 2025

With the introduction of a new R400 grating for gmos N, the code to query ICTD from the odb needs an adjustment

This is a proposal for a fix that will query grating using both the name and the gemini id.

For completeness other components should follow the same logic but not every component on ICTD has a gemini id,

This was tested with a local db instance and loading the list of available GmosN gratings.

@@ -71,20 +71,20 @@ public StageModeNorth parse(String name, StageModeNorth defaultValue) {
public enum DisperserNorth implements GmosCommonType.Disperser, ObsoletableSpType, IctdType {
// Mirror isn't tracked but is always installed.
MIRROR( "Mirror", "mirror", 0, Ictd.installed()),
B1200_G5301("B1200_G5301", "B1200", 1200, Ictd.track("B1200")),
R831_G5302( "R831_G5302", "R831", 831, Ictd.track("R831")),
B1200_G5301("B1200", "B1200", "G5301", 1200),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I bet this will break serialization

Copy link
Contributor

@swalker2m swalker2m left a comment

Choose a reason for hiding this comment

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

Could we just change the name in the ICTD of the old or new value?

@cquiroz
Copy link
Contributor Author

cquiroz commented Jan 9, 2025

Could we just change the name in the ICTD of the old or new value?

Science preferred solution is not to

@swalker2m
Copy link
Contributor

Science preferred solution is not to

Isn't the old one retired forever? I think we should just change the ITCD tracking id to "R400_old", leave "R400" for the new one and not take chances with changing how it works. If we must make changes, I think what you've done looks reasonable.

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.

2 participants