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
LPS-146104 Avoid setting static and final fields on extended entities #1860
Conversation
CI is automatically triggering the following test suites:
|
✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPS-146104 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#7 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:liferay-frontend#1860 Testray Routine:EE Pull Request Testray Build:[master] ci:test:sf - javierdearcos > liferay-frontend - PR#1860 - 2022-01-25[08:35:28] Testray Importer:publish-testray-report#8 |
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 :) Nice improvement 🙂
ci:forward |
CI is automatically triggering the following test suites:
The pull request will automatically be forwarded to the user
|
Skipping previously passed test suites: |
Jenkins Build:test-portal-acceptance-pullrequest(master)#598 Jenkins Report:jenkins-report.html Jenkins Suite:relevant Pull Request:liferay-frontend#1860 Testray Routine:EE Pull Request Testray Build:[master] ci:test:relevant - javierdearcos > liferay-frontend - PR#1860 - 2022-01-25[09:56:33] Testray Importer:publish-testray-report#1674 |
Jenkins Build:test-portal-acceptance-pullrequest(master)#19 Jenkins Report:jenkins-report.html Jenkins Suite:relevant Pull Request:liferay-frontend#1860 Testray Routine:EE Pull Request Testray Build:[master] ci:test:relevant - javierdearcos > liferay-frontend - PR#1860 - 2022-01-25[08:35:28] Testray Importer:publish-testray-report#42 |
ci:forward |
CI is automatically triggering the following test suites:
The pull request will automatically be forwarded to the user
|
Skipping previously passed test suites: |
All required test suite(s) passed. |
Pull request has been successfully forwarded to brianchandotcom#112646 |
There are some problems serializing extended entities, that is, entities that extend existing DTOs adding some new fields. An example is the Structured Content return by the Headless Admin Content API.
Steps to reproduce the issue:
siteId
with your siteId:Expected result: The list of structured contents
Result: Internal server error response
The issue was caused by the addition of a new static final field on the DTOs in the generated code to escape the serialized JSON. More information in the ticket
The issue is solved by avoiding setting the static and final fields on extended entities.