-
Notifications
You must be signed in to change notification settings - Fork 894
chore: rearrange audit logging code into enterprise folder #3741
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
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bdde128
chore: rearrange audit logging code into enterprise folder
coadler 823a58d
add nop auditor
coadler b3776e0
fixup! add nop auditor
coadler d23edf8
Merge branch 'main' into colin/auditv2
coadler b417218
typo
coadler 1188f69
fix tests
coadler 595f4c1
fixup! fix tests
coadler 8f915f6
add auditor constructor
coadler 10a0d3b
spike comments
coadler ec83dfc
fixup! spike comments
coadler f7d579c
Merge branch 'main' into colin/auditv2
coadler 9cfcbeb
fixup! Merge branch 'main' into colin/auditv2
coadler c3115ec
comment why Differ is necessary
coadler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixup! spike comments
- Loading branch information
commit ec83dfcc1d4168768aae3452c380e8577ed735ed
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ALTER TABLE audit_logs | ||
DROP COLUMN additional_fields, | ||
DROP COLUMN request_id; | ||
DROP COLUMN request_id, | ||
DROP COLUMN resource_icon; |
13 changes: 9 additions & 4 deletions
13
coderd/database/migrations/000039_audit_addtl_fields.up.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
ALTER TABLE audit_logs ADD COLUMN additional_fields jsonb NOT NULL DEFAULT '{}'::jsonb; | ||
ALTER TABLE audit_logs ALTER COLUMN additional_fields DROP DEFAULT; | ||
ALTER TABLE audit_logs ADD COLUMN request_id uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'::uuid; | ||
ALTER TABLE audit_logs ALTER COLUMN request_id DROP DEFAULT; | ||
ALTER TABLE audit_logs | ||
ADD COLUMN additional_fields jsonb NOT NULL DEFAULT '{}'::jsonb, | ||
ADD COLUMN request_id uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'::uuid, | ||
ADD COLUMN resource_icon text NOT NULL DEFAULT ''; | ||
|
||
ALTER TABLE audit_logs | ||
ALTER COLUMN additional_fields DROP DEFAULT, | ||
ALTER COLUMN request_id DROP DEFAULT, | ||
ALTER COLUMN resource_icon DROP DEFAULT; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.