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

Fix STAC API Query Extension operator names from ne->neq, le->lte, and ge->gte #120

Merged

Conversation

philvarner
Copy link
Contributor

@vincentsarago
Copy link
Member

I'm a bit worry about changing this right now, could we still support the old notation and warn the users?

@philvarner
Copy link
Contributor Author

I'm a bit worry about changing this right now, could we still support the old notation and warn the users?

Sure. I'm not able to work on this though, so someone else will have to do it.

f"`{self._value_}` is deprecated, please use `{newvalue}`",
DeprecationWarning,
stacklevel=3,
)
Copy link
Member

Choose a reason for hiding this comment

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

It's quite hard to add deprecation warning on Enums 😓 so for now I think adding a warning on the operator method is a least we can do

@vincentsarago vincentsarago self-requested a review April 11, 2024 10:04
@vincentsarago vincentsarago merged commit 79248a2 into stac-utils:main Apr 11, 2024
5 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