Skip to content

Fix issue where end-user sso form sometimes shows stale data - #35469

Merged
sgress454 merged 5 commits into
mainfrom
sgress454/35322
Nov 10, 2025
Merged

Fix issue where end-user sso form sometimes shows stale data#35469
sgress454 merged 5 commits into
mainfrom
sgress454/35322

Conversation

@sgress454

Copy link
Copy Markdown
Contributor

Related issue: Resolves #35322

Details

Since the end-user auth form uses calls its own API rather than the common config update handler in the parent IntegrationsPage, we need to notify that parent when updates occur so that it can re-fetch the app config which serves as the base state for all of the sub-sections.

Checklist for submitter

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

For unreleased bug fixes in a release candidate, one of:

  • Confirmed that the fix is not expected to adversely impact load test results

@sgress454
sgress454 requested a review from a team as a code owner November 10, 2025 22:01
Comment on lines +65 to +70
// If there's no actual change, don't make the API call to update config.
// Still refetch in case settings were changed inside a card (like end-user auth).
if (Object.keys(diff).length === 0) {
refetchConfig();
return true;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This just prevents us from POSTing to the "update app config" API when there's nothing to update.

@sgress454
sgress454 requested a review from iansltx November 10, 2025 22:03
@codecov

codecov Bot commented Nov 10, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.13%. Comparing base (81feea7) to head (8e54731).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
.../pages/admin/IntegrationsPage/IntegrationsPage.tsx 0.00% 4 Missing ⚠️
...mponents/EndUserAuthSection/EndUserAuthSection.tsx 0.00% 1 Missing ⚠️
...end/pages/admin/IntegrationsPage/cards/Sso/Sso.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #35469      +/-   ##
==========================================
- Coverage   66.13%   66.13%   -0.01%     
==========================================
  Files        2100     2100              
  Lines      177471   177477       +6     
  Branches     7396     7397       +1     
==========================================
+ Hits       117372   117373       +1     
- Misses      49337    49342       +5     
  Partials    10762    10762              
Flag Coverage Δ
frontend 53.63% <14.28%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@iansltx iansltx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed that this fixed the issue, and this looks like the right amount of code to do so, vs. what Copilot was throwing at me. Thanks so much!

@sgress454
sgress454 merged commit 63eb318 into main Nov 10, 2025
15 checks passed
@sgress454
sgress454 deleted the sgress454/35322 branch November 10, 2025 23:02
sgress454 added a commit that referenced this pull request Nov 10, 2025
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35322

# Details

Since the end-user auth form uses calls its own API rather than the
common config update handler in the parent `IntegrationsPage`, we need
to notify that parent when updates occur so that it can re-fetch the app
config which serves as the base state for all of the sub-sections.

# Checklist for submitter

## Testing

- [ ] Added/updated automated tests
- [X] QA'd all new/changed functionality manually

For unreleased bug fixes in a release candidate, one of:

- [X] Confirmed that the fix is not expected to adversely impact load
test results

(cherry picked from commit 63eb318)
sgress454 added a commit that referenced this pull request Nov 10, 2025
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.

End-user auth SSO settings show old values after saving, navigating to another integration settings section, then navigating back

2 participants