-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add full support for timeseries definitions #282
Conversation
zdylag
commented
Aug 9, 2019
- Add support for Type
- Add support for Events
- Add support for YAxis
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.
Thanks a lot @zdylag for this PR. I took a quick glance and added some comments. Could you also please add some tests for your changes? This will help a lot in reviewing.
@enbashi I tried following the existing tests and adding some using that. Are there more tests I should add? I didn't see other tests that seemed similar? |
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.
It looks like importing a dashboard with yaxis->include_zero
set results to an error: widget.0.timeseries_definition.0.yaxis.include_zero: expected type 'string', got unconvertible type 'bool'
.
}, | ||
}, | ||
"yaxis": { | ||
Type: schema.TypeMap, |
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.
Not sure about the type here. If you look at the HeatmapDefinitionSchema
or ScatterplotDefinitionSchema
that also have the yaxis
field, the type used is TypeList
.
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.
@jbenais I fixed up the yaxis to look more like the others, I think. Not sure how you are testing things. Does this work better now?
2a4bf98
to
2b65e05
Compare
@jbenais thanks for the pointers! I copied the code in question and it maybe is happier now. Would you mind taking another look? |
Thanks for the excitement, @stephen! We'll take a final pass at this during this week. |
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.
LGTM, thanks a lot for doing this! 💯💪🏻
Hey, apologies I meant to tackle this today. Will take a look and hopefully merge tomorrow. Thanks again and sorry for the delay here. |
* Add support for Events * Add support for YAxis
@nmuesch I removed the default line |
Thanks a lot for the contribution and iterations! Going to merge this now! 🎉 |
thank you! could you cut a new release with this change available? |
There are a couple of other PRs open that I'll give a little time to go through. I think we can look at cutting a release early next week. 🙂 |
Hey, just wanted to close the loop here and let you know that 2.4.0 of the provider was released today that included this change. - https://github.com/terraform-providers/terraform-provider-datadog/blob/master/CHANGELOG.md |