[MGNLUI-6534] Value context should be emptied on a failed operation Created: 27/Jan/21  Updated: 27/Jan/21

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Šimon Demočko Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

Steps to reproduce

  1.  Follow repro steps from PAGES-370

Expected results

Nothing in value context

Actual results

You can trigger actions over the node in value context, which is the non-really-existent page. E.g. add a subpage. This will persist the broken parent page without a page template.

Development notes

Instead of Exceptions wrapping we should do some try-catch-finally and get into some consistent state after a failed operation (emptying value context, or reverting to the previous one)


Generated at Mon Feb 12 09:37:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.