-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Batch selection is not in sync between search results and record view. #8492
Batch selection is not in sync between search results and record view. #8492
Conversation
The changes seem to fix the second case on #8295 but the first case still does not work. Reproduction steps:
|
@tylerjmchugh right that problem is not related to the different selection bucket used on each place. That's a user interface problem, and at the moment I'm not clear how to handle it. The button is based on browsing history, rather than doing a search. |
@josegar74 Ok, in that case the proposed changes do solve the issue they were intended to fix. Looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
haven't change EsHTTPProxy.msearch that still uses SELECTION_METADATA as I'm not sure if should be changed or not.
So far we are not using selection with msearch endpoint so should be ok.
The backport to
stderr
stdout
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-4.2.x 4.2.x
# Navigate to the new working tree
cd .worktrees/backport-4.2.x
# Create a new branch
git switch --create backport-8492-to-4.2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick ce0fa456dfe9d8aae584f70f5660f7940a8ac48f
# Push it to GitHub
git push --set-upstream origin backport-8492-to-4.2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.2.x Then, create a pull request where the |
Fixes #8295
@fxprunayre the fix solves the issue, but there is another selection bucket (
SELECTION_METADATA
) that is used in 22 places:core-geonetwork/core/src/main/java/org/fao/geonet/kernel/SelectionManager.java
Line 55 in bedfe3d
I have change
EsHTTPProxy
search methods to useSELECTION_BUCKET
and update the value frombucket
tos101
. I haven't changeEsHTTPProxy.msearch
that still usesSELECTION_METADATA
as I'm not sure if should be changed or not.I would like to add some comment to
SELECTION_METADATA
describing it's usage.Includes Sonarlint code improvements.
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentation