[MGNLUI-6518] Pass AdmincentralErrorHandler to dialogs so they have access to it when detached from UI Created: 21/Jan/21  Updated: 27/Jan/21  Resolved: 22/Jan/21

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

Type: Improvement Priority: Neutral
Reporter: Šimon Demočko Assignee: Šimon Demočko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 6h 32m
Original Estimate: Not Specified

Issue Links:
Relates
causality
is causing PAGES-370 No error when creating page with dial... 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)
Sprint: UI FW 20
Story Points: 0

 Description   

Context

AdmincentralErrorHandler is the errorHandler of ResurfaceUI. Dialogs (as Windows) are attached to ResurfaceUI. When errorHandler is looked up it is taken from the parent - ResurfaceUI. Dialogs are sometimes detached from UI, yet, they may cause an error right afterwards...

Current situation

.. at that point, AdmincentralErrorHandler is unreachable, since ResurfaceUI is not reachable. Errors do not generate pulse messages, so no banner is shown for errors, like in PAGES-370.

Desired situation

Pass AdmincentralErrorHandler as error handler of the dialog's window. This way detached dialogs can still pass errors to AEH, who will generate visible error banners as pulse messages.


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