Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add workspace auditing #3966

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

Merged
merged 1 commit into from
Sep 10, 2022
Merged

feat: add workspace auditing #3966

merged 1 commit into from
Sep 10, 2022

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Sep 9, 2022

No description provided.

@coadler coadler self-assigned this Sep 9, 2022
@coadler coadler force-pushed the colin/workspace-auditing branch from d60bec5 to 6ac2929 Compare September 9, 2022 17:15
@coadler coadler marked this pull request as ready for review September 9, 2022 17:15
@coadler coadler changed the title feat: add template/template version auditing feat: add workspace auditing Sep 9, 2022
@coadler coadler requested a review from kylecarbs September 9, 2022 17:27
Comment on lines +252 to +261
var (
organization = httpmw.OrganizationParam(r)
apiKey = httpmw.APIKey(r)
aReq, commitAudit = audit.InitRequest[database.Workspace](rw, &audit.RequestParams{
Features: api.FeaturesService,
Log: api.Logger,
Request: r,
Action: database.AuditActionCreate,
})
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's shorter to not put these in a var block, so I'd rather have them out. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorta partial to just having a var block at the top of each handler, I think it separates them cleanly from the actual code. Don't feel super strongly though, but I think it should be consistent.

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coadler coadler merged commit 29bac36 into main Sep 10, 2022
@coadler coadler deleted the colin/workspace-auditing branch September 10, 2022 16:07
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.

3 participants