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

Refactor package mirroring #711

Merged
merged 4 commits into from
Dec 12, 2021
Merged

Refactor package mirroring #711

merged 4 commits into from
Dec 12, 2021

Conversation

loic-sharma
Copy link
Owner

@loic-sharma loic-sharma commented Dec 12, 2021

After this change there's two services to access packages' state:

  • IPackageDatabase - This is a "low level" service for packages' state in BaGet's database
  • IPackageService - This is a "high level" service for packages' state, including both the database and the upstream feed if any

This allows us to centralize the mirroring logic into the IPackageService (before mirroring logic was sprinkled throughout the codebase).

Replaces #699

@loic-sharma loic-sharma changed the title Refactor package upstream Refactor package mirroring Dec 12, 2021
@loic-sharma loic-sharma merged commit 4501642 into main Dec 12, 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

1 participant