-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Feature Request] Apply TrimSpace
on some potentially complicated Alert fields
#11
Comments
TrimSpace
on some potentially complicated Alert fieldsTrimSpace
on some potentially complicated Alert fields
Sorry, mis-clicked and closed it. I was gonna say, if you welcome contributions I can also do it, although I am not a Golang programmer I am an experienced programmer. All I would need is maybe a |
@stephenchu, we're more than happy to have outside contributors, I've added a CONTRIBUTOR file in #13 |
as we needed this as well |
Closed by #21 |
🙇 ty! |
#40 |
Terraform's
strings.TrimSpace
will remove whitespace before and after a given string. I would like to propose to use it on the following Wavefront Alert fields that can get big and be implemented in heredocs:Trimming the whitespace will make it consistent with the web values too. For example, with the following applied config:
... when I go to the web UI and just hit "Save" with non change, the
condition
anddisplay_expression
textboxes show no newline at the end of course, but a subsequent plan shows the following now:... because the web saved value has no newline, but my heredoc has.
This request is motivated by a similar code change in the Datadog Provider, where their
message
field defines the rendering of an alert.I haven't started creating other Wavefront objects in this plugin yet, but I am sure some other fields can also benefit from this feature request.
The text was updated successfully, but these errors were encountered: