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

Feature/costing with mapped requests #227

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

EddyCMWF
Copy link
Contributor

@EddyCMWF EddyCMWF commented Oct 9, 2024

This means that date ranges are expanded and users can't cheat the costs so easily

MARS time convention is not expanded, so this does not defend against that, but if that is added to the mapping then this will allow that

@malmans2
Copy link
Member

Does apply_mapping raise errors? If yes, we need to make sure that this change does not cause 500s.

@EddyCMWF
Copy link
Contributor Author

Does apply_mapping raise errors? If yes, we need to make sure that this change does not cause 500s.

Yes it does, but I made sure that my previous PR raised InvalidRequest at source (i.e. in apply_mapping) so that this PR also raises good errors:
https://github.com/ecmwf-projects/cads-adaptors/pull/229/files

@EddyCMWF
Copy link
Contributor Author

FYI, it is possible that some 500s may be raised, but this will indicate an action for us to catch some errors we have not yet anticipated.

@EddyCMWF EddyCMWF requested a review from malmans2 October 14, 2024 10:29
@mcucchi9 mcucchi9 requested review from mcucchi9 and removed request for mcucchi9 October 14, 2024 10:30
@mcucchi9 mcucchi9 requested a review from malmans2 October 14, 2024 10:30
@EddyCMWF EddyCMWF merged commit fbd531a into main Oct 14, 2024
9 checks passed
@EddyCMWF EddyCMWF deleted the feature/costing-with-mapped-requests branch October 14, 2024 10:36
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.

4 participants