-
Notifications
You must be signed in to change notification settings - Fork 23
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
ref: Migrate useOktaConfig to TSQ V5 #3683
ref: Migrate useOktaConfig to TSQ V5 #3683
Conversation
@@ -312,7 +321,7 @@ describe('OktaConfigForm', () => { | |||
name: /Okta Login Enforced/, | |||
}) | |||
await waitFor(() => { | |||
expect(oktaLoginEnforceToggle).toHaveClass('bg-toggle-inactive') | |||
expect(oktaLoginEnforceToggle).toHaveClass('bg-toggle-active') |
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.
I had to update these tests, because beforehand they weren't using the data from the API query, as suspense
wasn't enabled on the queryClient
, with it being controlled with which query hook you use now (i.e. useSuspenseQuery
), these tests started failing, as in prod they would have suspended and used the values from the API.
Bundle ReportChanges will increase total bundle size by 19 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
Bundle ReportChanges will increase total bundle size by 19 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-production-esmAssets Changed:
Files in
Files in
Files in
view changes for bundle: gazebo-production-systemAssets Changed:
Files in
Files in
Files in
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3683 +/- ##
==========================================
- Coverage 98.83% 98.82% -0.01%
==========================================
Files 825 825
Lines 14886 14889 +3
Branches 4237 4237
==========================================
+ Hits 14712 14714 +2
- Misses 165 166 +1
Partials 9 9
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3683 +/- ##
==========================================
- Coverage 98.83% 98.82% -0.01%
==========================================
Files 825 825
Lines 14886 14889 +3
Branches 4237 4237
==========================================
+ Hits 14712 14714 +2
- Misses 165 166 +1
Partials 9 9
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3683 +/- ##
==========================================
- Coverage 98.83% 98.82% -0.01%
==========================================
Files 825 825
Lines 14886 14889 +3
Branches 4229 4229
==========================================
+ Hits 14712 14714 +2
- Misses 165 166 +1
Partials 9 9
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #3683 +/- ##
==========================================
- Coverage 98.83% 98.82% -0.01%
==========================================
Files 825 825
Lines 14886 14889 +3
Branches 4237 4229 -8
==========================================
+ Hits 14712 14714 +2
- Misses 165 166 +1
Partials 9 9
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
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
Description
This PR migrates the
useOktaConfig
to TSQ V5queryOptions
API versionOktaConfigQueryOpts
, as well as it's usage in a couple of components and tests.Ticket: codecov/engineering-team#2963
Notable Changes
useOktaConfig
toOktaConfigQueryOpts
useUpdateOktaConfig
to use TSQ V5 andOktaConfigQueryOpts
to clear the cacheOktaConfigForm
, andOktaBanners
OktaAccess