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

Invalid Rule Handling #250

Merged
merged 10 commits into from
Dec 23, 2020
Merged

Invalid Rule Handling #250

merged 10 commits into from
Dec 23, 2020

Conversation

ymylei
Copy link
Contributor

@ymylei ymylei commented Dec 19, 2020

Designed to deal with #157

A group rule becomes INVALID when one of the groups in the group_assignments is deleted (generally via the API) while the rule itself is still using it.

A group rule in the INVALID state can only be read or deleted, no other operations appear to be supported.

This adds handling to the provider to allow it to recognize this state, and handle it so when it is encountered, it will allow the rule to still be deleted, and additionally uses the customdiff to ensure that

Moving invalid const into group rule file since it only applies to group rules.
This probably isn't useful since the refresh phase should fail on the data object, we should be able to test/view by just ttrying to update to a new group which does exist.
@ymylei
Copy link
Contributor Author

ymylei commented Dec 20, 2020

I could use additional assistance with this one, since the "free" okta accounts do not have the ability to create / use group rules.

Mainly someone who can run the acceptance tests and see if they're working and as-desired.

@bogdanprodan-okta bogdanprodan-okta added the enhancement Asking for new behavior or feature label Dec 20, 2020
@bogdanprodan-okta
Copy link
Contributor

Hi @ymylei! Thanks for the PR! I'll run the acceptance tests using test org. If everything is good, I'll merge the PR!

@bogdanprodan-okta bogdanprodan-okta merged commit 4d112e2 into okta:master Dec 23, 2020
@ymylei ymylei deleted the inval_rule branch December 23, 2020 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Asking for new behavior or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants