-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update table widget definition and request #686
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Quick question on the type
@@ -3297,6 +3297,10 @@ func getQueryTableDefinitionSchema() map[string]*schema.Schema { | |||
Schema: getWidgetTimeSchema(), | |||
}, | |||
}, | |||
"has_search_bar": { | |||
Type: schema.TypeString, |
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.
Should this be a bool?
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.
No, this is a string enum ("always"
, "never"
, or "auto"
) – is there a way to specify an enum?
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.
Ahh ok thanks. You could do something like set a ValidateFunc with stringInSlice - https://github.com/hashicorp/terraform/blob/master/helper/validation/validation.go#L32 but I think its OK to just document the allowed fields too.
2468a44
to
4eb75b0
Compare
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.
That looks good, can you tweak the documentation to mention the new field? Thanks.
c4ca78b
to
57300d8
Compare
@therve this is passing now and docs updated. We should probably wait to merge until the upstream correction to the schema (for |
80f49dd
to
c133987
Compare
/azp run |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Adds new properties to the table widget definition and request