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 Load Manager into Class Inheritance Pattern for new CF Tasks Client #4866

Open
5 tasks
btylerburton opened this issue Aug 29, 2024 · 0 comments
Open
5 tasks
Labels
H2.0/Harvest-Flask Front-end webapp & APIs

Comments

@btylerburton
Copy link
Contributor

User Story

In order to support more operations using the CF Handler client, datagovteam wants to create a TaskManager client base class and then extend that to support the Load Manager.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN I have created a base TaskManager class
    THEN I want to extend that class to support an instance of the Load Manager
    AND I want it to support all of the operations that that script currently supports

  • GIVEN I want to perform some other operation using the CF Tasks Client
    THEN I want to extend the base TaskManager class by to perform that.

Background

CF Task Manager will ultimately be needed to invoke other batch operations such as harvest source deletion, and reporting back the state of all tasks on the datagov-harvest-runner.

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • Create base TaskManager class with general purpose interactions with the CF Handler
  • Refactor LoadManager script into an inheritance class of TaskManager
  • Ensure all current tests pass
@btylerburton btylerburton added the H2.0/Harvest-Flask Front-end webapp & APIs label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-Flask Front-end webapp & APIs
Projects
Status: H2.0 Backlog
Development

No branches or pull requests

1 participant