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

LPD-50672 Support multiple selection with pagination in SearchContainer modal #4781

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chestofwonders
Copy link
Collaborator

Issue: https://liferay.atlassian.net/browse/LPD-50672
LPP: https://liferay.atlassian.net/browse/LPP-57520

Support multiple selection with pagination in SearchContainer modal

The goal of this PR is to support multiple selection within pagination in SearchContainer modal.

The initial problem was that the SearchContainer removes objects from the DOM when navigating through pages, leaving only nodes with the "value" attribute, but losing the reference to the dataset of the parent node of the list. This made it impossible for the Commerce module to support multiple selection of roles across more than one page.

The solution was to make the SearchContainer include the required information when changing pages. In addition, the elements that consumed that information had to be adapted to give them the intelligence to know if they had to obtain the information they needed from the parent element, or from the element created by pagination itself.

⚠️ Commerce team, please check this commit, that adapts role_item_selector.jsp ⚠️

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 6 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8ac9b6c56f56b6f3222ee196435d8d27932ef50a

Sender Branch:

Branch Name: LPD-50672
Branch GIT ID: 06342180685cd1d980df914dc8087c8b880dfb98

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@chestofwonders chestofwonders requested a review from dsanz March 6, 2025 17:35
@liferay-continuous-integration
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants