Skip to content

Introduce an Events API

What does this MR do?

Introduce an Events API

Are there points in the code the reviewer needs to double check?

Results wise, this endpoint can produce a lot. The queries are always scope to the event source, a project or a user, and the filters allow the query to be reduced even further. Performance wise, the worst call is the probably the projects/:id/events endpoint but this is no worse than it previously was.

Why was this MR needed?

Results for events for projects and users cannot currently be filtered. Some projects have hundreds of thousands of associated events, growing each day, and retrieving all of them to only work with a narrow dataset can take a long time.

We plan to use this to determine the events created during the Issue Bash to understand the contributions made enable prizewinners to be picked

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #14707 (closed)

Edited by username-removed-419655

Merge request reports