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-37787 Filtering using r_<relationshipName>_c_<objectName>ERC is not working properly #158839

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

Conversation

ccorreagg
Copy link

See: #158791

@dannielraposo
@liferay-headless

Original pull request comment:
Initial Approach liferay-headless#2460
The first attempt to fix this involved modifying the query by adding a new inner join for this case. While technically feasible, this approach was quite complex.

Solution in this PR
The new solution leverages the fact that for a many-to-one relationship, the field r_cERC is always equivalent to /externalReferenceCode, which is already implemented and functional.

By modifying the filterableAndSortableFieldNameFunction of the entity field to utilize this existing workaround, the filter now works as intended without the need for additional joins or complex query adjustments.

See the following Jira Ticket: LPD-37787

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

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

Successfully merging this pull request may close these issues.

4 participants