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

Fix Facade Task Signature to Take repo_git instead of repo_id #2775

Merged
merged 3 commits into from Apr 25, 2024
Merged

Conversation

IsaacMilarky
Copy link
Contributor

Description
Facade task error handling expects each facade task to have the repo url as the first argument passed to the task. Otherwise it can cause unintended behavior.

To fix I altered the facade task signature to match the expected function signature and have repo_git as the first argument.

Signed commits

  • Yes, I signed my commits.

IsaacMilarky and others added 3 commits April 10, 2024 07:50
…contraints

Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Add Check to SQL Update Statements to Avoid constraints on `date_last_collected`
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
@@ -194,14 +194,22 @@ def link_commits_to_contributor(session,contributorQueue):

# Update the contributors table from the data facade has gathered.
@celery.task(base=AugurFacadeRepoCollectionTask, bind=True)
def insert_facade_contributors(self, repo_id):
def insert_facade_contributors(self, repo_git):

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
R1711: Useless return at end of function or method (useless-return)

@@ -194,14 +194,22 @@ def link_commits_to_contributor(session,contributorQueue):

# Update the contributors table from the data facade has gathered.
@celery.task(base=AugurFacadeRepoCollectionTask, bind=True)
def insert_facade_contributors(self, repo_id):
def insert_facade_contributors(self, repo_git):

engine = self.app.engine

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0612: Unused variable 'engine' (unused-variable)

@sgoggins sgoggins changed the base branch from dev to main April 25, 2024 17:18
@sgoggins sgoggins merged commit b6286f8 into main Apr 25, 2024
8 checks passed
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

2 participants