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

Incremented version to 2.0.1 #1881

Merged
merged 2 commits into from
Jun 10, 2022
Merged

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Jun 9, 2022

Signed-off-by: Zelin Hao [email protected]

Description

[Describe what this change achieves]

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
  • Why these changes are required?
  • What is the old behavior before changes and new behavior after changes?

Increment version to 2.0.1
Part of opensearch-project/opensearch-build#2165

Is this a backport? If so, please add backport PR # and/or commits #

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@zelinh zelinh requested a review from a team June 9, 2022 01:24
peternied
peternied previously approved these changes Jun 9, 2022
davidlago
davidlago previously approved these changes Jun 9, 2022
@cliu123 cliu123 dismissed stale reviews from davidlago and peternied via ae036fc June 10, 2022 18:07
@@ -341,8 +341,6 @@ private void checkAllSfAllowed() throws Exception {
rh.sendAdminCertificate = false;
checkReadAccess(HttpStatus.SC_OK, "picard", "picard", "sf", "_doc", 1);
checkWriteAccess(HttpStatus.SC_OK, "picard", "picard", "sf", "_doc", 1);
// ES7 only supports one doc type, so trying to create a second one leads to 400 BAD REQUEST
checkWriteAccess(HttpStatus.SC_BAD_REQUEST, "picard", "picard", "sf", "public", 1);
Copy link
Member

@cliu123 cliu123 Jun 10, 2022

Choose a reason for hiding this comment

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

Removing this assertion to align with the behavior change in OpenSearch 2.0.1.

@@ -213,12 +213,12 @@ protected String checkReadAccess(int status, String username, String password, S

}

protected String checkWriteAccess(int status, String username, String password, String indexName, String type,
protected String checkWriteAccess(int status, String username, String password, String indexName, String actionType,
Copy link
Member

Choose a reason for hiding this comment

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

Fixing the naming here as OpenSearch 2.0+ supports actionType in the API path and dropped the support for type.

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2022

Codecov Report

Merging #1881 (ae036fc) into 2.0 (5e64577) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.0    #1881      +/-   ##
============================================
- Coverage     60.85%   60.84%   -0.02%     
+ Complexity     3188     3187       -1     
============================================
  Files           253      253              
  Lines         17921    17921              
  Branches       3203     3203              
============================================
- Hits          10906    10904       -2     
- Misses         5439     5442       +3     
+ Partials       1576     1575       -1     
Impacted Files Coverage Δ
...ecurity/configuration/ConfigurationRepository.java 71.97% <0.00%> (-2.20%) ⬇️
...a/org/opensearch/security/tools/SecurityAdmin.java 37.50% <0.00%> (-0.25%) ⬇️
...search/security/auditlog/impl/RequestResolver.java 69.88% <0.00%> (+2.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e64577...ae036fc. Read the comment docs.

@cliu123 cliu123 merged commit c9f11c6 into opensearch-project:2.0 Jun 10, 2022
@zelinh
Copy link
Member Author

zelinh commented Jun 10, 2022

@cliu123 Thanks for the help here!

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.

5 participants