Skip to content

Commit

Permalink
docs: add methods from storage and remove unnecessary events from the…
Browse files Browse the repository at this point in the history
… proposal
  • Loading branch information
capaj committed Jun 18, 2024
1 parent 3986a0b commit 84e4723
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions docs/proposals/proposal-audit-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@ schemas, and other resources.
- `deleteProject`
- `updateName`

### ArtifactStorageWriter

- `writeArtifact`
- `deleteArtifact`

### CompositeLegacyModel

- `check`
- `publish`

### SingleLegacyModel

- `check`
- `publish`

### TargetManager

- `createTarget`
Expand All @@ -62,9 +47,7 @@ schemas, and other resources.

### SchemaPublisher

- `updateVersionStatus`
- `delete`
- `publishToCDN`

### SchemaManager

Expand Down Expand Up @@ -103,7 +86,6 @@ schemas, and other resources.
- `unregister`
- `createCheckRun`
- `updateCheckRun`
- `updateCheckRunToSuccess`
- `enableProjectNameInGithubCheck`

### SlackIntegrationManager
Expand All @@ -126,7 +108,6 @@ schemas, and other resources.

- `createContract`
- `disableContract`
- `approveContractChecksForSchemaCheckId`

### AlertsManager

Expand All @@ -135,11 +116,47 @@ schemas, and other resources.
- `addAlert`
- `deleteAlerts`

## Storage

- updateUser
- updateOrganizationName
- updateOrganizationPlan
- updateOrganizationRateLimits
- createOrganizationInvitation
- deleteOrganizationInvitationByEmail
- createOrganizationTransferRequest
- answerOrganizationTransferRequest
- addOrganizationMemberViaInvitationCode
- deleteOrganizationMember
- updateOrganizationMemberAccess
- assignOrganizationMemberRole
- assignOrganizationMemberRoleToMany
- deleteOrganizationMemberRole
- updateProjectRegistryModel
- createVersion
- updateVersionStatus
- createActivity
- addSlackIntegration
- deleteSlackIntegration
- addGitHubIntegration
- deleteGitHubIntegration
- setSchemaPolicyForOrganization
- setSchemaPolicyForProject
- createDocumentCollection
- deleteDocumentCollection
- updateDocumentCollection
- createDocumentCollectionDocument
- deleteDocumentCollectionDocument
- updateDocumentCollectionDocument
- createSchemaCheck


## Implementation

Proposed implementation is to use a single clickhouse table to store all events. The table will have
Proposed implementation is to use a single Clickhouse table to store all events. The table will have
the following columns:


```sql
CREATE TABLE audit_log (
event_time DateTime DEFAULT now(),
Expand Down

0 comments on commit 84e4723

Please sign in to comment.