Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specific permission to view audit logs #2190

Merged
merged 8 commits into from
May 19, 2023

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented May 8, 2023

Changes

Adds a specific permission at the organisation level for viewing Audit Log records.

Note that as part of this, I've had to add a new endpoint since the current endpoint gets all of the audit log records for all organisations that a user belongs to.

The new endpoint is nested beneath the organisation so that it can be filtered accordingly and permissions can be applied. This will not affect the UI since the audit log is always currently shown in the context of a project (which
always belongs to a single organisation).

How did you test this code?

Added unit tests

@matthewelwell matthewelwell linked an issue May 8, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented May 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2023 4:13pm

@matthewelwell matthewelwell changed the title 2174 add specific permission to view audit logs Add specific permission to view audit logs May 8, 2023
@matthewelwell matthewelwell temporarily deployed to production May 8, 2023 16:00 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to staging May 8, 2023 16:00 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Uffizzi Preview deployment-24609 was deleted.

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

@matthewelwell matthewelwell temporarily deployed to production May 8, 2023 16:27 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to staging May 8, 2023 16:27 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to production May 8, 2023 17:05 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to staging May 8, 2023 17:05 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to production May 11, 2023 07:35 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to staging May 11, 2023 07:35 — with GitHub Actions Inactive
api/audit/permissions.py Outdated Show resolved Hide resolved
api/audit/tests/test_views.py Outdated Show resolved Hide resolved
api/audit/views.py Outdated Show resolved Hide resolved
@matthewelwell matthewelwell temporarily deployed to production May 15, 2023 16:13 — with GitHub Actions Inactive
@matthewelwell matthewelwell temporarily deployed to staging May 15, 2023 16:13 — with GitHub Actions Inactive
@matthewelwell
Copy link
Contributor Author

@khvn26 I added all the typing as per your comments.

@matthewelwell matthewelwell merged commit 50145ef into main May 19, 2023
14 checks passed
@matthewelwell matthewelwell deleted the 2174-add-specific-permission-to-view-audit-logs branch May 19, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add specific permission to view audit logs
2 participants