Skip to content

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

Merged
dbwiddis merged 1 commit intoopensearch-project:2.xfrom
dbwiddis:backport-14785-to-2.x
Jul 22, 2024
Merged

[Backport 2.x] Add SortResponseProcessor to Search Pipelines (#14785)#14868
dbwiddis merged 1 commit intoopensearch-project:2.xfrom
dbwiddis:backport-14785-to-2.x

Conversation

@dbwiddis
Copy link
Copy Markdown
Member

Backport 5de0c8a from #14785.

* Add SortResponseProcessor for search pipelines

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add stupid and unnecessary javadocs to satisfy overly strict CI

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Split casting and sorting methods for readability

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Register the sort processor factory

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Address code review comments

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Cast individual list elements to avoid creating two lists

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add yamlRestTests

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Clarify why there's unusual sorting

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Use instanceof instead of isAssignableFrom

Signed-off-by: Daniel Widdis <widdis@gmail.com>

---------

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

✅ Gradle check result for 45cd64e: SUCCESS

@dbwiddis dbwiddis merged commit 10bdfee into opensearch-project:2.x Jul 22, 2024
@dbwiddis dbwiddis deleted the backport-14785-to-2.x branch July 22, 2024 20:06
@opensearch-trigger-bot
Copy link
Copy Markdown
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 <widdis@gmail.com>
(cherry picked from commit 10bdfee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis
Copy link
Copy Markdown
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 <widdis@gmail.com>
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 <widdis@gmail.com>
Signed-off-by: kkewwei <kkewwei@163.com>
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