Closed cnlucas closed 1 year ago
This ticket upgrades django and gitpython to remove the vulnerabilities in requirements.txt and requirements-parsing.txt
1-2 devs
General components of the application that this PR will affect:
Related PRs against other branches: https://github.com/fecgov/regulations-core/pull/14 https://github.com/fecgov/regulations-parser/pull/16 https://github.com/fecgov/regulations-site/pull/13
Terminal One:
pyenv virtualenv (your virtual environment)
Update requirements.txt file with: regparser -e git+https://github.com/fecgov/regulations-parser@upgrade-django-3.2.21#egg=regparser regsite -e git+https://github.com/fecgov/regulations-site@upgrade-django-gitpython#egg=regulations regcore -e git+https://github.com/fecgov/regulations-core@upgrade-django-3.2.21#egg=regcore
pip install -r requirements.txt
snyk test --file=requirements.txt --package-manager=pip
rm -rf node_modules
nvm install 18.17.1
npm i
npm run build
dropdb eregs_local
createdb eregs_local
python manage.py migrate
python manage.py compile_frontend
python manage.py runserver (leave running)
python manage.py runserver
Terminal Two:
Update requirements-parsing.txt file with: regparser -e git+https://github.com/fecgov/regulations-parser@upgrade-django-3.2.21#egg=regparser regsite -e git+https://github.com/fecgov/regulations-site@upgrade-django-gitpython#egg=regulations regcore -e git+https://github.com/fecgov/regulations-core@upgrade-django-3.2.21#egg=regcore
pip install -r requirements-parsing.txt
snyk test --file=requirements-parsing.txt --package-manager=pip
python load_regs/load_fec_regs.py local
Go to http://127.0.0.1:8000/ to view 45 regulations
For more detailed instructions follow the wiki on how to setup/parse regulations on local environment
Summary (required)
This ticket upgrades django and gitpython to remove the vulnerabilities in requirements.txt and requirements-parsing.txt
Required reviewers
1-2 devs
Impacted areas of the application
General components of the application that this PR will affect:
Related PRs
Related PRs against other branches: https://github.com/fecgov/regulations-core/pull/14 https://github.com/fecgov/regulations-parser/pull/16 https://github.com/fecgov/regulations-site/pull/13
How to test
Terminal One:
pyenv virtualenv (your virtual environment)
Update requirements.txt file with: regparser -e git+https://github.com/fecgov/regulations-parser@upgrade-django-3.2.21#egg=regparser regsite -e git+https://github.com/fecgov/regulations-site@upgrade-django-gitpython#egg=regulations regcore -e git+https://github.com/fecgov/regulations-core@upgrade-django-3.2.21#egg=regcore
pip install -r requirements.txt
snyk test --file=requirements.txt --package-manager=pip
rm -rf node_modules
nvm install 18.17.1
npm i
npm run build
dropdb eregs_local
createdb eregs_local
python manage.py migrate
python manage.py compile_frontend
python manage.py runserver
(leave running)Terminal Two:
pyenv virtualenv (your virtual environment)
Update requirements-parsing.txt file with: regparser -e git+https://github.com/fecgov/regulations-parser@upgrade-django-3.2.21#egg=regparser regsite -e git+https://github.com/fecgov/regulations-site@upgrade-django-gitpython#egg=regulations regcore -e git+https://github.com/fecgov/regulations-core@upgrade-django-3.2.21#egg=regcore
pip install -r requirements-parsing.txt
snyk test --file=requirements-parsing.txt --package-manager=pip
python load_regs/load_fec_regs.py local
Go to http://127.0.0.1:8000/ to view 45 regulations
For more detailed instructions follow the wiki on how to setup/parse regulations on local environment