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

Repository refactoring #454

Open
m-s- opened this issue Jan 10, 2025 · 0 comments
Open

Repository refactoring #454

m-s- opened this issue Jan 10, 2025 · 0 comments
Milestone

Comments

@m-s-
Copy link
Collaborator

m-s- commented Jan 10, 2025

We are refactoring our repository interface to push and pull packages. Currently we only support local and remote folders, and the implementation is spread through 3 different approaches and has leaked into the CmfPackage objects.

We want to have a single interface for the source (and target) of a package that can support a variety of protocols.

Initial back-of-the-napkin design includes:

  • having a single point in the CmfPackage object pointing to its source. This source should be a repository object that implements a stable interface (let's call it IRepository)
  • each protocol should implement its own Repository class
  • the interface should provide some standard methods. We need, at least:
    • get
    • publish
    • contains
    • ...
  • we need a factory that can choose the correct protocol from the information in repositories.json
@m-s- m-s- added this to the 6 milestone Jan 10, 2025
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

No branches or pull requests

1 participant