Repository navigation
feat(predict): cp-7.60.2 add auto-refresh polling when country is missing - #23513
Merged
Merged
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
kevinbluer
previously approved these changes
Dec 2, 2025
kevinbluer
left a comment
Contributor
There was a problem hiding this comment.
LGTM (other than the bugbot comment re the comment)
caieu
enabled auto-merge
December 2, 2025 02:08
Contributor
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are focused on the Predict feature's eligibility checking mechanism, specifically:
Why SmokePredictions is selected:
Why Medium risk:
Why not other tags:
The confidence is 85% because the scope is clear and focused on Predict, but the timing behavior changes warrant real-world validation through E2E tests. |
kevinbluer
self-requested a review
December 2, 2025 02:50
kevinbluer
approved these changes
Dec 2, 2025
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Add automatic polling mechanism to usePredictEligibility hook that
refreshes eligibility when no country is returned in the response.
Changes:
This ensures users get their country data even if the initial
eligibility check doesn't return it, improving the reliability
of the Predict feature's geo-restriction handling.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds sequential auto-refresh polling to
usePredictEligibilitywhencountryis missing, reduces debounce to 100ms, and updates tests accordingly.usePredictEligibility):eligibility[providerId].countryis missing.2000msup to3retries; stops on country availability or unmount; logs failures and retry limits.useRefto stabilizerefreshEligibilityin effects.100msfor automatic refreshes.usePredictEligibility.test.ts):100msand related timings.Written by Cursor Bugbot for commit 9ad7a9c. This will update automatically on new commits. Configure here.