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

remove scripted_id #131

Merged
merged 3 commits into from
Nov 22, 2024
Merged

remove scripted_id #131

merged 3 commits into from
Nov 22, 2024

Conversation

yoachim
Copy link
Member

@yoachim yoachim commented Nov 19, 2024

Remove scripted_id from the observation schema. Have surveys append an index to the scheduler_note string so scripted surveys can still properly match incoming completed observations. Add a unit test to make sure scripted surveys are marking observations completed correctly.

@rhiannonlynne
Copy link
Member

A curiosity that may or may not be relevant -- it looks like this means that things like DDF visits are tracked with the field name + filter of the visit ... is that right? is there also an integer?
Separately, would there be an issue if the filter wasn't just 'ugrizy' but was something like 'r_03' ?

@yoachim
Copy link
Member Author

yoachim commented Nov 21, 2024

A curiosity that may or may not be relevant -- it looks like this means that things like DDF visits are tracked with the field name + filter of the visit ... is that right? is there also an integer? Separately, would there be an issue if the filter wasn't just 'ugrizy' but was something like 'r_03' ?

The DDFs get an integer added to their scheduler_note field as well. I'll add a check to make extra sure no one can sneak around and set it up with non-unique note+filter combo in the script.

Should be fine with an "r_03" filter name. Hopefully we didn't cut corners and have "ugrizy" where we should have "["u", "g", ...]. Maybe a few default kwargs that should be updated to make it clear it should really be a list of str.

@yoachim yoachim merged commit e4caa61 into main Nov 22, 2024
7 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