-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design how incident relations should work #313
Comments
It would be useful to see who or what created the relation. This could be readable from the API but probably not changeable. |
The main elephant is the room is Assuming we will need at least three types:
One of the purposes of IncidentRelations is to be able to hide ("roll up") certain incidents. In the cases of type 1 and 3, which do we hide? One suggestion is whichever is newest. In the case of 2, we should probably hide x and maybe increase the severity of y. (Then log that increase somehow.) Maybe all the incidents should be hidden and given a relation to a new incident created by the source argus? If a source that is excluded from notificationfilters is a cause of something that does trigger a notification, shouldn't that still lead to a notification? What should actually be stored in the model? If just "name", what is a good/relevant name? |
if we decide to render different types differently, there are at least two ways to go about it. One is to have the format to use in a field on
Pro: Easy to add new types Another is to use proxy models: one per type, with separate str-methods:
Pro: Easy to add other type-specific ways of doing things |
What happens as parts of a relation gets acked or closed or have other events? If we create a meta-incident, can it be automatically closed? |
If we have types like "causes/caused by", it becomes important to get which incident is the cause and which is the result correctly, and this needs to be visible in the API somehow. For types like "has the same (unknown) cause", this doesn't matter, and it should behave differently in the frontend. |
See also PR #312, which so far ensures that
incident1
andincident2
cannot be identical.If
name
is"duplicate"
,str(IncidentRelation)
would look something like"Incident #32 duplicate #17"
, which is not very useful.The text was updated successfully, but these errors were encountered: