Skip to content

Commit

Permalink
Merge pull request #1953 from opengovern/fix-web-ui
Browse files Browse the repository at this point in the history
fix: update analytics and queries
  • Loading branch information
artaasadi authored Nov 12, 2024
2 parents c404ad8 + 42e482b commit 5e50859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/integration/client/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type IntegrationServiceClient interface {
ListIntegrationsByFilters(ctx *httpclient.Context, req models.ListIntegrationsRequest) (*models.ListIntegrationsResponse, error)
IntegrationHealthcheck(ctx *httpclient.Context, integrationID string) (*models.Integration, error)
GetCredential(ctx *httpclient.Context, credentialID string) (*models.Credential, error)
ListCredentials(ctx *httpclient.Context) (models.ListCredentialsResponse, error)
ListCredentials(ctx *httpclient.Context) (*models.ListCredentialsResponse, error)
GetIntegrationGroup(ctx *httpclient.Context, integrationGroupName string) (*models.IntegrationGroup, error)
ListIntegrationGroups(ctx *httpclient.Context) ([]models.IntegrationGroup, error)
}
Expand Down Expand Up @@ -96,7 +96,7 @@ func (c *integrationClient) GetCredential(ctx *httpclient.Context, credentialID
return response, nil
}

func (c *integrationClient) ListCredentials(ctx *httpclient.Context) (models.ListCredentialsResponse, error) {
func (c *integrationClient) ListCredentials(ctx *httpclient.Context) (*models.ListCredentialsResponse, error) {
url := fmt.Sprintf("%s/api/v1/credentials", c.baseURL)
var response models.ListCredentialsResponse

Expand All @@ -106,7 +106,7 @@ func (c *integrationClient) ListCredentials(ctx *httpclient.Context) (models.Lis
}
return nil, err
}
return response, nil
return &response, nil
}

func (c *integrationClient) IntegrationHealthcheck(ctx *httpclient.Context, integrationID string) (*models.Integration, error) {
Expand Down
3 changes: 3 additions & 0 deletions services/migrator/job/migrations/analytics/populate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (m Migration) Run(ctx context.Context, conf config.MigratorConfig, logger *
return nil
})
if err != nil && !errors.Is(err, fs.ErrNotExist) {
logger.Error("failed to get assets", zap.Error(err))
return err
}

Expand All @@ -64,6 +65,7 @@ func (m Migration) Run(ctx context.Context, conf config.MigratorConfig, logger *
return nil
})
if err != nil && !errors.Is(err, fs.ErrNotExist) {
logger.Error("failed to get spends", zap.Error(err))
return err
}

Expand All @@ -74,6 +76,7 @@ func (m Migration) Run(ctx context.Context, conf config.MigratorConfig, logger *
return nil
})
if err != nil && !errors.Is(err, fs.ErrNotExist) {
logger.Error("failed to get queries", zap.Error(err))
return err
}

Expand Down

0 comments on commit 5e50859

Please sign in to comment.