bcgov / ocp-sso

BCGov Single Sign-On KeyCloak
http://oidc.gov.bc.ca/
Apache License 2.0
8 stars 8 forks source link

Split event tracking into separate entity #453

Closed ConradBoydElliottGustafson closed 3 years ago

ConradBoydElliottGustafson commented 3 years ago

Previously we had events like "submitted" as a boolean + timestamp on the main entity.

Because we now let customers edit their redirect URLs, there can be "n" events and we need a many-to-one relationship

AC: New table for "event". Fields: PK, request key, event code, timestamp

So when the update is requested that is an event Wen the update is fulfilled GitHub actions will call the API and the new event will be recorded We will keep a "state" property in the main entity.

jlangy commented 3 years ago

add a null userid for now request-{event}-{success | fail}