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

log rbac-related backend events #49181

Merged
merged 3 commits into from
Mar 13, 2023
Merged

log rbac-related backend events #49181

merged 3 commits into from
Mar 13, 2023

Conversation

BolajiOlajide
Copy link
Contributor

This PR adds a logger for events, so rbac-related events can be viewed in the event_logs table.
I also removed the constraint where a site admin can't assign a role to themselves.

Test plan

  • Manual testing
  • Update unit tests.

@courier-new
Copy link
Contributor

Oops I beat you to the site admin thing: https://github.com/sourcegraph/sourcegraph/pull/49180 😂

@BolajiOlajide
Copy link
Contributor Author

Oops I beat you to the site admin thing: https://github.com/sourcegraph/sourcegraph/pull/49180 😂

Haha! Thank you Kelli. I'll rebase once that's merged into main then.

@BolajiOlajide BolajiOlajide merged commit 0ac73dd into main Mar 13, 2023
@BolajiOlajide BolajiOlajide deleted the bo/log-rbac-events branch March 13, 2023 19:30
github-actions bot pushed a commit that referenced this pull request Mar 13, 2023
This PR adds a logger for events, so rbac-related events can be viewed
in the `event_logs` table.
I also removed the constraint where a site admin can't assign a role to
themselves.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
* Manual testing
* Update unit tests.

(cherry picked from commit 0ac73dd)
BolajiOlajide added a commit that referenced this pull request Mar 13, 2023
This PR adds a logger for events, so rbac-related events can be viewed
in the `event_logs` table.
I also removed the constraint where a site admin can&#39;t assign a role
to themselves.

## Test plan

&lt;!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
--&gt;
* Manual testing
* Update unit tests. <br> Backport
0ac73dd from #49181

Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants