| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Refactors Aiven credential-related types and activity log handling by removing shared “aiven credentials” GraphQL/schema artifacts and moving credential creation activity log entries into the Valkey and OpenSearch domains.
Changes:
Copilot reviewed 19 out of 23 changed files in this pull request and generated 5 comments.
Show a summary per file| File | Description |
|---|---|
| internal/persistence/valkey/queries.go | Logs credential creation via activitylog.Create instead of aivencredentials.LogCredentialCreation. |
| internal/persistence/valkey/models.go | Introduces ValkeyPermission alias and updates credential input to use it. |
| internal/persistence/valkey/dataloader.go | Adds logger plumbing to Valkey loader context creation. |
| internal/persistence/valkey/activitylog.go | Adds Valkey-specific credential activity log transformer + filter registration and data types. |
| internal/persistence/opensearch/queries.go | Logs credential creation via activitylog.Create instead of aivencredentials.LogCredentialCreation. |
| internal/persistence/opensearch/models.go | Introduces OpenSearchPermission alias and updates credential input to use it. |
| internal/persistence/opensearch/dataloader.go | Stores logger on loaders for future/use by dataloaders. |
| internal/persistence/opensearch/activitylog.go | Adds OpenSearch-specific credential activity log transformer + filter registration and data types. |
| internal/persistence/aivencredentials/queries.go | Removes shared helper LogCredentialCreation. |
| internal/persistence/aivencredentials/models.go | Removes outdated comment for CredentialPermission. |
| internal/persistence/aivencredentials/activitylog.go | Removes shared credential activity log entry transformer/types. |
| internal/graph/schema/valkey.graphqls | Adds ValkeyPermission, Valkey credential activity log entry types, and a Valkey-specific activity type filter. |
| internal/graph/schema/opensearch.graphqls | Adds OpenSearchPermission, OpenSearch credential activity log entry types, and an OpenSearch-specific activity type filter. |
| internal/graph/schema/aiven_credentials.graphqls | Removes shared credential schema definitions (CredentialPermission, CredentialsActivityLogEntry, CREDENTIALS_CREATED). |
| internal/graph/gengql/valkey.generated.go | Regenerates GraphQL execution code for new Valkey credential activity log entry types and input enum. |
| internal/graph/gengql/opensearch.generated.go | Regenerates GraphQL execution code for new OpenSearch credential activity log entry types and input enum. |
| internal/graph/gengql/schema.generated.go | Updates Node resolution to include the new resource-specific credential activity log entry types (and removes old shared type). |
| internal/graph/gengql/root_.generated.go | Updates schema strings and complexity roots to reflect new enums/types and removed shared ones. |
| internal/graph/gengql/aiven_credentials.generated.go | Removes generated code for the deleted shared credential schema. |
| internal/graph/gengql/activitylog.generated.go | Updates ActivityLogEntry interface resolution to include new resource-specific types (and remove old shared type). |
| internal/cmd/api/http.go | Updates Valkey loader context call to pass logger. |
| internal/activitylog/model.go | Adds ActivityLogEntryActionCredentialsCreated constant. |
| integration_tests/aiven_credentials.lua | Updates activity log queries/expectations to use new filter values and concrete credential entry types. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot reviewed 19 out of 23 changed files in this pull request and generated no new comments.
Files not reviewed (4)Previously missed (2) — in code that hasn't changed since the last review.
internal/persistence/valkey/activitylog.go:63
activitylog.RegisterFilter("VALKEY_CREATED", activitylog.ActivityLogEntryActionCreated, ActivityLogEntryResourceTypeValkey)
activitylog.RegisterFilter("VALKEY_UPDATED", activitylog.ActivityLogEntryActionUpdated, ActivityLogEntryResourceTypeValkey)
activitylog.RegisterFilter("VALKEY_DELETED", activitylog.ActivityLogEntryActionDeleted, ActivityLogEntryResourceTypeValkey)
activitylog.RegisterFilter("VALKEY_MAINTENANCE_STARTED", servicemaintenanceal.ActivityLogEntryActionMaintenanceStarted, ActivityLogEntryResourceTypeValkey)
activitylog.RegisterFilter("VALKEY_CREDENTIALS_CREATED", activitylog.ActivityLogEntryActionCredentialsCreated, ActivityLogEntryResourceTypeValkey)
internal/persistence/opensearch/activitylog.go:63
activitylog.RegisterFilter("OPENSEARCH_CREATED", activitylog.ActivityLogEntryActionCreated, ActivityLogEntryResourceTypeOpenSearch)
activitylog.RegisterFilter("OPENSEARCH_UPDATED", activitylog.ActivityLogEntryActionUpdated, ActivityLogEntryResourceTypeOpenSearch)
activitylog.RegisterFilter("OPENSEARCH_DELETED", activitylog.ActivityLogEntryActionDeleted, ActivityLogEntryResourceTypeOpenSearch)
activitylog.RegisterFilter("OPENSEARCH_MAINTENANCE_STARTED", servicemaintenanceal.ActivityLogEntryActionMaintenanceStarted, ActivityLogEntryResourceTypeOpenSearch)
activitylog.RegisterFilter("OPENSEARCH_CREDENTIALS_CREATED", activitylog.ActivityLogEntryActionCredentialsCreated, ActivityLogEntryResourceTypeOpenSearch)
internal/graph/schema/valkey.graphqls:541
extend enum ActivityLogActivityType {
"Filter for credential creation events."
VALKEY_CREDENTIALS_CREATED
}
Sorry, something went wrong.
There was a problem hiding this comment.
Copilot reviewed 19 out of 23 changed files in this pull request and generated no new comments.
Files not reviewed (4)internal/graph/schema/opensearch.graphqls:460
input CreateOpenSearchCredentialsInput {
"The team that owns the OpenSearch instance."
teamSlug: Slug!
"The environment name that the OpenSearch instance belongs to."
environmentName: String!
"Name of the OpenSearch instance."
instanceName: String!
"Permission level for the credentials."
permission: OpenSearchPermission!
"Time-to-live for the credentials (e.g. '1d', '7d'). Maximum 30 days."
ttl: String!
internal/graph/schema/valkey.graphqls:481
input CreateValkeyCredentialsInput {
"The team that owns the Valkey instance."
teamSlug: Slug!
"The environment name that the Valkey instance belongs to."
environmentName: String!
"Name of the Valkey instance."
instanceName: String!
"Permission level for the credentials."
permission: ValkeyPermission!
"Time-to-live for the credentials (e.g. '1d', '7d'). Maximum 30 days."
ttl: String!
Sorry, something went wrong.
Also add activity log for kafka credential creation
| Back | FazBrowse Home | New Git URL |
No description provided.