-
Notifications
You must be signed in to change notification settings - Fork 843
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
PM-15110: Ensure all network requests always use the current environment data #4344
Conversation
New Issues
Fixed Issues
|
29660b6
to
ba4a316
Compare
*/ | ||
class BaseUrlInterceptor : Interceptor { | ||
class BaseUrlInterceptor( | ||
private val baseUrlProvider: () -> String?, |
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.
gr8 idea ⚡
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.onSubscription | ||
|
||
class FakeEnvironmentDiskSource : EnvironmentDiskSource { |
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.
👍
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.
Thanks @dseverns-livefront |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4344 +/- ##
==========================================
- Coverage 88.99% 88.98% -0.01%
==========================================
Files 453 452 -1
Lines 39109 39088 -21
Branches 5513 5513
==========================================
- Hits 34805 34784 -21
Misses 2377 2377
Partials 1927 1927 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
🎟️ Tracking
PM-15110
📔 Objective
This PR addresses a bug where a user not using the US environment (default) could make a request to refresh the token before before the coroutine flow would update the environment data. To fix this, the
BaseUrlInterceptors
now use the environment retrieved synchronously from theEnvironmentDiskSource
.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes