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

Update cache faster via goroutines #449

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Update cache faster via goroutines #449

merged 1 commit into from
Dec 4, 2022

Conversation

synfinatic
Copy link
Owner

  • Add Threads config option (default is 10)
  • Use "threads" to fetch role info from AWS
  • Let users know when fetching roles is taking a while.

Fixes: #448

@codecov
Copy link

codecov bot commented Nov 26, 2022

Codecov Report

Merging #449 (dda2409) into main (bb21328) will decrease coverage by 0.68%.
The diff coverage is 47.10%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #449      +/-   ##
==========================================
- Coverage   78.34%   77.66%   -0.68%     
==========================================
  Files          23       23              
  Lines        2613     2717     +104     
==========================================
+ Hits         2047     2110      +63     
- Misses        498      538      +40     
- Partials       68       69       +1     
Impacted Files Coverage Δ
sso/cache.go 48.67% <26.14%> (-1.47%) ⬇️
sso/awssso.go 67.16% <82.86%> (+2.03%) ⬆️
sso/awssso_auth.go 81.82% <83.33%> (+1.03%) ⬆️
sso/settings.go 74.91% <100.00%> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb21328...dda2409. Read the comment docs.

@synfinatic synfinatic force-pushed the cache-refresh branch 5 times, most recently from bf95c37 to 0582979 Compare November 28, 2022 19:02
@synfinatic synfinatic force-pushed the cache-refresh branch 4 times, most recently from ffc11a4 to 1aaa0c3 Compare December 4, 2022 17:01
- Add `Threads` config option (default is 5)
- Use goroutines to fetch role info from AWS
- Let users know when fetching roles is taking a while.
- Fix bug causing cache to be updated twice

Fixes: #448
@synfinatic synfinatic merged commit c3208fd into main Dec 4, 2022
@synfinatic synfinatic deleted the cache-refresh branch December 4, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notify user by default when refreshing cache - large account lists specific issue
1 participant