Make users aware of errors thanks to a generic popup

Registered by Fernando Casanova

Use the Bus to connect a generic error message handler to any error message that goes through the bus.
Whenever this message handler receives an error message, it hides the previous screen and enqueues a popup with a custom message sent through the bus.

Blueprint information

Status:
Complete
Approver:
Florian Boucault
Priority:
Medium
Drafter:
Fernando Casanova
Direction:
Needs approval
Assignee:
Fernando Casanova
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 1.0.9
Started by
Florian Boucault
Completed by
Olivier Tilloy

Related branches

Sprints

Whiteboard

Use cases:
We want to be able to dsplay an error message in a generic manner from different parts of the code (database, browser, player, etc...).

A short sum up of all the use cases would be (incomplete):
- Whenever a video is not playable, display a message explaining why
- Whenever we try to categorize 2 movies with the same name, display a message
- Whenever we try to download a plugin and get a timeout, display a message
- Whenever we get a timeout getting data from the internet (in a plugin), display a message (ex: themoviedb down)
- Whenever the video recategorisation display a message and tell the user where he can find the video.

examples of duplicated code:
elisa-plugins/elisa/plugins/poblesec/player_video.py
lines 1400 1427

Error messages exist, but they are not generic.

Ideally, the specific error messages (player-unknown-error) should only set the text and pass the handling of the current front-end and the info to put in the popup to the generic error handler.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.