Open hmpf opened 2 months ago
.. it might be useful to have a readonly endpoint that shows which event types are available for use with the API for the logged-in user.
While I am at it: Should it be allowed to post stateless events? Because when creating a stateless incident a stateless event is automatically created.
And I was also thinking: Why should we explicitly forbid source systems to send start events? Because currently when encountering an event that doesn't fit (e.g. a start event, a double reopen, ...) we simply register the event without it influencing the incidents (see https://github.com/Uninett/Argus/blob/master/src/argus/incident/views.py#L507-L517). Why do we need to change this?
INCIDENT_START is created by the backend when it receives a new incident and should not be created by any other process.
Needed:
.. plus eventual surprises..
This is really a case where making the test first is a good way to proceed!