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

GEODE-7938: added keys query param to GET, PUT, and DELETE /{region} endpoints #4901

Merged

Conversation

dschneider-pivotal
Copy link
Contributor

@dschneider-pivotal dschneider-pivotal commented Apr 3, 2020

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.

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.
@dschneider-pivotal dschneider-pivotal marked this pull request as ready for review April 6, 2020 23:42
@dschneider-pivotal dschneider-pivotal changed the title added keys query param to GET, PUT, and DELETE /{region} endpoints GEODE-7938: added keys query param to GET, PUT, and DELETE /{region} endpoints Apr 6, 2020
Copy link
Contributor

@demery-pivotal demery-pivotal left a 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.

@lgtm-com
Copy link

lgtm-com bot commented Apr 7, 2020

This pull request introduces 2 alerts when merging fdd541b into 1b1ad6b - view on LGTM.com

new alerts:

  • 1 for Spurious Javadoc @param tags
  • 1 for Missing space in string literal

Copy link
Contributor

@jmelchio jmelchio left a comment

Choose a reason for hiding this comment

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

LGTM

@dschneider-pivotal dschneider-pivotal merged commit 6263f1f into apache:develop Apr 8, 2020
@dschneider-pivotal dschneider-pivotal deleted the key-query-param branch April 8, 2020 15:13
jmelchio added a commit to jmelchio/geode that referenced this pull request Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants