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

DM-44704: Fix compatibility with Butler universe 7 #92

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

sebastian-aranda
Copy link
Collaborator

This PR was created to fix an incompatibility with the latest update of the Butler to Universe 7. When querying the /exposures endpoint and setting exposure.day_obs = day_obs the butler query failed returning the following response:

{
  "detail": "Error in butler query instrument='LATISS', bind={'min_day_obs': 20240605, 'max_day_obs': 20240607}, where='exposure.day_obs >= min_day_obs and exposure.day_obs < max_day_obs', limit=1500, offset=None, order_by=['-obs_id', 'id']: RuntimeError(\"Invalid reference to 'exposure.day_obs' in expression; please use 'day_obs' or 'day_obs.id' instead.\")"
}

Updating lsst-daf-butler dependency seems to fix the issue.

Also other dependencies were updated in the process.

Copy link
Collaborator

@dhirving dhirving left a comment

Choose a reason for hiding this comment

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

Looks good to me

@sebastian-aranda sebastian-aranda merged commit 57b203d into main Jun 10, 2024
4 checks passed
@sebastian-aranda sebastian-aranda deleted the tickets/DM-44704 branch June 10, 2024 16:19
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