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

[Backport 2.x] Add SortResponseProcessor to Search Pipelines (#14785) #14868

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

dbwiddis
Copy link
Member

Backport 5de0c8a from #14785.

* Add SortResponseProcessor for search pipelines

Signed-off-by: Daniel Widdis <[email protected]>

* Add stupid and unnecessary javadocs to satisfy overly strict CI

Signed-off-by: Daniel Widdis <[email protected]>

* Split casting and sorting methods for readability

Signed-off-by: Daniel Widdis <[email protected]>

* Register the sort processor factory

Signed-off-by: Daniel Widdis <[email protected]>

* Address code review comments

Signed-off-by: Daniel Widdis <[email protected]>

* Cast individual list elements to avoid creating two lists

Signed-off-by: Daniel Widdis <[email protected]>

* Add yamlRestTests

Signed-off-by: Daniel Widdis <[email protected]>

* Clarify why there's unusual sorting

Signed-off-by: Daniel Widdis <[email protected]>

* Use instanceof instead of isAssignableFrom

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
Copy link
Contributor

✅ Gradle check result for 45cd64e: SUCCESS

@dbwiddis dbwiddis merged commit 10bdfee into opensearch-project:2.x Jul 22, 2024
51 of 52 checks passed
@dbwiddis dbwiddis deleted the backport-14785-to-2.x branch July 22, 2024 20:06
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.16 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.16 2.16
# Navigate to the new working tree
pushd ../.worktrees/backport-2.16
# Create a new branch
git switch --create backport/backport-14868-to-2.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 10bdfeecb978c06c059304a12187a696abc940b4
# Push it to GitHub
git push --set-upstream origin backport/backport-14868-to-2.16
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.16

Then, create a pull request where the base branch is 2.16 and the compare/head branch is backport/backport-14868-to-2.16.

opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
* Add SortResponseProcessor for search pipelines

* Add stupid and unnecessary javadocs to satisfy overly strict CI

* Split casting and sorting methods for readability

* Register the sort processor factory

* Address code review comments

* Cast individual list elements to avoid creating two lists

* Add yamlRestTests

* Clarify why there's unusual sorting

* Use instanceof instead of isAssignableFrom

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 10bdfee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis
Copy link
Member Author

The backport to 2.16 failed:

Merged the conflicting PR and toggled the backport 2.16 label, it auto-generated. No further action needed.

dbwiddis pushed a commit that referenced this pull request Jul 22, 2024
* Add SortResponseProcessor for search pipelines

* Add stupid and unnecessary javadocs to satisfy overly strict CI

* Split casting and sorting methods for readability

* Register the sort processor factory

* Address code review comments

* Cast individual list elements to avoid creating two lists

* Add yamlRestTests

* Clarify why there's unusual sorting

* Use instanceof instead of isAssignableFrom

---------


(cherry picked from commit 10bdfee)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dblock dblock added the v2.16.0 Issues and PRs related to version 2.16.0 label Jul 23, 2024
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…) (opensearch-project#14868)

* Add SortResponseProcessor for search pipelines

* Add stupid and unnecessary javadocs to satisfy overly strict CI

* Split casting and sorting methods for readability

* Register the sort processor factory

* Address code review comments

* Cast individual list elements to avoid creating two lists

* Add yamlRestTests

* Clarify why there's unusual sorting

* Use instanceof instead of isAssignableFrom

---------

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.16 v2.16.0 Issues and PRs related to version 2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants