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
GEODE-7938: added keys query param to GET, PUT, and DELETE /{region} endpoints #4901
GEODE-7938: added keys query param to GET, PUT, and DELETE /{region} endpoints #4901
Conversation
need to test that region name encoding is correct need to verify the Content-Location is correct
…was ordered * the code that tests for missing keys now uses the getAll result instead of sending multiple messsages and having a race in which key is deleted after the old check but before getAll * the Content-Location is now set correctly when doing a get with encoded keys * added more tests for better coverage of the PdxBasedCrudController.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A noted some possible minor improvements. Apply or ignore as you wish.
...rationTest/java/org/apache/geode/rest/internal/web/controllers/RestAccessControllerTest.java
Outdated
Show resolved
Hide resolved
...rationTest/java/org/apache/geode/rest/internal/web/controllers/RestAccessControllerTest.java
Outdated
Show resolved
Hide resolved
...rationTest/java/org/apache/geode/rest/internal/web/controllers/RestAccessControllerTest.java
Show resolved
Hide resolved
This pull request introduces 2 alerts when merging fdd541b into 1b1ad6b - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This allows users to create entries that have an encodedKey.
…region} endpoints (apache#4901)" This reverts commit 6263f1f.
The previous fix did not handle initial slashes (see GEODE-7938).
So now we have a new queryParam "?keys=" that can be used in place of the old {keys} pathVar.
The new queryParam expects its keys to be encoded with UTF-8.
The previous fixes "/**" has been removed since it did harm to swagger.
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
Has your PR been rebased against the latest commit within the target branch (typically
develop
)?Is your initial contribution a single, squashed commit?
Does
gradlew build
run cleanly?Have you written or updated unit tests to verify your changes?
If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.