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 management of resources #15

Open
lewismorgan opened this issue Aug 13, 2017 · 1 comment
Open

Refactor management of resources #15

lewismorgan opened this issue Aug 13, 2017 · 1 comment

Comments

@lewismorgan
Copy link
Owner

lewismorgan commented Aug 13, 2017

As of now, there is a hard dependency on a listing of resource and resource groups. It was done this way in order to accept data from GalaxyHarvester. In order to handle resource groups properly, HarvesterDroid should make use of a single ResourceTree class. Trackers will need to define how they construct their resource trees and convert it into a proper ResourceTree class. Using this method, it will be extremely easy to traverse down resource trees and get top level resources, as well as decouple a reliance on text files to be present.

In order to allow this there will need to be a new API class called Provider. Provider will be the new name for trackers. Providers should provide all data information that is needed by HD. Providers should never need to know when to download something — that’s for HD to figure out. The following are what providers will probably do given HarvesterDroids current functionality

  • Downloading a single resource
  • Downloading list of galaxies
  • Downloading a resource tree: Different galaxies often have different trees!
  • Store galaxy resource information?
@lewismorgan
Copy link
Owner Author

Initial state for trackers targeted for 2.0 because of #17 .

@lewismorgan lewismorgan mentioned this issue Nov 13, 2017
3 tasks
@lewismorgan lewismorgan modified the milestones: 2.1, 2.0 Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant