[BUG] Enable setting review notifications without delegation#3220
[BUG] Enable setting review notifications without delegation#3220deiga wants to merge 13 commits intointegrations:mainfrom
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
407f0ed to
7f8814d
Compare
|
@deiga could you please rebase this? |
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
…elegation` Mark nested `notify` as deprecated Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
…ogic with `getTeam` Signed-off-by: Timo Sand <timo.sand@f-secure.com>
21beff2
7f8814d to
21beff2
Compare
|
@stevehipwell @robert-crandall Rebased, please review. |
stevehipwell
left a comment
There was a problem hiding this comment.
Just a couple of things to look at.
| // only one source can be active at a time. | ||
| func resolveNotify(ctx context.Context, d *schema.ResourceData) bool { | ||
| // Check if top-level notify is explicitly configured. | ||
| if v, ok := d.GetOk("notify"); ok { |
There was a problem hiding this comment.
I'm not sure there is any value to using GetOk() here given the way it works and the fact that you're using an explicit schema?
There was a problem hiding this comment.
The way I understand the code is that this is exactly where GetOk() should work for TypeBool.
It should check if notify has been set in the config, right? Of course the tests don't have that scenario at all 🙃
There was a problem hiding this comment.
Or how else would I be checking which one of the fields is actually set? Should I just read both and see if either is true? That sounds simpler 🤔
Resolves #2273
Before the change?
github_team_settingswe're missing computed attributesCheck:structurereview_request_delegationblocknotifywithout enabling delegationAfter the change?
github_team_settingsare completeterraform-plugin-testingreview_request_delegationblocknotifywithout enabling delegationPull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!