Skip to content

Commit

Permalink
Merge pull request #2710 from chaoss/api-patch-332
Browse files Browse the repository at this point in the history
API Patch: Repairs Viz API Issues for PRs on some instances.
  • Loading branch information
sgoggins committed Feb 20, 2024
2 parents a0f2c16 + 94c5fa1 commit 2883663
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,4 +1,4 @@
# Augur NEW Release v0.62.4
# Augur NEW Release v0.62.5

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!
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
Expand All @@ -10,7 +10,7 @@ The primary way of looking at Augur data is through [8Knot](https://github.com/o
## NEW RELEASE ALERT!
### [If you want to jump right in, updated docker build/compose and bare metal installation instructions are available here](docs/new-install.md)

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
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
- The `main` branch is a stable version of our new architecture, which features:
- Dramatic improvement in the speed of large scale data collection (100,000+ repos). All data is obtained for 100k+ repos within 2 weeks.
- A new job management architecture that uses Celery and Redis to manage queues, and enables users to run a Flower job monitoring dashboard
Expand Down
16 changes: 8 additions & 8 deletions augur/api/routes/pull_request_reports.py
Expand Up @@ -67,10 +67,10 @@ def pull_request_data_collection(repo_id, start_date, end_date):
unlabeled_count,
head_ref_deleted_count,
comment_count,
COALESCE(lines_added, 0),
COALESCE(lines_removed, 0),
COALESCE(lines_added, 0) as lines_added,
COALESCE(lines_removed, 0) as lines_removed,
commit_count,
COALESCE(file_count, 0)
COALESCE(file_count, 0) as file_count
FROM
repo,
repo_groups,
Expand All @@ -97,7 +97,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
JOIN repo on repo.repo_id = pull_requests.repo_id
LEFT OUTER JOIN pull_request_message_ref on pull_requests.pull_request_id = pull_request_message_ref.pull_request_id
LEFT OUTER JOIN message on pull_request_message_ref.msg_id = message.msg_id
WHERE repo.repo_id = 1
WHERE repo.repo_id = {repo_id}
GROUP BY pull_requests.pull_request_id
) response_times
ON pull_requests.pull_request_id = response_times.pull_request_id
Expand All @@ -106,7 +106,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
FROM pull_request_commits, pull_requests, pull_request_meta
WHERE pull_requests.pull_request_id = pull_request_commits.pull_request_id
AND pull_requests.pull_request_id = pull_request_meta.pull_request_id
AND pull_requests.repo_id = 1
AND pull_requests.repo_id = {repo_id}
AND pr_cmt_sha <> pull_requests.pr_merge_commit_sha
AND pr_cmt_sha <> pull_request_meta.pr_sha
GROUP BY pull_request_commits.pull_request_id
Expand All @@ -116,7 +116,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
SELECT MAX(pr_repo_meta_id), pull_request_meta.pull_request_id, pr_head_or_base, pr_src_meta_label
FROM pull_requests, pull_request_meta
WHERE pull_requests.pull_request_id = pull_request_meta.pull_request_id
AND pull_requests.repo_id = 1
AND pull_requests.repo_id = {repo_id}
AND pr_head_or_base = 'base'
GROUP BY pull_request_meta.pull_request_id, pr_head_or_base, pr_src_meta_label
) base_labels
Expand All @@ -127,7 +127,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
WHERE cmt_commit_hash = pr_cmt_sha
AND pull_requests.pull_request_id = pull_request_commits.pull_request_id
AND pull_requests.pull_request_id = pull_request_meta.pull_request_id
AND pull_requests.repo_id = 1
AND pull_requests.repo_id = {repo_id}
AND commits.repo_id = pull_requests.repo_id
AND commits.cmt_commit_hash <> pull_requests.pr_merge_commit_sha
AND commits.cmt_commit_hash <> pull_request_meta.pr_sha
Expand All @@ -137,7 +137,7 @@ def pull_request_data_collection(repo_id, start_date, end_date):
WHERE
repo.repo_group_id = repo_groups.repo_group_id
AND repo.repo_id = pull_requests.repo_id
AND repo.repo_id = 1
AND repo.repo_id = {repo_id}
ORDER BY
merged_count DESC
""")
Expand Down
2 changes: 1 addition & 1 deletion docker/backend/Dockerfile
Expand Up @@ -2,7 +2,7 @@
FROM python:3.10-slim-bullseye

LABEL maintainer="outdoors@acm.org"
LABEL version="0.62.4"
LABEL version="0.62.5"

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
2 changes: 1 addition & 1 deletion docker/database/Dockerfile
Expand Up @@ -2,7 +2,7 @@
FROM postgres:14

LABEL maintainer="outdoors@acm.org"
LABEL version="0.62.4"
LABEL version="0.62.5"

ENV POSTGRES_DB "test"
ENV POSTGRES_USER "augur"
Expand Down
2 changes: 1 addition & 1 deletion docker/rabbitmq/Dockerfile
@@ -1,7 +1,7 @@
FROM rabbitmq:3.12-management-alpine

LABEL maintainer="574/augur@simplelogin.com"
LABEL version="0.62.4"
LABEL version="0.62.5"

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

Expand Down
4 changes: 2 additions & 2 deletions metadata.py
Expand Up @@ -5,8 +5,8 @@

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

__version__ = "0.62.4"
__release__ = "v0.62.4 (KC Chiefs)"
__version__ = "0.62.5"
__release__ = "v0.62.5 (KC Chiefs)"

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

0 comments on commit 2883663

Please sign in to comment.