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

Make Collection Process Easier to Understand #2522

Merged
merged 16 commits into from
Oct 17, 2023

Conversation

IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Sep 5, 2023

Description

  • Change messy web of function calls to start collection to the construction of a CollectionRequest object that you pass in to the AugurTaskRoutine. This new object also has a method to automatically get the desired repos according to the passed in attributes.

  • Put sql calls into their own function for better readability and organization

  • Change old much more general functions to simpler logic that derives more instead of counting on request specific information to be handled by the calling program.

-Update dei endpoint to run repo with new logic

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
…n a more intuitive way

Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
…ctionRequest

Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Copy link
Contributor

@ABrain7710 ABrain7710 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few small things I think would help readability

augur/tasks/util/collection_util.py Show resolved Hide resolved
augur/tasks/util/collection_util.py Outdated Show resolved Hide resolved
augur/tasks/util/collection_util.py Outdated Show resolved Hide resolved
augur/tasks/util/collection_util.py Show resolved Hide resolved
augur/tasks/util/collection_util.py Outdated Show resolved Hide resolved
@sgoggins sgoggins requested a review from ABrain7710 September 20, 2023 18:36
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IsaacMilarky : Have we tested this branch?

@IsaacMilarky
Copy link
Contributor Author

@IsaacMilarky : Have we tested this branch?

Yes

@IsaacMilarky IsaacMilarky merged commit fe6cf49 into dev Oct 17, 2023
@IsaacMilarky IsaacMilarky deleted the detangle-collection-further branch October 17, 2023 18:13
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.

3 participants