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

Clarify that OData operator for "not equals" is ne, not neq #1019

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

matthew-white
Copy link
Member

For getodk/central#503, I'm currently planning to use the OData "not equals" operator in the $filter query parameter, something like __system/conflict ne null. While looking into that, I noticed that the API docs say that neq is the OData operator. However, the operator is actually ne: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_NotEquals. I updated a test to confirm that.

Before submitting this PR, please make sure you have:

  • run make test-full and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

@sadiqkhoja
Copy link
Contributor

ha! I have used not equal like this: $filter=not __system/reviewState eq \'rejected\' in a test :)

@matthew-white matthew-white merged commit d5c8fa6 into master Oct 3, 2023
@matthew-white matthew-white deleted the ne-not-neq branch October 3, 2023 19:33
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