Skip to content

Commit 2883663

Browse files
authored
Merge pull request #2710 from chaoss/api-patch-332
API Patch: Repairs Viz API Issues for PRs on some instances.
2 parents a0f2c16 + 94c5fa1 commit 2883663

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Augur NEW Release v0.62.4
1+
# Augur NEW Release v0.62.5
22

33
Augur is primarily a data engineering tool that makes it possible for data scientists to gather open source software community data. Less data carpentry for everyone else!
44
The primary way of looking at Augur data is through [8Knot](https://github.com/oss-aspen/8knot) ... A public instance of 8Knot is available at https://metrix.chaoss.io ... That is tied to a public instance of Augur at https://ai.chaoss.io
@@ -10,7 +10,7 @@ The primary way of looking at Augur data is through [8Knot](https://github.com/o
1010
## NEW RELEASE ALERT!
1111
### [If you want to jump right in, updated docker build/compose and bare metal installation instructions are available here](docs/new-install.md)
1212

13-
Augur is now releasing a dramatically improved new version to the main branch. It is also available here: https://github.com/chaoss/augur/releases/tag/v0.62.4
13+
Augur is now releasing a dramatically improved new version to the main branch. It is also available here: https://github.com/chaoss/augur/releases/tag/v0.62.5
1414
- The `main` branch is a stable version of our new architecture, which features:
1515
- Dramatic improvement in the speed of large scale data collection (100,000+ repos). All data is obtained for 100k+ repos within 2 weeks.
1616
- A new job management architecture that uses Celery and Redis to manage queues, and enables users to run a Flower job monitoring dashboard

augur/api/routes/pull_request_reports.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def pull_request_data_collection(repo_id, start_date, end_date):
6767
unlabeled_count,
6868
head_ref_deleted_count,
6969
comment_count,
70-
COALESCE(lines_added, 0),
71-
COALESCE(lines_removed, 0),
70+
COALESCE(lines_added, 0) as lines_added,
71+
COALESCE(lines_removed, 0) as lines_removed,
7272
commit_count,
73-
COALESCE(file_count, 0)
73+
COALESCE(file_count, 0) as file_count
7474
FROM
7575
repo,
7676
repo_groups,
@@ -97,7 +97,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
9797
JOIN repo on repo.repo_id = pull_requests.repo_id
9898
LEFT OUTER JOIN pull_request_message_ref on pull_requests.pull_request_id = pull_request_message_ref.pull_request_id
9999
LEFT OUTER JOIN message on pull_request_message_ref.msg_id = message.msg_id
100-
WHERE repo.repo_id = 1
100+
WHERE repo.repo_id = {repo_id}
101101
GROUP BY pull_requests.pull_request_id
102102
) response_times
103103
ON pull_requests.pull_request_id = response_times.pull_request_id
@@ -106,7 +106,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
106106
FROM pull_request_commits, pull_requests, pull_request_meta
107107
WHERE pull_requests.pull_request_id = pull_request_commits.pull_request_id
108108
AND pull_requests.pull_request_id = pull_request_meta.pull_request_id
109-
AND pull_requests.repo_id = 1
109+
AND pull_requests.repo_id = {repo_id}
110110
AND pr_cmt_sha <> pull_requests.pr_merge_commit_sha
111111
AND pr_cmt_sha <> pull_request_meta.pr_sha
112112
GROUP BY pull_request_commits.pull_request_id
@@ -116,7 +116,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
116116
SELECT MAX(pr_repo_meta_id), pull_request_meta.pull_request_id, pr_head_or_base, pr_src_meta_label
117117
FROM pull_requests, pull_request_meta
118118
WHERE pull_requests.pull_request_id = pull_request_meta.pull_request_id
119-
AND pull_requests.repo_id = 1
119+
AND pull_requests.repo_id = {repo_id}
120120
AND pr_head_or_base = 'base'
121121
GROUP BY pull_request_meta.pull_request_id, pr_head_or_base, pr_src_meta_label
122122
) base_labels
@@ -127,7 +127,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
127127
WHERE cmt_commit_hash = pr_cmt_sha
128128
AND pull_requests.pull_request_id = pull_request_commits.pull_request_id
129129
AND pull_requests.pull_request_id = pull_request_meta.pull_request_id
130-
AND pull_requests.repo_id = 1
130+
AND pull_requests.repo_id = {repo_id}
131131
AND commits.repo_id = pull_requests.repo_id
132132
AND commits.cmt_commit_hash <> pull_requests.pr_merge_commit_sha
133133
AND commits.cmt_commit_hash <> pull_request_meta.pr_sha
@@ -137,7 +137,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
137137
WHERE
138138
repo.repo_group_id = repo_groups.repo_group_id
139139
AND repo.repo_id = pull_requests.repo_id
140-
AND repo.repo_id = 1
140+
AND repo.repo_id = {repo_id}
141141
ORDER BY
142142
merged_count DESC
143143
""")

docker/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.10-slim-bullseye
33

44
LABEL maintainer="[email protected]"
5-
LABEL version="0.62.4"
5+
LABEL version="0.62.5"
66

77
ENV DEBIAN_FRONTEND=noninteractive
88

docker/database/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM postgres:14
33

44
LABEL maintainer="[email protected]"
5-
LABEL version="0.62.4"
5+
LABEL version="0.62.5"
66

77
ENV POSTGRES_DB "test"
88
ENV POSTGRES_USER "augur"

docker/rabbitmq/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM rabbitmq:3.12-management-alpine
22

33
LABEL maintainer="574/[email protected]"
4-
LABEL version="0.62.4"
4+
LABEL version="0.62.5"
55

66
COPY --chown=rabbitmq:rabbitmq ./docker/rabbitmq/augur.conf /etc/rabbitmq/conf.d/
77

metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
__short_description__ = "Python 3 package for free/libre and open-source software community metrics, models & data collection"
77

8-
__version__ = "0.62.4"
9-
__release__ = "v0.62.4 (KC Chiefs)"
8+
__version__ = "0.62.5"
9+
__release__ = "v0.62.5 (KC Chiefs)"
1010

1111
__license__ = "MIT"
1212
__copyright__ = "University of Missouri, University of Nebraska-Omaha, CHAOSS, Brian Warner & Augurlabs 2024"

0 commit comments

Comments
 (0)