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

#189 Fixed handling of additional json properties of alertmanager 0.21.0. #190

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Conversation

lazyBisa
Copy link
Contributor

@lazyBisa lazyBisa commented Jul 9, 2020

Description of the Change

See Issue #189. Additional json properties in an alert request are not ignored, but raise an execption, breaking any setup with alertmangaer 0.21+.
I added a configuration to the schema to allow for and ignore additional json properties.
https://marshmallow.readthedocs.io/en/stable/quickstart.html#handling-unknown-fields

Benefits

  • No longer broken for alertmanager 0.21.0
  • v2 Api now forward-compatible

Possible Drawbacks

Applicable Issues

#189

@tonnymadsen
Copy link

Sounds good!
We just had to roll back our upgrade of alertmanager, so this is really good news.

Copy link

@tonnymadsen tonnymadsen left a comment

Choose a reason for hiding this comment

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

Looks good.

@dortegau dortegau merged commit 340ff3a into idealista:develop Jul 13, 2020
@lazyBisa lazyBisa deleted the patch-1 branch July 16, 2020 16:47
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.

6 participants