Skip to content
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

Don't allow empty content in note widget #607

Merged
merged 5 commits into from
Jul 30, 2020

Conversation

therve
Copy link
Contributor

@therve therve commented Jul 29, 2020

If the note_definition of a widget is empty, it will fail JSON
serialization. Let's make sure it fails validation instead.

Closes #574

If the note_definition of a widget is empty, it will fail JSON
serialization. Let's make sure it fails validation instead.

Closes #574
jirikuncar
jirikuncar previously approved these changes Jul 30, 2020
Copy link
Contributor

@jirikuncar jirikuncar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test case with an empty content?

@therve therve merged commit dcdb66c into master Jul 30, 2020
@therve therve deleted the therve/note-widget-empty-content branch July 30, 2020 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datadog_dashboard note_definition widget parsing error with empty content
2 participants