Skip to content

Inclusion of Event ID in API Response

Problem to solve

The problem here is the ability to assign a unique ID to an event that is being pulled via the events API: https://docs.gitlab.com/ee/api/events.html.

Intended users

Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/

User experience goal

This is entirely a user experience goal for a developer using the API. There is no UX component.

Proposal

In a scenario where somebody is trying to pull or replicate these out of Gitlab's system and into another system, there is no way to assign a primary key to the event that is pulled from the Gitlab API, but instead would need to derive some form of primary key from the permutation of fields that are returned. The Events table has an ID column that could be returned as an ID field in the API response, or a new IID could be set and returned to counteract any data deletion and recycling of IDs that may occur on the 2-year expiration time period of the events table.

Permissions and Security

Documentation

https://docs.gitlab.com/ee/api/audit_events.html

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited by Killian Brackey