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

Auto-triggering: Overwrite the payload using the auto_followup pipeline's output + priority order #291

Merged
merged 2 commits into from
May 15, 2024

Conversation

Theodlz
Copy link
Collaborator

@Theodlz Theodlz commented May 8, 2024

  • Simplify some of the unnecessarily complicated logic to pick the priority (a lot of options were never used).
  • read the output of the auto_followup pipeline, and grab the payload (or a subset of it) and/or the comment to use for sending the trigger to SkyPortal. It will overwrite the values hardcoded in the filter saved to Kowalski's DB through Fritz.

This should allow us to have one filter that can write different payloads based on multiple parameters, to simplify BTSbot requirements as well as prepare for the next ZTF experiment where we'll auto trigger SWIFT.

ALSO, we make it possible to specify in the auto_followup section of a filter whether or not the priority system to use is ascending (higher priority is more important) or descending (lower priority is more important). We could have Kowalski fetch the full list of allocations (like we fetch the list of all filters) in the future to enforce the same thing across all filters using the same allocation, but this could be quite a lot of work just to get this system to work with SWIFT's reversed priority system. Just to be safe, we do not allow anyone to POST/PATCH a filter with the same allocation as an existing filter BUT a different priority order, to completely avoid having filters with the same follow-up payload, allocation, but different priority systems for some odd reason.

@Theodlz Theodlz requested a review from mcoughlin May 8, 2024 23:04
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

…r (ascending or descending) when figuring out if we need to update and existing follow-up request
@Theodlz Theodlz changed the title Auto-triggering: Overwrite the payload using the auto_followup pipeline's output Auto-triggering: Overwrite the payload using the auto_followup pipeline's output + priority order May 11, 2024
@Theodlz Theodlz requested a review from mcoughlin May 11, 2024 00:14
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 f8a430a into skyportal:main May 15, 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