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-44159 Rework data set serialization (actions) #158439

Closed
wants to merge 24 commits into from

Conversation

dsanz
Copy link

@dsanz dsanz commented Feb 4, 2025

Followup of #158397 with some naming improvements.

SF and tests pass locally

dsanz and others added 24 commits February 3, 2025 09:12
… data sets, with unit tests

# breaking

## What modules/apps/frontend-data-set/frontend-data-set-api/src/main/java/com/liferay/frontend/data/set/action/FDSCreationMenu.java

deleted method
   * public CreationMenu getCreationMenu(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws PortalExceptionn

added method
   * public CreationMenu getCreationMenu(HttpServletRequest httpServletRequest)

## Why

httpServletResponse is not necessary to compute the creation menu. Also, we want implementations to handle their exceptions and return an empty menu if something goes wrong, so that the serialization does not stop. This is a recently added interface, not yet implemented. Customers are not affected at the time of this writing

----
…tem data sets, with unit tests

# breaking

## What modules/apps/frontend-data-set/frontend-data-set-api/src/main/java/com/liferay/frontend/data/set/action/FDSItemActionList.java

deleted method
  * public List<FDSActionDropdownItem> getFDSActionDropdownItems(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws PortalException

added method
  * public List<FDSActionDropdownItem> getFDSActionDropdownItems(HttpServletRequest httpServletRequest);

## Why

httpServletResponse is not necessary to compute the item action list. Also, we want implementations to handle their exceptions and return an empty list if something goes wrong, so that the serialization does not stop. This is a recently added interface, not yet implemented. Customers are not affected at the time of this writing

----
…ts, with unit tests. Custom data sets don't yet support definition of bulk actions so we provide a placeholder implementation to facilitate reference handling in the renderer
@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.

@dsanz
Copy link
Author

dsanz commented Feb 4, 2025

see #158467

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.

3 participants