-
Notifications
You must be signed in to change notification settings - Fork 137
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
Refactor time_restriction
and stabilise plans containing notification_rule.steps
, notification_policy.filter.conditions
and time_restrictions
#404
Conversation
Restrict Filters and timerestriction blocks on notification policies Ensure stable plans when using notification rule steps or notification policy conditions
@koushik-swaminathan Sorry to ping you, but I would love to have this reviewed to continue using the provider :) |
@Baarsgaard sure, I'll take a look. Have you tested these changes? |
Yes, all of it is tested. |
LGTM, tested it as well. But it looks like it doesn't really fix the conditions in-place issues, but time-restriction seems to be stable now. |
Could you share what specifically does not work? |
Hi @Baarsgaard, the in-place issue was persisting in my local but it seems to work for you. LGTM, approving the PR. |
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.
Could you edit the date and version in the changelog? I'll merge the PR after that. Thank you!
I'll set it for Monday next week 2023-11-06 |
@koushik-swaminathan Should be ready for a merge now! :D |
I was thinking about what could be the cause of this. If you run |
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!
Commits:
Closes Docs for "opsgenie_notification_policy" contain invalid syntax #246
Closes opsgenie_notification_rule.steps is order sensitive #253 And opsgenie_notification_policy conditions order is not stable causing "in-place" updates though nothing changes #409
And adds some much needed schema validation for Terraform-ls to use.
Closes Fix for "time restriction" is not stable #341:
Unifies the Schema, Input-Validation, and
expanding/flattening
fortime_restriction
blocks.This implementation should fix unstable plans containing
time_restriction
for all resources.Schedule rotation "time restriction" is not stable #225 only addressed a single resource.
Closes opsgenie_notification_policy not validating that all the expected fields are defined #355
Way stricter input validation of actions before
terraform apply
This is a pretty big PR solely because of the
time_restriction
refactor, I am willing to split it, but I do still think reviewing this PR one commit at a time is feasible.