fecgov / fec-eregs

The Federal Election Commission's web-based application that makes regulations easier to find, read and understand.
https://www.fec.gov/regulations/
Other
33 stars 13 forks source link

Upgrade django #776

Closed pkfec closed 1 year ago

pkfec commented 1 year ago

Summary (required)

This ticket fixes the snyk vulnerbilities in requirements-parsing.txt and requirements.txt. The following packages are upgraded:

Required reviewers 1 developers

Impacted areas of the application

General components of the application that this PR will affect:

Related PRs

  1. Regulations-Parser PR
  2. Regulations-Site PR
  3. Regulations-Core PR

How to test

  1. Checkout this branch
  2. Change regparser, regulations, and regcore to point to my branch in requirements.txt and requirements-parsing.txt

regparser -e git+https://github.com/fecgov/regulations-parser.git@773-upgrade-django-parser#egg=regparser regsite -e git+https://github.com/fecgov/regulations-site@773-upgrade-django-site#egg=regulations regcore -e git+https://github.com/fecgov/regulations-core@773-upgrade-django-core#egg=regcore

Terminal One:

  1. pyenv virtualenv (your virtual environment)
  2. pip install -r requirements.txt
  3. snyk test --file=requirements.txt --package-manager=pip
  4. rm -rf node_modules
  5. npm i
  6. npm run build
  7. dropdb eregs_local
  8. createdb eregs_local
  9. python manage.py migrate
  10. python manage.py compile_frontend
  11. python manage.py runserver (leave running)

Terminal Two:

  1. pyenv virtualenv (your virtual environment)
  2. pip install -r requirements-parsing.txt
  3. snyk test --file=requirements-parsing.txt --package-manager=pip
  4. python load_regs/load_fec_regs.py local
  5. 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

NOTE: Merge other repo PRs first