You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update 4/7/23: Now that the middle man of stravalib has been cut out, there is less behavior to mock. I think a version of this specialized mocking strategy is still called for. Maybe I can still use the stravalib mock until(/unless) I get something hand-rolled.
Right now, the mock client doesn't throw errors based on rate limiting, it just shows a stub rate limiter with user-supplied usage and limits.
Wondering if it's possible/easy to just plug in an actual stravalib limiter into my mocked version.
Exceptions to throw
RateLimitExceeded
RateLimitTimeout
Stravalib points of contact
pages.saved_activity
client.get_activity_streams() in layout()
Does not use get_activity for scalar data - relies on saved activity
strava_api.manage: Each account uses stravalib to display basic summary info
pages.strava_table: At least one stravalib request per page view
pages.strava_activity
client.get_activity_streams() in layout()
client.get_activity() in layout()
But generally, if someone is above their rate limit, what would the value be of showing a dashboard at all? It's 100% strava data.
tasks.async_save_activity: does it multiple times per task
The text was updated successfully, but these errors were encountered:
Update 4/7/23: Now that the middle man of stravalib has been cut out, there is less behavior to mock. I think a version of this specialized mocking strategy is still called for. Maybe I can still use the stravalib mock until(/unless) I get something hand-rolled.
Right now, the mock client doesn't throw errors based on rate limiting, it just shows a stub rate limiter with user-supplied usage and limits.
Wondering if it's possible/easy to just plug in an actual stravalib limiter into my mocked version.
Exceptions to throw
Stravalib points of contact
The text was updated successfully, but these errors were encountered: