-
Notifications
You must be signed in to change notification settings - Fork 0
Add Database Log table to query database logs for a workspace. #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddharthaturbot if we could replace Db
with DB
in the functions name.
Otherwise, PR looks good
steampipecloud/plugin.go
Outdated
@@ -30,6 +30,7 @@ func Plugin(ctx context.Context) *plugin.Plugin { | |||
"steampipecloud_workspace_connection": tableSteampipeCloudWorkspaceConnection(ctx), | |||
"steampipecloud_workspace_mod": tableSteampipeCloudWorkspaceMod(ctx), | |||
"steampipecloud_workspace_mod_variable": tableSteampipeCloudWorkspaceModVariable(ctx), | |||
"steampipecloud_workspace_db_log": tableSteampipeCloudWorkspaceDbLog(ctx), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"steampipecloud_workspace_db_log": tableSteampipeCloudWorkspaceDbLog(ctx), | |
"steampipecloud_workspace_db_log": tableSteampipeCloudWorkspaceDBLog(ctx), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddharthaturbot Please see review questions, thanks!
@@ -110,7 +110,7 @@ func listOrganizations(ctx context.Context, d *plugin.QueryData, h *plugin.Hydra | |||
// execute list call | |||
pagesLeft := true | |||
|
|||
var resp openapi.ListActorOrgsResponse | |||
var resp openapi.ListUserOrgsResponse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddharthaturbot Is this change related to the table that this PR is adding? If not, can you please describe why we're making this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ListActorOrgsResponse is not used by the SDK anymore. Its necessary to add it in the PR or it wont compile.
@@ -312,7 +308,6 @@ func getUserWorkspaceMod(ctx context.Context, d *plugin.QueryData, h *plugin.Hyd | |||
response, err := plugin.RetryHydrate(ctx, d, h, getDetails, &plugin.RetryConfig{ShouldRetryError: shouldRetryError}) | |||
|
|||
workspaceMod := response.(openapi.WorkspaceMod) | |||
workspaceMod.Workspace = &openapi.Workspace{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change related to the table we're adding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, Workspace is not part of the struct anymore.
Example query results
Results