Skip to content

Commit

Permalink
Merge pull request #2071 from opengovern/fix-enable-integration
Browse files Browse the repository at this point in the history
fix: add platform name to list integration types
  • Loading branch information
artaasadi authored Nov 26, 2024
2 parents 824dea5 + 5602eed commit 7b00f3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions services/integration/api/integrations/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,13 @@ func (h API) ListIntegrationTypes(c echo.Context) error {
}
}
items = append(items, models.ListIntegrationTypesItem{
ID: integrationType.ID,
Name: integrationType.Name,
Title: integrationType.Label,
Logo: integrationType.Logo,
State: state,
Count: count,
ID: integrationType.ID,
Name: integrationType.Name,
Title: integrationType.Label,
PlatformName: integrationType.IntegrationType,
Logo: integrationType.Logo,
State: state,
Count: count,
})
}

Expand Down
13 changes: 7 additions & 6 deletions services/integration/api/models/integration_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ type IntegrationTypeIntegrationCount struct {
}

type ListIntegrationTypesItem struct {
ID int64 `json:"id"`
Name string `json:"name"`
Title string `json:"title"`
Logo string `json:"logo"`
State string `json:"state"`
Count IntegrationTypeIntegrationCount `json:"count"`
ID int64 `json:"id"`
Name string `json:"name"`
PlatformName string `json:"platform_name"`
Title string `json:"title"`
Logo string `json:"logo"`
State string `json:"state"`
Count IntegrationTypeIntegrationCount `json:"count"`
}

type ListIntegrationTypesResponse struct {
Expand Down

0 comments on commit 7b00f3a

Please sign in to comment.