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

[7/X] Refactor guardian resources to allow for empty fields #342

Merged
merged 5 commits into from
Oct 7, 2022

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Oct 7, 2022

🔧 Changes

This PR is breaking down the work done in #320 so it's easier to review. However all of these branches will get slowly merged into the allow-empty-epic-branch before getting merged to main. Tests won't pass until everything is within that branch, due to the fact that we're refactoring one resource at a time but the go-auth0 dependency bump introduces several breaking changes.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught requested a review from a team as a code owner October 7, 2022 08:06
willvedd and others added 4 commits October 7, 2022 11:49
…ield (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>
Copy link
Contributor

@willvedd willvedd left a comment

Choose a reason for hiding this comment

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

Reviewed w/ @sergiught 👍

@willvedd willvedd merged commit 7503d21 into 6-allow-empty-connection Oct 7, 2022
@willvedd willvedd deleted the 7-allow-empty-guardian branch October 7, 2022 16:04
willvedd added a commit that referenced this pull request Oct 10, 2022
* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
* Refactor branding resources to allow for empty fields

* [5/X] Refactor client resources to allow for empty fields (#340)

* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
…338)

* Refactor attack protection resource to allow for empty fields

* [4/X] Refactor branding resources to allow for empty fields (#339)

* Refactor branding resources to allow for empty fields

* [5/X] Refactor client resources to allow for empty fields (#340)

* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
* Refactor actions resource to allow for empty fields

* Refactor actions trigger binding resource to allow for empty fields

* [3/X] Refactor attack protection resource to allow for empty fields (#338)

* Refactor attack protection resource to allow for empty fields

* [4/X] Refactor branding resources to allow for empty fields (#339)

* Refactor branding resources to allow for empty fields

* [5/X] Refactor client resources to allow for empty fields (#340)

* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding test for multiple depss

* Adding stop

Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
* Bump github.com/auth0/go-auth0 from 0.10.1 to 0.11.0

Bumps [github.com/auth0/go-auth0](https://github.com/auth0/go-auth0) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/auth0/go-auth0/releases)
- [Changelog](https://github.com/auth0/go-auth0/blob/main/CHANGELOG.md)
- [Commits](auth0/go-auth0@v0.10.1...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/auth0/go-auth0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [2/X] Refactor actions resource to allow for empty fields (#337)

* Refactor actions resource to allow for empty fields

* Refactor actions trigger binding resource to allow for empty fields

* [3/X] Refactor attack protection resource to allow for empty fields (#338)

* Refactor attack protection resource to allow for empty fields

* [4/X] Refactor branding resources to allow for empty fields (#339)

* Refactor branding resources to allow for empty fields

* [5/X] Refactor client resources to allow for empty fields (#340)

* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding test for multiple depss

* Adding stop

Co-authored-by: Will Vedder <will.vedder@okta.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com>
Co-authored-by: Will Vedder <will.vedder@okta.com>
willvedd added a commit that referenced this pull request Oct 10, 2022
[1/X] Bump github.com/auth0/go-auth0 from 0.10.1 to 0.11.0 (#336)

* Bump github.com/auth0/go-auth0 from 0.10.1 to 0.11.0

Bumps [github.com/auth0/go-auth0](https://github.com/auth0/go-auth0) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/auth0/go-auth0/releases)
- [Changelog](https://github.com/auth0/go-auth0/blob/main/CHANGELOG.md)
- [Commits](auth0/go-auth0@v0.10.1...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/auth0/go-auth0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [2/X] Refactor actions resource to allow for empty fields (#337)

* Refactor actions resource to allow for empty fields

* Refactor actions trigger binding resource to allow for empty fields

* [3/X] Refactor attack protection resource to allow for empty fields (#338)

* Refactor attack protection resource to allow for empty fields

* [4/X] Refactor branding resources to allow for empty fields (#339)

* Refactor branding resources to allow for empty fields

* [5/X] Refactor client resources to allow for empty fields (#340)

* Refactor client resources to allow for empty fields

* [6/X] Refactor connection resources to allow for empty fields (#341)

* Refactor client resources to allow for empty fields

* Refactor connection resources to allow for empty fields

* [7/X] Refactor guardian resources to allow for empty fields (#342)

* Refactor guardian resources to allow for empty fields

* Early return for erroneous guardian API requests

* Early return for erroneous guardian API requests

* [8/X] Refactor orgs to allow for empty fields and remove deprecated field (#343)

* Refactor ors to allow for empty fields and remove deprecated field

* [9/X] Refactor email resources to allow for empty fields (#344)

* Refactor email resources to allow for empty fields

* [10/X] Refactor resource server resources to allow for empty fields (#345)

* Refactor resource server resources to allow for empty fields

* [11/X] Refactor tenant resource to allow for empty fields (#346)

* Refactor tenant resource to allow for empty fields

* [12/X] Refactor custom domain resource to allow for empty fields (#347)

* Refactor custom domain resource to allow for empty fields

* [13/X] Refactor user resource to allow for empty fields (#348)

* Refactor user resource to allow for empty fields

* [14/X] Refactor role and rule resources to allow for empty fields (#349)

* Refactor role and rule resources to allow for empty fields

* [15/X] Refactor log stream resource to allow for empty fields (#350)

* Refactor log stream resource to allow for empty fields

* [16/X] Refactor prompts resource to allow for empty fields (#351)

* Refactor prompts resource to allow for empty fields

* [17/X] Refactor hooks resource to allow for empty fields (#352)

Refactor hooks resource to allow for empty fields

* Fix small issue with log stream filters

* Adding user_id back in to tests

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Removing default audience string replace

* Removing unncessary check

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding extra assertion

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

Co-authored-by: Will Vedder <will.vedder@okta.com>

* Adding test for multiple depss

* Adding stop

Co-authored-by: Will Vedder <will.vedder@okta.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com>
Co-authored-by: Will Vedder <will.vedder@okta.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com>
Co-authored-by: Will Vedder <will.vedder@okta.com>
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.

None yet

2 participants