cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Entity inspector exports composition collections with a _minimal view #3262

Closed gorbunkov closed 2 years ago

gorbunkov commented 2 years ago

Environment

Description of the bug or enhancement

  1. Create an entity with a composition collection, e.g. Order -> OrderLines. The OrderLine entity must have several attributes.

  2. Create an entity instance.

  3. Open the entity inspector screen and export the Order instance.

AR: In the JSON file the orderLines collection will contain items where only attributes from the instance name are present.

ER: composition collection items should be exported with the _local view. Probably, the associations should be loaded there as well.

Forum: https://forum.cuba-platform.com/t/problems-with-json-import-export-and-compositions/16150

Implemented:

Local and system properties has been added to export view for composition entities.

Also we need to check this issue in Jmix. -> checked: no such problem.

rusiaikinat commented 2 years ago

MicrosoftTeams-image.png

creates/updates is reseted at import

rusiaikinat commented 2 years ago

https://github.com/cuba-platform/cuba/issues/3290#issue-1441704457 The deleted entity is restored during import JSON #3290