-
Notifications
You must be signed in to change notification settings - Fork 1
Add table turbot_active_grant closes #23 #24
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.
@ParthaI Please see comments, thanks!
A lot of comments are around field naming, we had established some guidelines in #15 (review), was there a reason you deviated from these here?
docs/tables/turbot_active_grant.md
Outdated
|
||
## Examples | ||
|
||
### List all turbot active grants |
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.
### List all turbot active grants | |
### Basic info |
turbot/table_turbot_active_grant.go
Outdated
{Name: "level_title", Type: proto.ColumnType_STRING, Transform: transform.FromField("Grant.Level.Title"), Description: "The title of the level."}, | ||
{Name: "level_trunk_title", Type: proto.ColumnType_STRING, Transform: transform.FromField("Grant.Level.Trunk.Title"), Description: "Full title (including ancestor trunk) of the level."}, | ||
{Name: "level_uri", Type: proto.ColumnType_STRING, Transform: transform.FromField("Grant.Level.URI"), Description: "The URI of the level."}, | ||
{Name: "type_trunk_title", Type: proto.ColumnType_STRING, Transform: transform.FromField("Resource.Type.Trunk.Title"), Description: "Full title (including ancestor trunk) of the grant type."}, |
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.
Why does this column and the one below not include the word resource
, but the others below it do with similar property paths?
turbot/table_turbot_active_grant.go
Outdated
// Other columns | ||
{Name: "create_timestamp", Type: proto.ColumnType_TIMESTAMP, Transform: transform.FromField("Resource.Turbot.CreateTimestamp").NullIfEqual(""), Description: "The create time of the grant."}, | ||
{Name: "filter", Type: proto.ColumnType_STRING, Transform: transform.FromQual("filter"), Description: "Filter used for this grant list."}, | ||
{Name: "timestamp", Type: proto.ColumnType_TIMESTAMP, Transform: transform.FromField("Resource.Turbot.Timestamp").NullIfEqual(""), Description: "Timestamp when the grant was last modified (created, updated or deleted)."}, |
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 there a Turbot.Timestamp
field we can get from GraphQL for this resource type? If so, how is it different than the Resource.Turbot.Timestamp
?
What does the Resource.Turbot.Timestamp
data represent?
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.
In general, a lot of these other columns are for Resource
, so I'm not sure if/how they're related to the grant info?
Example query results
Results