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

Dev to startup-wizard #2694

Merged
merged 489 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
489 commits
Select commit Hold shift + click to select a range
fb9b729
Merge pull request #2555 from kaxada/typo-fixes
sgoggins Oct 24, 2023
897f380
Merge branch 'SQLAlchemy_upgrade' into dev
sgoggins Oct 25, 2023
0f36424
Merge pull request #2559 from chaoss/dev
sgoggins Oct 25, 2023
c534784
repo load message
sgoggins Oct 26, 2023
bb1c340
reposition message
sgoggins Oct 26, 2023
9f3913c
putting it back
sgoggins Oct 26, 2023
f74810f
Lighter Text
sgoggins Oct 26, 2023
3a796c3
refining layout
sgoggins Oct 26, 2023
3c34b6d
link cleanup
sgoggins Oct 26, 2023
4c90154
refinement
sgoggins Oct 26, 2023
e888453
more
sgoggins Oct 26, 2023
7b9cbf2
fixing spacing
sgoggins Oct 26, 2023
f378c14
heading
sgoggins Oct 26, 2023
350eaf4
more info
sgoggins Oct 26, 2023
dc24830
Imagery
sgoggins Oct 26, 2023
e8343a8
jets
sgoggins Oct 26, 2023
2c5b063
center
sgoggins Oct 26, 2023
f9590b1
circles
sgoggins Oct 26, 2023
a1638af
circle
sgoggins Oct 26, 2023
f098b94
css
sgoggins Oct 26, 2023
0ce7646
css2
sgoggins Oct 26, 2023
f50c0e3
jets
sgoggins Oct 26, 2023
fc5f5a8
d
sgoggins Oct 26, 2023
95055c1
simplify
sgoggins Oct 26, 2023
64bad41
simplify
sgoggins Oct 26, 2023
65c9137
Words
sgoggins Oct 26, 2023
0115410
style
sgoggins Oct 26, 2023
9c8c727
Merge pull request #2561 from chaoss/repo-load-message-patch
Ulincsys Oct 26, 2023
ec5d543
fix legacy alembic upgrade
IsaacMilarky Oct 26, 2023
7408477
upgrade sqlalchemy version and give context for schemas for alembic
IsaacMilarky Oct 26, 2023
740e418
fixing go install on OSX where brew is used
sgoggins Oct 26, 2023
5d2b515
library version updates and fixed OSSF Scorecard Cloning (I think)
sgoggins Oct 26, 2023
43ec217
fix wrong baseclass for process_ossf_dependency_metrics
IsaacMilarky Oct 26, 2023
6680f49
fix base class of facade tasks
IsaacMilarky Oct 26, 2023
33a1e5b
Merge pull request #2562 from chaoss/fix-wrong-task-baseclass
ABrain7710 Oct 26, 2023
523753f
fixed focus field when 'register' is clicked
kaxada Oct 30, 2023
2b6ad79
update sqlalchemy syntax
IsaacMilarky Oct 30, 2023
e392457
Merge branch 'dev' into SQLAlchemy_upgrade
IsaacMilarky Oct 30, 2023
a5e0d53
doocumentation of server update
sgoggins Oct 30, 2023
f3b8bfe
Merge pull request #2563 from chaoss/dev
sgoggins Oct 30, 2023
6101789
Bump tornado from 6.1 to 6.3.3
dependabot[bot] Oct 30, 2023
ad74442
Fix syntax and get rid of SQLAlchemy warning
IsaacMilarky Oct 30, 2023
de24f9b
fixing read the docs dot io issues
sgoggins Oct 30, 2023
0750aca
fixing readthe docs dot io configuration
sgoggins Oct 30, 2023
4f3f415
get API working with sqlalchemt 2.x
IsaacMilarky Oct 30, 2023
d537002
fixing readthedocs.io build issues
sgoggins Oct 30, 2023
163f5cd
readthe docs dot io
sgoggins Oct 30, 2023
317fe42
rtd.io
sgoggins Oct 30, 2023
4434e98
Merge pull request #2573 from chaoss/dev
sgoggins Oct 30, 2023
917660e
Merge pull request #2564 from chaoss/user-input-fix
Ulincsys Oct 30, 2023
97030d1
linter fixes
IsaacMilarky Oct 31, 2023
b34e7eb
Merge pull request #2544 from Shiva953/api_pull_requests_new
sgoggins Oct 31, 2023
b50bf0d
Andrew suggested changes
IsaacMilarky Nov 1, 2023
4489f1a
Andrew suggested changes
IsaacMilarky Nov 1, 2023
f5b3014
missed fixes for andrew
IsaacMilarky Nov 1, 2023
6c979f2
Merge pull request #2572 from chaoss/SQLAlchemy_upgrade
sgoggins Nov 1, 2023
afbcb3a
version update
sgoggins Nov 1, 2023
bf08907
Merge pull request #2577 from chaoss/dev
sgoggins Nov 1, 2023
cf8bf5b
Bump joblib in /augur/tasks/data_analysis/message_insights
dependabot[bot] Nov 1, 2023
08e7a31
Bump scipy in /augur/tasks/data_analysis/discourse_analysis
dependabot[bot] Nov 1, 2023
cb7c632
Bump scipy in /augur/tasks/data_analysis/pull_request_analysis_worker
dependabot[bot] Nov 1, 2023
b819f4d
Bump scipy from 1.7.3 to 1.10.0
dependabot[bot] Nov 1, 2023
dc3468b
Bump scipy in /augur/tasks/data_analysis/message_insights
dependabot[bot] Nov 1, 2023
8e36b39
Work on adding ORM syntax into RLC
Ulincsys Nov 1, 2023
eb42254
Merge pull request #2571 from chaoss/dependabot/pip/augur/tasks/data_…
sgoggins Nov 2, 2023
d94543d
Merge pull request #2570 from chaoss/dependabot/pip/scipy-1.10.0
sgoggins Nov 2, 2023
415a433
Merge pull request #2569 from chaoss/dependabot/pip/augur/tasks/data_…
sgoggins Nov 2, 2023
a3f7bbd
Merge pull request #2568 from chaoss/dependabot/pip/augur/tasks/data_…
sgoggins Nov 2, 2023
1f987ed
Merge pull request #2566 from chaoss/dependabot/pip/tornado-6.3.3
sgoggins Nov 2, 2023
ce17876
Merge pull request #2565 from chaoss/dependabot/pip/augur/tasks/data_…
sgoggins Nov 2, 2023
c21c8b3
updating joblib version requirement in pr analysis
sgoggins Nov 2, 2023
9e023b1
Update repo_load_controller.py to use orm syntax.
ABrain7710 Nov 3, 2023
631aea2
Fix orm warnings
ABrain7710 Nov 4, 2023
1423393
Merge pull request #2581 from chaoss/fix-warnings
sgoggins Nov 4, 2023
6531b9a
Merge pull request #2580 from chaoss/repo-load-controller-parity
sgoggins Nov 4, 2023
3a5bd3d
Merge pull request #2582 from chaoss/dev
sgoggins Nov 4, 2023
de5a69f
Fix issue when merging branches together
ABrain7710 Nov 4, 2023
0799f8e
Merge pull request #2583 from chaoss/merge-fix
sgoggins Nov 4, 2023
23335d0
Merge pull request #2584 from chaoss/dev
sgoggins Nov 4, 2023
abd3935
Merge pull request #2579 from chaoss/dev-dependabot
sgoggins Nov 20, 2023
d18baa3
Start renaming things to be github specific and adding gitlab functions
ABrain7710 Nov 28, 2023
2b25d59
Continue changing code to insert gitlab repos
ABrain7710 Nov 28, 2023
ca77029
Update gitlab api key handler and gitlab random key auth to use gitlab
ABrain7710 Nov 28, 2023
63b6350
Change is_valid_gitlab_repo to use gitlab api
ABrain7710 Nov 28, 2023
8446c04
Clean up method
ABrain7710 Nov 28, 2023
9a0fb08
Renaming
ABrain7710 Nov 28, 2023
dccb8bc
Fix insert logic to work for gitlab
ABrain7710 Nov 28, 2023
ec0cfff
Successfully insert gitlab repo
ABrain7710 Nov 29, 2023
291feae
Ensure that gitlab repos aren't being started
ABrain7710 Nov 29, 2023
ccb0df7
Merge pull request #2590 from chaoss/gitlab-changes
sgoggins Nov 29, 2023
12a204a
typing-extensions has to be 4.7.1 for two other packages
sgoggins Nov 29, 2023
3c24954
tensorflow update
sgoggins Nov 29, 2023
59486fe
scipy numpy updates
sgoggins Nov 29, 2023
82c1a1b
numpy
sgoggins Nov 29, 2023
8d4c1d7
keras
sgoggins Nov 29, 2023
d204673
allowing matplotlib to go higher if compatible.
sgoggins Nov 30, 2023
e4d1375
Finished compatibility updates for compilation on osx with python 3.11
sgoggins Nov 30, 2023
574885e
version bump
sgoggins Nov 30, 2023
a5d6522
Update github words to gitlab
ABrain7710 Nov 30, 2023
57ea05f
Merge pull request #2657 from chaoss/deps-update-33
sgoggins Nov 30, 2023
33be983
Basic retrieval of merge requests
ABrain7710 Dec 1, 2023
31b7614
Start gitlab issues collection
ABrain7710 Dec 1, 2023
3a2a46d
Add missed files
ABrain7710 Dec 1, 2023
2d4d149
Add gitlab issue collection'
ABrain7710 Dec 1, 2023
4e104c5
Comment out github error handling logic from gitlab paginator
ABrain7710 Dec 1, 2023
9729bce
Remove commented code
ABrain7710 Dec 1, 2023
f10fb29
fix up imports
ABrain7710 Dec 1, 2023
979e501
Merge pull request #2658 from chaoss/gitlab-changes
sgoggins Dec 4, 2023
20bd29d
Implement gitlab issues labels and assignees
ABrain7710 Dec 4, 2023
0dfcf9b
comment out variable reassignment overriding pr_issue_count
IsaacMilarky Dec 4, 2023
11340d4
Missed in last commit
ABrain7710 Dec 4, 2023
286aa0c
Update firefox version to match requirement of firefox-geckodriver
oleks Dec 5, 2023
1a187bc
Merge pull request #2659 from chaoss/pr-issue-count-fix
sgoggins Dec 5, 2023
9f635ba
MerZge branch 'dev' into gitlab-changes
ABrain7710 Dec 6, 2023
de4217e
Fix small bugs in assignees and labels for mrs
ABrain7710 Dec 8, 2023
924a7ad
Setup passing of mr ids to next tasks
ABrain7710 Dec 8, 2023
5a80cf2
Setup issues tasks to pass ids to next tasks
ABrain7710 Dec 8, 2023
57ce5de
Add collection of gitlab events & comments
ABrain7710 Dec 8, 2023
ca6544d
Setup urls for merge request collections
ABrain7710 Dec 8, 2023
daa4106
Refeactor gitlab paginator
ABrain7710 Dec 9, 2023
4d5b4b2
Add collection for all the mr data
ABrain7710 Dec 9, 2023
9793d44
Add merge request events collection
ABrain7710 Dec 9, 2023
29c31d5
Add gitlab event data mappers
ABrain7710 Dec 9, 2023
0d0efb4
Add issue event db inserts
ABrain7710 Dec 9, 2023
0e1dde5
Add mr event processing
ABrain7710 Dec 9, 2023
dbe280a
Start on mr reviewers
ABrain7710 Dec 9, 2023
b1a2ea6
Add start of mr reviewer processing
ABrain7710 Dec 9, 2023
a7c3195
Add processing for mr commits
ABrain7710 Dec 9, 2023
1ca0855
Add processing for mr files
ABrain7710 Dec 9, 2023
b45db1e
Add processing for mr metadata
ABrain7710 Dec 9, 2023
f43a9fd
Add processing for issues messages
ABrain7710 Dec 9, 2023
3c096d7
Add processing for mr messages
ABrain7710 Dec 9, 2023
99e94c9
Comment out assignee inserts and update tasks that are running
ABrain7710 Dec 9, 2023
a023408
comment out message collection
ABrain7710 Dec 9, 2023
ba24d20
Remove logic that stopped the collection early
ABrain7710 Dec 9, 2023
13eb449
Fix small bugs
ABrain7710 Dec 9, 2023
05b53ec
Fix bug in gitlab api handler
ABrain7710 Dec 9, 2023
ac3a815
Merge pull request #2661 from chaoss/gitlab-changes
sgoggins Dec 19, 2023
cce213a
Merge pull request #2660 from oleks/main
sgoggins Jan 2, 2024
90add5e
updated readme with public instance link
sgoggins Jan 2, 2024
f31308a
Fix collection issue
ABrain7710 Jan 12, 2024
84b1a01
Merge pull request #2664 from chaoss/fix-collection-issue
sgoggins Jan 12, 2024
7370873
Fix syntax error in json parsing method
ABrain7710 Jan 13, 2024
f9717c9
Update metadata.py
sgoggins Jan 17, 2024
db449ca
Update README.md
sgoggins Jan 17, 2024
ad0985a
Update Dockerfile
sgoggins Jan 17, 2024
0a43a50
Update Dockerfile
sgoggins Jan 17, 2024
6164e1c
add GitHub workflow to run linting checks, namely Pylint for now
IsaacMilarky Jan 17, 2024
eaeb4e9
also add misspell check
IsaacMilarky Jan 17, 2024
562450e
Merge pull request #2476 from Seltyk/repo-by-id
IsaacMilarky Jan 17, 2024
d723825
Merge branch 'dev' into use-pylint-checks
IsaacMilarky Jan 17, 2024
e3e9a61
Merge pull request #2666 from chaoss/use-pylint-checks
sgoggins Jan 18, 2024
ae75bef
Fix null string in releases insert
ABrain7710 Jan 20, 2024
80d0c9d
Fix messages NoneType error
ABrain7710 Jan 20, 2024
c2d97ab
Fix issue where table isn't passed into recursive call
ABrain7710 Jan 23, 2024
1c94076
Merge pull request #2667 from chaoss/fix-collection-issue
ABrain7710 Jan 23, 2024
9e7cc37
Merge branch 'dev' into fix-insert-data-issue
ABrain7710 Jan 23, 2024
ef169be
Add 5 second delay before we retry
ABrain7710 Jan 23, 2024
888dd23
Change to 3 second delay
ABrain7710 Jan 23, 2024
eb3887f
Fix issues suggested by linter
ABrain7710 Jan 23, 2024
51c58e6
Fix other issues suggested by linter
ABrain7710 Jan 23, 2024
ce50ea3
Merge pull request #2668 from chaoss/fix-insert-data-issue
sgoggins Jan 23, 2024
c770c36
Update Dockerfile
sgoggins Jan 23, 2024
25ebabb
Update Dockerfile
sgoggins Jan 23, 2024
9ab76e7
address linting errors in data_parse.py
IsaacMilarky Jan 23, 2024
b166fd6
fix typos and add module doc-strings
IsaacMilarky Jan 23, 2024
29247b9
Update setup.py
sgoggins Jan 23, 2024
3aec047
Update setup.py
sgoggins Jan 23, 2024
fbcc02d
Update setup.py
sgoggins Jan 23, 2024
7057675
Update setup.py
sgoggins Jan 23, 2024
8ba2195
Update setup.py
sgoggins Jan 23, 2024
251e534
Update Dockerfile
sgoggins Jan 23, 2024
d03dca7
Update Dockerfile
sgoggins Jan 23, 2024
7f205db
add docs to pull_requests/tasks.py
IsaacMilarky Jan 23, 2024
9273baa
apply linting to events_task.py for gitlab methods
IsaacMilarky Jan 23, 2024
4cbfa15
unneeded elif
IsaacMilarky Jan 23, 2024
fc3d13b
add doc-strings to gitlab tasks and data structures
IsaacMilarky Jan 23, 2024
579dec0
remove unused variable
IsaacMilarky Jan 23, 2024
59afa43
use vars
IsaacMilarky Jan 23, 2024
bd80a0e
Merge pull request #2669 from chaoss/isaac-fix-pylint-errs
sgoggins Jan 24, 2024
91b84a8
Update Dockerfile
sgoggins Jan 26, 2024
2b242ef
Update Dockerfile
sgoggins Jan 26, 2024
5da3277
Update Dockerfile
sgoggins Jan 26, 2024
3e79270
Update Dockerfile
sgoggins Jan 26, 2024
21b5dd6
Update Dockerfile
sgoggins Jan 26, 2024
b61480b
Update Dockerfile
sgoggins Jan 26, 2024
d5dcce5
Update Dockerfile
sgoggins Jan 26, 2024
fa8d100
Update Dockerfile
sgoggins Jan 26, 2024
79d74a1
Update Dockerfile
sgoggins Jan 26, 2024
3a1d89a
Update Dockerfile
sgoggins Jan 26, 2024
41ad59d
Update Dockerfile
sgoggins Jan 26, 2024
8fcc429
Update spec.yml
sgoggins Jan 26, 2024
5099e31
Fixing PyLint Error
sgoggins Jan 26, 2024
f6f4f46
Update gitlab_api_handler.py
sgoggins Jan 26, 2024
7433028
Update gitlab_api_handler.py
sgoggins Jan 26, 2024
99ae0f3
Update merge_request_task.py
sgoggins Jan 26, 2024
205d0a3
Update merge_request_task.py
sgoggins Jan 26, 2024
3153f15
readthedocs.io error fix
sgoggins Jan 26, 2024
419f69a
Relaxing mistune version requirements to let pip resolve the correct …
sgoggins Jan 26, 2024
5e86c55
Merge pull request #2670 from chaoss/dev
sgoggins Jan 26, 2024
54c2086
Updated materialized views to include the right logic.
sgoggins Jan 26, 2024
3667942
updated file name
sgoggins Jan 29, 2024
9ad969b
Fix complexity routes
ABrain7710 Jan 30, 2024
7302877
Merge pull request #2671 from chaoss/fix-api-endpoints
sgoggins Jan 30, 2024
6224cfc
Merge pull request #2673 from chaoss/dev
sgoggins Jan 30, 2024
b8b2e94
add volume support, patch python dockerfile dependencies
Feb 6, 2024
08666c9
start on changes I think andrew wanted
IsaacMilarky Feb 6, 2024
a8bf6f7
subclasses not needed
IsaacMilarky Feb 6, 2024
1934a2d
implement change
IsaacMilarky Feb 6, 2024
01c5c73
fix enum import issues and add mechanism to retry repos marked as Sta…
IsaacMilarky Feb 8, 2024
801e5e0
add docstring to update_repo_with_dict
IsaacMilarky Feb 8, 2024
9a76471
fix misunderstanding in implementation
IsaacMilarky Feb 8, 2024
5a77d65
fix format
IsaacMilarky Feb 8, 2024
f3f7fbe
fixing flower time synchronization issue
sgoggins Feb 8, 2024
f46ee05
adding conn = op.get_bind()
Feb 8, 2024
23f17e9
retry all status'
IsaacMilarky Feb 9, 2024
b70f524
linting
IsaacMilarky Feb 9, 2024
68e50de
doc-string
IsaacMilarky Feb 9, 2024
dab348c
Merge branch 'dev' into main
sgoggins Feb 12, 2024
ea6d2d5
Merge pull request #2677 from GaryPWhite/main
sgoggins Feb 12, 2024
9aa9725
implement requested changes
IsaacMilarky Feb 12, 2024
45be12f
Merge branch 'dev' into allow-repo-retry-collection-isaac
IsaacMilarky Feb 12, 2024
335864c
Merge pull request #2679 from chaoss/mat-view-path-23
sgoggins Feb 12, 2024
4c8edae
typo causing cli error
IsaacMilarky Feb 12, 2024
be5c19c
make sure all status are updated on 404 as per andrew suggestion
IsaacMilarky Feb 13, 2024
788b75c
Merge pull request #2665 from chaoss/dev
sgoggins Feb 13, 2024
0a52999
i need to normalize this for the love of gosh
IsaacMilarky Feb 13, 2024
69788d1
Merge pull request #2678 from chaoss/allow-repo-retry-collection-isaac
ABrain7710 Feb 13, 2024
84ab7b0
Fixing Errant Nulls in PR Reports Query
sgoggins Feb 14, 2024
f31063d
Merge pull request #2682 from chaoss/viz-api-patch-11
sgoggins Feb 14, 2024
8fb7f5a
add rabbitmq docker configuration
GaryPWhite Feb 15, 2024
ef12fcb
added default environment variables
GaryPWhite Feb 15, 2024
a3cfd8c
Merge pull request #2684 from GaryPWhite/main
sgoggins Feb 16, 2024
27b8eb0
Updating versioning for release publication
sgoggins Feb 16, 2024
cc5921f
Merge pull request #2685 from chaoss/version-bump-0.62.2
sgoggins Feb 16, 2024
e57331c
Fix typo in query string
ABrain7710 Feb 18, 2024
f10821e
Merge pull request #2687 from chaoss/hotfix-typo-in-query
sgoggins Feb 18, 2024
f8eed39
Update settings page
Ulincsys Feb 19, 2024
5723188
Merge branch 'dev' into improve-profile-page
Ulincsys Feb 19, 2024
10054f1
Update README.md
sgoggins Feb 19, 2024
190de69
docker-compose -> docker compose
GaryPWhite Feb 19, 2024
a4ea1f7
Merge pull request #2689 from chaoss/improve-profile-page
Ulincsys Feb 19, 2024
047889e
Merge pull request #2690 from GaryPWhite/main
sgoggins Feb 19, 2024
35e4ef2
Update README.md
sgoggins Feb 19, 2024
b315f1c
Update metadata.py
sgoggins Feb 19, 2024
5b7fe81
updated Dockerfile Augur versions
sgoggins Feb 19, 2024
c948c9b
Merge pull request #2691 from chaoss/version62.4-update
sgoggins Feb 19, 2024
0ebdc5f
Merge branch 'startup-wizard' into dev
sgoggins Feb 20, 2024
4f3688a
merge conflict
IsaacMilarky Feb 20, 2024
1de0d4b
Merge pull request #2695 from chaoss/fix-dev-main-conflict
sgoggins Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .docker-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ missingModules=""
#Check everything that needs to be in the $PATH is in there.
#Bash doesn't let this work if this is in an if statement for some reason it has to be chained
type -P "docker" &>/dev/null && echo "docker found..." || missingModules="${missingModules} docker"
type -P "docker-compose" &>/dev/null && echo "docker-compose found..." || missingModules="${missingModules} docker-compose"
type -P "ifconfig" &>/dev/null && echo "ifconfig found..." || missingModules="${missingModules} ifconfig (part of net-tools)"
type -P "psql" &>/dev/null && echo "psql found..." || missingModules="${missingModules} psql"
type -P "watch" &>/dev/null && echo "watch found..." || missingModules="${missingModules} watch"
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "run-linting-checks"
on:
pull_request:
branches: [main, dev]

jobs:
run-pylint:
name: runner / pylint
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dciborow/action-pylint@0.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: warning
glob_pattern: "**/*.py"
filter_mode: "file"

misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Highlight any misspellings in changes.
uses: actions/checkout@v4
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "US"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ env.txt
docker_env.txt
pyenv.txt
augur_export_env.sh
.DS_Store
*DS_Store
*.config.json
!docker.config.json
config.yml
reports.yml


node_modules/
.idea/
logs/
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#refactoring checker
#enable=R

disable=E0611,E1101,W1203,R0801,W0614,W0611,C0411,C0103,C0301,C0303,C0304,C0305,W0311
disable=E0611,E1101,W1203,R0801,W0614,W0611,C0411,C0103,C0301,C0303,C0304,C0305,W0311,E0401


# Analyse import fallback blocks. This can be used to support both Python 2 and
Expand Down
37 changes: 37 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#SPDX-License-Identifier: MIT
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2
build:
os: ubuntu-22.04 # <- add this line
tools:
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- dev
- method: setuptools
path: .

# build:
# os: ubuntu-22.04
# tools:
# python:3.10
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ docs-view: docs


compose-run:
@ docker-compose -f docker-compose.yml up --build
@ docker compose -f docker-compose.yml up --build

compose-run-database:
@ echo "**************************************************************************"
@ echo "Make sure there are no database credentials in docker_env.txt!"
@ echo "**************************************************************************"
@ echo
@ docker-compose -f docker-compose.yml -f database-compose.yml up --build
@ docker compose -f docker-compose.yml -f database-compose.yml up --build

docker-build: docker-build-backend docker-build-frontend docker-build-database
docker-build: docker-build-backend docker-build-frontend docker-build-database docker-build-rabbitmq

docker-build-backend:
@ docker build -t augurlabs/augur:backend -f util/docker/backend/Dockerfile .
Expand All @@ -163,6 +163,8 @@ docker-build-frontend:
docker-build-database:
@ docker build -t augurlabs/augur:database -f util/docker/database/Dockerfile .

docker-build-rabbitmq:
@ docker build -t augurlabs/augur:rabbitmq -f util/docker/rabbitmq/Dockerfile .

docker-run-backend:
@ - docker stop augur_backend
Expand All @@ -178,3 +180,8 @@ docker-run-database:
@ - docker stop augur_database
@ - docker rm augur_database
docker run -p 5434:5432 --name augur_database augurlabs/augur:database

docker-run-rabbitmq:
@ - docker stop augur_rabbitmq
@ - docker rm augur_rabbitmq
docker run -p 5434:5432 --name augur_rabbitmq augurlabs/augur:rabbitmq
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Augur NEW Release v0.51.1
# Augur NEW Release v0.62.4

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

[![first-timers-only](https://img.shields.io/badge/first--timers--only-friendly-blue.svg?style=flat-square)](https://www.firsttimersonly.com/) We follow the [First Timers Only](https://www.firsttimersonly.com/) philosophy of tagging issues for first timers only, and walking one newcomer through the resolution process weekly. [You can find these issues tagged with "first timers only" on our issues list.](https://github.com/chaoss/augur/labels/first-timers-only).

Expand All @@ -7,8 +10,7 @@
## 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.51.1
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
- 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 Expand Up @@ -95,6 +97,7 @@ Contributors
- `Dawn Foster <https://github.com/geekygirldawn/>`_
- `Ivana Atanasova <https://github.com/ivanayov/>`_
- `Georg J.P. Link <https://github.com/GeorgLink/>`_
- `Gary P White <https://github.com/garypwhite/>`_

GSoC 2022 participants
-----------------------
Expand Down
1 change: 1 addition & 0 deletions add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dfadffd
3 changes: 2 additions & 1 deletion augur/api/metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ from augur.application.db.engine import engine
4. Define any queries with the structure show below
```py
repo_sql = s.sql.text(""" SELECT repo.repo_name FROM repo WHERE repo.repo_id = :repo_id """)
results = pd.read_sql(repo_sql, engine, params={'repo_id': repo_id})
with engine.connect() as conn:
results = pd.read_sql(repo_sql, conn, params={'repo_id': repo_id})
```
5. Return either a pandas dataframe, dict, or json.
- Note: If you return a pandas dataframe or dict it will be automatically converted into json
Expand Down
35 changes: 21 additions & 14 deletions augur/api/metrics/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ def committers(repo_group_id, repo_id=None, begin_date=None, end_date=None, peri
"""
)

results = pd.read_sql(committersSQL, engine, params={'repo_id': repo_id,
'repo_group_id': repo_group_id,'begin_date': begin_date, 'end_date': end_date, 'period':period})
with engine.connect() as conn:
results = pd.read_sql(committersSQL, conn, params={'repo_id': repo_id,
'repo_group_id': repo_group_id,'begin_date': begin_date, 'end_date': end_date, 'period':period})

return results

Expand Down Expand Up @@ -167,8 +168,9 @@ def annual_commit_count_ranked_by_new_repo_in_repo_group(repo_group_id, repo_id=
ORDER BY YEAR ASC
""".format(table, period))

results = pd.read_sql(cdRgNewrepRankedCommitsSQL, engine, params={'repo_id': repo_id,
'repo_group_id': repo_group_id,'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(cdRgNewrepRankedCommitsSQL, conn, params={'repo_id': repo_id,
'repo_group_id': repo_group_id,'begin_date': begin_date, 'end_date': end_date})
return results

@register_metric()
Expand Down Expand Up @@ -265,8 +267,9 @@ def annual_commit_count_ranked_by_repo_in_repo_group(repo_group_id, repo_id=None
LIMIT 10
""")

results = pd.read_sql(cdRgTpRankedCommitsSQL, engine, params={ "repo_group_id": repo_group_id,
"repo_id": repo_id})
with engine.connect() as conn:
results = pd.read_sql(cdRgTpRankedCommitsSQL, conn, params={ "repo_group_id": repo_group_id,
"repo_id": repo_id})
return results

@register_metric()
Expand Down Expand Up @@ -296,8 +299,9 @@ def top_committers(repo_group_id, repo_id=None, year=None, threshold=0.8):
ORDER BY patches DESC) a
""")

results = pd.read_sql(total_commits_SQL, engine,
params={'year': year, 'repo_group_id': repo_group_id})
with engine.connect() as conn:
results = pd.read_sql(total_commits_SQL, conn,
params={'year': year, 'repo_group_id': repo_group_id})
else:
total_commits_SQL = s.sql.text("""
SELECT SUM(patches)::int
Expand All @@ -308,8 +312,9 @@ def top_committers(repo_group_id, repo_id=None, year=None, threshold=0.8):
ORDER BY patches DESC) a
""")

results = pd.read_sql(total_commits_SQL, engine,
params={'year': year, 'repo_id': repo_id})
with engine.connect() as conn:
results = pd.read_sql(total_commits_SQL, conn,
params={'year': year, 'repo_id': repo_id})

if not results.iloc[0]['sum']:
return pd.DataFrame()
Expand All @@ -334,8 +339,9 @@ def top_committers(repo_group_id, repo_id=None, year=None, threshold=0.8):
ORDER BY commits DESC
""")

results = pd.read_sql(committers_SQL, engine,
params={'year': year, 'repo_group_id': repo_group_id})
with engine.connect() as conn:
results = pd.read_sql(committers_SQL, conn,
params={'year': year, 'repo_group_id': repo_group_id})
else:
committers_SQL = s.sql.text("""
SELECT
Expand All @@ -353,8 +359,9 @@ def top_committers(repo_group_id, repo_id=None, year=None, threshold=0.8):
ORDER BY commits DESC
""")

results = pd.read_sql(committers_SQL, engine,
params={'year': year, 'repo_id': repo_id})
with engine.connect() as conn:
results = pd.read_sql(committers_SQL, conn,
params={'year': year, 'repo_id': repo_id})

cumsum = 0
for i, row in results.iterrows():
Expand Down
36 changes: 22 additions & 14 deletions augur/api/metrics/contributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def contributors(repo_group_id, repo_id=None, period='day', begin_date=None, end
ORDER BY total DESC
""")

results = pd.read_sql(contributorsSQL, engine, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsSQL, conn, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
else:
contributorsSQL = s.sql.text("""
SELECT id::text AS user_id,
Expand Down Expand Up @@ -211,8 +212,9 @@ def contributors(repo_group_id, repo_id=None, period='day', begin_date=None, end
ORDER BY total DESC
""")

results = pd.read_sql(contributorsSQL, engine, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsSQL, conn, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
return results

@register_metric()
Expand Down Expand Up @@ -281,8 +283,9 @@ def contributors_new(repo_group_id, repo_id=None, period='day', begin_date=None,
GROUP BY date, repo.repo_id, repo_name
""")

results = pd.read_sql(contributorsNewSQL, engine, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsNewSQL, conn, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
else:
contributorsNewSQL = s.sql.text("""
SELECT date_trunc(:period, b.created_at::DATE) AS date, COUNT(id) AS new_contributors, repo.repo_id, repo_name
Expand Down Expand Up @@ -330,8 +333,9 @@ def contributors_new(repo_group_id, repo_id=None, period='day', begin_date=None,
GROUP BY date, repo.repo_id, repo_name
""")

results = pd.read_sql(contributorsNewSQL, engine, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsNewSQL, conn, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
return results

@register_metric()
Expand All @@ -351,7 +355,8 @@ def lines_changed_by_author(repo_group_id, repo_id=None):
GROUP BY commits.repo_id, date_trunc('week', cmt_author_date::date), cmt_author_affiliation, cmt_author_email, repo_name
ORDER BY date_trunc('week', cmt_author_date::date) ASC;
""")
results = pd.read_sql(linesChangedByAuthorSQL, engine, params={"repo_id": repo_id})
with engine.connect() as conn:
results = pd.read_sql(linesChangedByAuthorSQL, conn, params={"repo_id": repo_id})
return results
else:
linesChangedByAuthorSQL = s.sql.text("""
Expand All @@ -362,7 +367,8 @@ def lines_changed_by_author(repo_group_id, repo_id=None):
GROUP BY repo_id, date_trunc('week', cmt_author_date::date), cmt_author_affiliation, cmt_author_email
ORDER BY date_trunc('week', cmt_author_date::date) ASC;
""")
results = pd.read_sql(linesChangedByAuthorSQL, engine, params={"repo_group_id": repo_group_id})
with engine.connect() as conn:
results = pd.read_sql(linesChangedByAuthorSQL, conn, params={"repo_group_id": repo_group_id})
return results

@register_metric()
Expand Down Expand Up @@ -420,8 +426,9 @@ def contributors_code_development(repo_group_id, repo_id=None, period='all', beg
GROUP BY a.email, a.repo_id, repo_name
""")

results = pd.read_sql(contributorsSQL, engine, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsSQL, conn, params={'repo_id': repo_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
else:
contributorsSQL = s.sql.text("""
SELECT
Expand Down Expand Up @@ -455,6 +462,7 @@ def contributors_code_development(repo_group_id, repo_id=None, period='all', beg
ORDER BY commits desc, email
""")

results = pd.read_sql(contributorsSQL, engine, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
with engine.connect() as conn:
results = pd.read_sql(contributorsSQL, conn, params={'repo_group_id': repo_group_id, 'period': period,
'begin_date': begin_date, 'end_date': end_date})
return results
7 changes: 5 additions & 2 deletions augur/api/metrics/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sqlalchemy as s
import pandas as pd
from augur.api.util import register_metric
import datetime

from ..server import engine

Expand Down Expand Up @@ -45,7 +46,8 @@ def deps(repo_group_id, repo_id=None, period='day', begin_date=None, end_date=No
AND repo_dependencies.repo_id = :repo_id
""")

results = pd.read_sql(depsSQL, engine)
with engine.connect() as conn:
results = pd.read_sql(depsSQL, conn)

else:

Expand All @@ -69,7 +71,8 @@ def deps(repo_group_id, repo_id=None, period='day', begin_date=None, end_date=No
AND repo.repo_group_id = :repo_group_id
""")

results = pd.read_sql(depsSQL, engine)
with engine.connect() as conn:
results = pd.read_sql(depsSQL, conn)
return results


Expand Down
3 changes: 2 additions & 1 deletion augur/api/metrics/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ def top_insights(repo_group_id, num_repos=6):
LIMIT :num_repos
)
""")
results = pd.read_sql(topInsightsSQL, engine, params={'repo_group_id': repo_group_id, 'num_repos': num_repos})
with engine.connect() as conn:
results = pd.read_sql(topInsightsSQL, conn, params={'repo_group_id': repo_group_id, 'num_repos': num_repos})
return results
Loading
Loading