Flagsmith / Flagsmith/flagsmith

Support Organisation-Level Audit Log Records

Open
#2,797 4 comments 0 reactions 1 assignee Claimed by @emyller View on GitHub
api improvement
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Currently the platform only supports Audit Log records at the project level or below. We should modify this to support events at the Organisation-Level.

There is a list of items that we want to be able to track, but we should focus on implementing a small number of these as a PoC for organisation-level records. These items are separated into specific sub-issues of this parent issue.

Suggestion would be to complete [this task](https://github.com/Flagsmith/flagsmith/issues/7571) as a PoC for these events.

The scope of this work is to extend the `AuditLog` model to add a new `organisation` field, update the existing and/or add new API endpoints for retrieving Audit Log records to retrieve them for an organisation, and to add a new Audit Log view in the dashboard at the Organisation level. The endpoint that lists the audit log records for the organisation should include all audit log records for all projects and environments inside the organisation. It should be possible to filter by project and subsequently environment (see usage page for an example of this filtering functionality). Users must be organisation admin to retrieve the organisation level audit logs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.