Skip to content

Commit

Permalink
fix: add keyColumns to get configs
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 9, 2024
1 parent b246bf4 commit d650abb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ func tableGitHubCommunityProfile() *plugin.Table {
Name: "github_community_profile",
Description: "Community profile information for the given repository.",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
Hydrate: opengovernance.ListCommunityProfile,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: opengovernance.ListCommunityProfile,
},
Columns: commonColumns([]*plugin.Column{
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func tableGitHubContainerPackage() *plugin.Table {
Hydrate: opengovernance.ListPackage,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackage,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackage,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-github/github/table_github_maven_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func tableGitHubMavenPackage() *plugin.Table {
Hydrate: opengovernance.ListPackage,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackage,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackage,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-github/github/table_github_npm_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func tableGitHubNPMPackage() *plugin.Table {
Hydrate: opengovernance.ListPackage,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackage,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackage,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-github/github/table_github_nuget_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func tableGitHubNugetPackage() *plugin.Table {
Hydrate: opengovernance.ListPackage,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackage,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackage,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ func tableGitHubPackageVersion() *plugin.Table {
Hydrate: opengovernance.ListPackageVersion,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackageVersion,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackageVersion,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func tableGitHubRubyGemsPackage() *plugin.Table {
Hydrate: opengovernance.ListPackage,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPackage,
KeyColumns: plugin.AllColumns([]string{"id"}),
Hydrate: opengovernance.GetPackage,
},
Columns: []*plugin.Column{
// Basic details columns
Expand Down

0 comments on commit d650abb

Please sign in to comment.