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

PR Files Merge Issue Fix #2816

Merged
merged 5 commits into from
Jun 10, 2024
Merged

PR Files Merge Issue Fix #2816

merged 5 commits into from
Jun 10, 2024

Conversation

sgoggins
Copy link
Member

@sgoggins sgoggins commented Jun 10, 2024

Description

  • PR Files merge last week didn't work out perfectly. This fixes it.

Signed-off-by: Sean P. Goggins <s@goggins.com>
@@ -2,26 +2,22 @@
from augur.tasks.github.util.gh_graphql_entities import GraphQlPageCollection
from augur.application.db.models import *

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0401: Wildcard import augur.application.db.models (wildcard-import)

Signed-off-by: Sean P. Goggins <s@goggins.com>
Signed-off-by: Sean P. Goggins <s@goggins.com>
@@ -12,31 +12,25 @@ def pull_request_files_model(repo_id,logger, augur_db, key_auth):
SELECT DISTINCT pr_src_number as pr_src_number, pull_requests.pull_request_id
FROM pull_requests--, pull_request_meta
WHERE repo_id = :repo_id
""").bindparams(repo_id=repo_id)
""").bindparams(repo_id=repo.repo_id)

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
E0601: Using variable 'repo' before assignment (used-before-assignment)

result = augur_db.execute_sql(pr_number_sql)#.fetchall()
pr_numbers = [dict(row) for row in result.mappings()]


query = augur_db.session.query(Repo).filter(Repo.repo_id == repo_id)
repo = execute_session_query(query, 'one')

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
E0602: Undefined variable 'execute_session_query' (undefined-variable)

Signed-off-by: Sean P. Goggins <s@goggins.com>
Signed-off-by: Sean P. Goggins <s@goggins.com>
@sgoggins sgoggins changed the title test PR Files Merge Issue Fix Jun 10, 2024
@sgoggins sgoggins merged commit 34a4f66 into dev Jun 10, 2024
9 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.

1 participant