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

Skip to content

feat: add audit logging database schema #1225

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 6 commits into from
May 2, 2022
Merged

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Apr 29, 2022

No description provided.

@codecov
Copy link

codecov bot commented Apr 29, 2022

Codecov Report

Merging #1225 (f765154) into main (e4e6025) will decrease coverage by 0.34%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1225      +/-   ##
==========================================
- Coverage   66.20%   65.85%   -0.35%     
==========================================
  Files         275      271       -4     
  Lines       17952    17816     -136     
  Branches      216      216              
==========================================
- Hits        11885    11733     -152     
- Misses       4836     4864      +28     
+ Partials     1231     1219      -12     
Flag Coverage Δ
unittest-go-macos-latest 53.15% <0.00%> (-0.31%) ⬇️
unittest-go-postgres- 64.91% <0.00%> (-0.15%) ⬇️
unittest-go-ubuntu-latest 55.54% <0.00%> (-0.35%) ⬇️
unittest-go-windows-2022 ?
unittest-js 70.69% <ø> (ø)
Impacted Files Coverage Δ
coderd/database/queries.sql.go 78.04% <0.00%> (-3.10%) ⬇️
provisionersdk/serve.go 35.13% <0.00%> (-8.11%) ⬇️
cli/configssh.go 62.04% <0.00%> (-6.57%) ⬇️
pty/ptytest/ptytest.go 86.95% <0.00%> (-4.35%) ⬇️
cli/templateinit.go 58.62% <0.00%> (-3.45%) ⬇️
provisioner/echo/serve.go 54.40% <0.00%> (-2.40%) ⬇️
peer/channel.go 84.39% <0.00%> (-1.74%) ⬇️
provisionerd/provisionerd.go 76.17% <0.00%> (-0.94%) ⬇️
provisioner/terraform/provision.go 71.88% <0.00%> (-0.43%) ⬇️
peer/conn.go 80.34% <0.00%> (-0.25%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4e6025...f765154. Read the comment docs.

Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me!

"time" timestamp with time zone NOT NULL,
user_id uuid NOT NULL,
organization_id uuid NOT NULL,
ip cidr NOT NULL,
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 neat that PostgreSQL has a cidr type!

@coadler coadler force-pushed the colin/audit-log-schema branch from 09fb77c to e585f91 Compare May 2, 2022 19:10
@coadler coadler force-pushed the colin/audit-log-schema branch from a1788df to 38cdef4 Compare May 2, 2022 19:14
@coadler coadler enabled auto-merge (squash) May 2, 2022 19:29
@coadler coadler merged commit 81bef1c into main May 2, 2022
@coadler coadler deleted the colin/audit-log-schema branch May 2, 2022 19:30
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
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