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

Adds redis caching to bb sync script #2802

Merged
merged 3 commits into from Aug 20, 2021

Conversation

bomoko
Copy link
Contributor

@bomoko bomoko commented Aug 10, 2021

This PR potentially takes some of the pressure of the API when doing a bit bucket sync

It pulls the full user list down from BitBucket for every project, creates a hash from the email and permission list currently on that project on the BB side, and compare that to a cached hash (in redis) - if there is a difference, we continue with the sync as usual, if there has been no change to the hash in the last 24 hours, we know we can skip processing the current project.

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

Explain the details for making this change. What existing problem does the pull request solve?

@tobybellwood tobybellwood added this to the v2.0.0-rc.9 milestone Aug 18, 2021
@Schnitzel
Copy link
Contributor

@bomoko can you fix the merge conflict? thanks!

@bomoko bomoko merged commit e3d4155 into uselagoon:main Aug 20, 2021
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.

None yet

3 participants