Skip to content
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

OAuth V2 manager (SYN-4177) #2910

Merged
merged 29 commits into from
Dec 22, 2022
Merged

OAuth V2 manager (SYN-4177) #2910

merged 29 commits into from
Dec 22, 2022

Conversation

mikemoritz
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Base: 97.17% // Head: 97.08% // Decreases project coverage by -0.09% ⚠️

Coverage data is based on head (2939061) compared to base (1840467).
Patch coverage: 98.88% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2910      +/-   ##
==========================================
- Coverage   97.17%   97.08%   -0.10%     
==========================================
  Files         215      216       +1     
  Lines       42186    42439     +253     
==========================================
+ Hits        40996    41202     +206     
- Misses       1190     1237      +47     
Flag Coverage Δ
linux 97.08% <98.88%> (+0.01%) ⬆️
linux_replay ?

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

Impacted Files Coverage Δ
synapse/lib/oauth.py 98.68% <98.68%> (ø)
synapse/cortex.py 96.50% <100.00%> (-0.57%) ⬇️
synapse/lib/stormlib/oauth.py 100.00% <100.00%> (ø)
synapse/tests/utils.py 94.46% <0.00%> (-1.89%) ⬇️
synapse/lib/hiveauth.py 96.01% <0.00%> (-0.48%) ⬇️
synapse/lib/trigger.py 95.01% <0.00%> (-0.39%) ⬇️
synapse/lib/view.py 97.00% <0.00%> (-0.34%) ⬇️
synapse/cmds/cron.py 97.56% <0.00%> (-0.25%) ⬇️
synapse/lib/jsonstor.py 98.32% <0.00%> (-0.24%) ⬇️
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

infime
infime previously approved these changes Nov 10, 2022
@vEpiphyte vEpiphyte added this to the v2.11x.x milestone Nov 10, 2022
@mikemoritz mikemoritz changed the title WIP: OAuth V2 manager (SYN-4177) OAuth V2 manager (SYN-4177) Nov 10, 2022
@vEpiphyte vEpiphyte modified the milestones: v2.114.0, v2.11x.x Nov 14, 2022
@vEpiphyte vEpiphyte modified the milestones: v2.115.0, v2.11x.x Nov 30, 2022
@mikemoritz mikemoritz marked this pull request as draft December 6, 2022 20:11
@mikemoritz mikemoritz marked this pull request as ready for review December 7, 2022 19:17
@vEpiphyte vEpiphyte modified the milestones: v2.116.0, v2.11x.x Dec 13, 2022
self.oauth_sched_map[newitem[1:]] = refresh_at
heapq.heappush(self.oauth_sched_heap, newitem)

if self.oauth_sched_heap[0] == newitem:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we do an identify check here since the item in the heap is a tuple who either is or is not the item we made a few lines previously and did not mutate?

@invisig0th invisig0th merged commit e7868a4 into master Dec 22, 2022
@invisig0th invisig0th deleted the redox-oauth2 branch December 22, 2022 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants