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

Skymap API PUT: trigger id bugfix #289

Merged
merged 1 commit into from
May 2, 2024

Conversation

Theodlz
Copy link
Collaborator

@Theodlz Theodlz commented May 2, 2024

  • Don't look for existing skymap using a None trigger id, which ended up matching skymaps incorrectly.

  • After finding and existing map, use it's _id to update it if needed.

  • Add a unique index on dateobs + localization_name to avoid duplicates if the API code fails to find an existing map (should not happen, but it's a good failsafe anyway to have that constraint in the data model).

@Theodlz Theodlz requested a review from mcoughlin May 2, 2024 15:57
Copy link
Collaborator

@mcoughlin mcoughlin left a comment

Choose a reason for hiding this comment

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

LGTM

@Theodlz Theodlz merged commit e379a00 into skyportal:main May 2, 2024
2 checks passed
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