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

[Extensions] Update ExtensionRestResponse to handle RestRequest object #6874

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Mar 29, 2023

Companion PRs (this one must be merged first of three):

Description

Extensions do not use all the internal components of a RestRequest and initial implementation double-purposed the ExtensionsRestRequest object used in transport as the object that Extensions would need to handle. However, increasing use of the methods on this object are ending up duplicating a lot of code. It makes a lot more sense to just recreate a RestRequest object from the parameters passed in this request.

While this is marked api, it is only used behind feature-flagged code and will not break any BWC.

Issues Resolved

Part of SDK #431.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@owaiskazi19 owaiskazi19 merged commit cdab7f2 into opensearch-project:main Mar 30, 2023
@dbwiddis dbwiddis added the backport 2.x Backport to 2.x branch label Mar 30, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 30, 2023
Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit cdab7f2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
tlfeng pushed a commit that referenced this pull request Apr 3, 2023
)

Extensions do not use all the internal components of a `RestRequest` and initial implementation double-purposed the `ExtensionsRestRequest` object used in transport as the object that Extensions would need to handle. However, increasing use of the methods on this object are ending up duplicating a lot of code. It makes a lot more sense to just recreate a `RestRequest` object from the parameters passed in this request.

(cherry picked from commit cdab7f2)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
@dbwiddis dbwiddis deleted the restRequest branch April 4, 2023 00:36
mitrofmep pushed a commit to mitrofmep/OpenSearch that referenced this pull request Apr 5, 2023
…-project#6874)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants