-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: remove broken usage of useCache from getSubsidyRequestConfiguration #1030
Conversation
return EnterpriseAccessApiService.apiClient({ | ||
useCache: configuration.USE_API_CACHE, | ||
}).get(url, { clearCacheEntry }); | ||
return EnterpriseAccessApiService.apiClient().get(url, { clearCacheEntry }); |
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.
[curious] If this API call never uses useCache
anymore, is the clearCacheEntry
logic necessary anymore in this function's signature, passed to this get
function, or in the caller(s) of getSubsidyRequestConfiguration
?
Hmm, yeah seems likely especially around the mention of "Usages of clearCacheEntry will have to be updated."... probably something that we missed 🙃 |
9f40a44
to
7781e81
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1030 +/- ##
==========================================
+ Coverage 82.89% 83.01% +0.11%
==========================================
Files 402 412 +10
Lines 8735 8849 +114
Branches 1805 1820 +15
==========================================
+ Hits 7241 7346 +105
- Misses 1455 1464 +9
Partials 39 39
☔ View full report in Codecov by Sentry. |
7781e81
to
f0f8189
Compare
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!
Fixes an issue where updates to course requests settings weren't reflected in the Settings/Access page. We were previously setting
useCache
to always be true in the call to fetch subsidy request configs.Broken behavior was possibly related to this change? openedx/frontend-platform#361
Only if submitting a visual change