Project-OMOTES / architecture-documentation

0 stars 0 forks source link

Design flow of errors from backend models to frontend #13

Closed lfse-slafleur closed 1 month ago

lfse-slafleur commented 7 months ago

Figure out the possible types of errors and how to get any relevant errors to the frontend when necessary. Will need to discuss with simulator, optimizer & KPI module teams on what type of errors they expect will be relevant to show to the user.

We need to design for the use case: "There is an issue that the user can fix by themselves, present the error so they know the issue and can figure out the fix." For instance, missing profile, during optimization/simulation no solution turns out to be feasible because.., an error that the validator did not pick up. Also, a user needs to be shown something whenever something goes wrong. So there will be a class of errors that need to land somewhere where a helpdesk can pick them up but a 'call helpdesk' error is shown to the user. Probably the frontend needs to be able to route these errors as the filter between what is shown is different for MapEditor and TPG.

lfse-slafleur commented 5 months ago

Implementation on worker-side done. Waiting on orchestrator-side & sdk-side. Will document once fully implemented.

lfse-slafleur commented 4 months ago

Tbd:

lfse-slafleur commented 1 month ago

@lfse-slafleur