Skip to content

Save response from failed notification in database #254

@vasile-baluta

Description

@vasile-baluta

Description

Today Eiffel Intelligence back-end does not store any information about a failed notification in the database. It is logged to the console, but users who does not have access to this does not see why a notification failed.

When a subscription triggers EI attempts to notify about this using REST POST or MAIL. If either of those fails for some reason, EI currently saves 1) subscription name, 2) time 3) state of the aggregated object when subscription triggered 4) notification meta. This is not enough information for the user if they want to find out WHY something went wrong.

We also need to document these changes, what happens when a subscription fails.

Motivation

No information about what happens when a subscription fails. The user still has to search logs when they notice a notification has not happened.

There is an issue eiffel-community/eiffel-intelligence-frontend#256 in front-end about making any failed notification visible in the GUI for users to readily be able to debug their flows. However, in order to be able to visualize the WHY in the GUI back-end needs to store this information also.

Exemplification

Benefits

Easier to use Eiffel Intelligence and to ensure your subscriptions are working properly. If something goes wrong, the user can understand why this happened (e.g. could be a misspelled URL or MAIL, or REST service down) and attempt to fix this.

Possible Drawbacks

Metadata

Metadata

Labels

bugSomething is wrong and needs fixing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions