Skip to content

Conversation

@pquentin
Copy link
Member

This reverts commit #4276 since _knn_search is still needed in rest-api-spec to run YAML tests against it, as the API is
still available with v8 compatibility mode. However, we make the API private so it does not get back into clients, as it would fail due to v9 compatibility.

Additionally, we fix the compiler to ignore UpdateForV10 in all JSDoc blocks, given this is only meaningful at the ESLint level.

This reverts commit 2a24e33 since _knn_search
is still needed in rest-api-spec to run YAML tests against it, as the API is
still available with v8 compatibility mode.

However, we make the API private so that it does not get back into clients, as
it would fail with v9 compatibility.
@pquentin pquentin requested a review from a team as a code owner November 25, 2025 07:50
@pquentin pquentin added the skip-backport This pull request should not be backported label Nov 25, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2025

Following you can find the validation changes against the target branch for the API.

API Status Request Response
knn_search ➕ 🟢 4/4 4/4

You can validate this API yourself by using the make validate target.

@pquentin pquentin changed the title Rest api spec knn search Add back private knn_search API for rest-api-spec generation Nov 26, 2025
@pquentin pquentin merged commit 709ff24 into main Nov 26, 2025
14 of 16 checks passed
@pquentin pquentin deleted the rest-api-spec-knn-search branch November 26, 2025 10:03
@github-actions
Copy link
Contributor

The backport to 9.1 failed:

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

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-9.1 9.1
# Navigate to the new working tree
cd .worktrees/backport-9.1
# Create a new branch
git switch --create backport-5737-to-9.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 709ff2494b0fe79f86afc9301529624084ab6297
# Push it to GitHub
git push --set-upstream origin backport-5737-to-9.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.1

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

github-actions bot pushed a commit that referenced this pull request Nov 26, 2025
* Revert "Remove knn_search API (#4276)"

This reverts commit 2a24e33 since _knn_search
is still needed in rest-api-spec to run YAML tests against it, as the API is
still available with v8 compatibility mode.

However, we make the API private so that it does not get back into clients, as
it would fail with v9 compatibility.

* Add UpdateForV10 annotation

* Fix lint

(cherry picked from commit 709ff24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants