[MGNLUI-2502] Some apps: A folder does not expand when you add an item to it. Created: 09/Dec/13  Updated: 09/Mar/21  Resolved: 09/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: tree/list
Affects Version/s: 5.2.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-2283 Pages App: Tree view: The selected pa... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

In at least the Categories and Assets apps (maybe others as well) user will expect to see the created item - therefore if creating an item in a closed folder (or any kind of parent) the folder (parent) must be automatically opened on creation.

Probably the solution is to emulate the event fired as in OpenCreateDialogAction:
eventBus.fireEvent(new ContentChangedEvent(item.getWorkspace(), item.getItemId(), true));

...in the action responsible for creating categories and assets:
CreateItemAction.

mplementor should also check the other main apps to ensure that the behaviour is correct there as well.


Generated at Mon Feb 12 08:57:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.