feat(Audit logs): Emit and serve organisation-level audit logs

Merged
EM
2d ago
+767-69

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes https://github.com/Flagsmith/flagsmith/issues/8888

  • Extends the existing /api/v1/organisations/{id}/audit/ and .../{log_id}/ endpoints with organisation-level audit log capabilities.
  • Same for /api/v1/audit/ (all audit logs). Includes logs from multiple organisations.

How did you test this code?

New/missing functional tests for the endpoints.