Skip to content

Commit 1234490

Browse files
committed
fix: fix team tables
1 parent 5bb0c81 commit 1234490

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

cloudql/github/table_github_team_member.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,12 @@ func tableGitHubTeamMember() *plugin.Table {
2424

2525
func gitHubTeamMemberColumns() []*plugin.Column {
2626
cols := []*plugin.Column{
27-
{Name: "organization", Type: proto.ColumnType_STRING, Description: "The organization the team is associated with.",
28-
Transform: transform.FromField("Description.Organization")},
2927
{Name: "slug", Type: proto.ColumnType_STRING, Description: "The team slug name.",
3028
Transform: transform.FromField("Description.Slug")},
3129
{Name: "role", Type: proto.ColumnType_STRING, Description: "The team member's role (MEMBER, MAINTAINER).",
3230
Transform: transform.FromField("Description.Role")},
33-
{Name: "company", Type: proto.ColumnType_STRING, Description: "The company on the user's profile.",
34-
Transform: transform.FromField("Description.Company")},
35-
{Name: "created_at", Type: proto.ColumnType_TIMESTAMP, Description: "Timestamp when user was created.",
36-
Transform: transform.FromField("Description.CreatedAt")},
37-
{Name: "email", Type: proto.ColumnType_STRING, Description: "The email of the user.",
38-
Transform: transform.FromField("Description.Email")},
39-
{Name: "id", Type: proto.ColumnType_INT, Description: "The ID of the user.",
40-
Transform: transform.FromField("Description.ID")},
41-
{Name: "interaction_ability", Type: proto.ColumnType_JSON, Description: "The interaction ability settings for this user.",
42-
Transform: transform.FromField("Description.InteractionAbility")},
43-
{Name: "is_site_admin", Type: proto.ColumnType_BOOL, Description: "If true, user is a site administrator.",
44-
Transform: transform.FromField("Description.IsSiteAdmin")},
45-
{Name: "location", Type: proto.ColumnType_STRING, Description: "The location of the user.",
46-
Transform: transform.FromField("Description.Location")},
47-
{Name: "login", Type: proto.ColumnType_STRING, Description: "The login name of the user.",
48-
Transform: transform.FromField("Description.Login")},
4931
{Name: "login_id", Type: proto.ColumnType_STRING, Description: "Unique identifier for the user login.",
5032
Transform: transform.FromField("Description.LoginID")},
51-
{Name: "name", Type: proto.ColumnType_STRING, Description: "The name of the user.",
52-
Transform: transform.FromField("Description.Name")},
53-
{Name: "node_id", Type: proto.ColumnType_STRING, Description: "The node ID of the user.",
54-
Transform: transform.FromField("Description.NodeID")},
5533
}
5634

5735
cols = append(cols, sharedUserColumns()...)

cloudql/github/table_github_team_repository.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ import (
99

1010
func gitHubTeamRepositoryColumns() []*plugin.Column {
1111
teamColumns := []*plugin.Column{
12-
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Description: "",
13-
Transform: transform.FromQual("Description.RepositoryFullName")},
1412
{Name: "permission", Type: proto.ColumnType_STRING, Description: "The permission level the team has on the repository.",
1513
Transform: transform.FromQual("Description.Permission")},
1614
{Name: "team_id", Type: proto.ColumnType_INT, Description: "",
1715
Transform: transform.FromQual("Description.TeamID")},
18-
{Name: "created_at", Type: proto.ColumnType_TIMESTAMP, Description: "",
19-
Transform: transform.FromQual("Description.CreatedAt")},
20-
{Name: "updated_at", Type: proto.ColumnType_TIMESTAMP, Description: "",
21-
Transform: transform.FromQual("Description.UpdatedAt")},
2216
}
2317

2418
return append(teamColumns, sharedRepositoryColumns()...)

discovery/describers/team_member.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func tableGitHubTeamMemberList(ctx context.Context, githubClient model.GitHubCli
7878
NodeID: member.Node.NodeId,
7979
Organization: org,
8080
Role: string(member.Role),
81+
Slug: slug,
8182
},
8283
}
8384
if stream != nil {

0 commit comments

Comments
 (0)