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

Developer tools, automation, and some tech debt #1875

Open
17 of 31 tasks
pbanaszkiewicz opened this issue Mar 31, 2021 · 0 comments
Open
17 of 31 tasks

Developer tools, automation, and some tech debt #1875

pbanaszkiewicz opened this issue Mar 31, 2021 · 0 comments

Comments

@pbanaszkiewicz
Copy link
Contributor

pbanaszkiewicz commented Mar 31, 2021

Some developer tools and improvements to complete:

  • docker-compose with database and redis
  • pre-commit with black
  • pre-commit with flake8
  • pre-commit with isort
  • GitHub CI workflow for building docs
  • GitHub CI workflow for running tests
  • poetry or pipenv (sticking to pipenv) ([#1875] Pipenv instead of requirements.txt #1965)
  • pyenv (this is developer's choice)
  • GitHub CI workflow for linting with black, flake8 and isort
  • use git flow with release branches not needed, tagging releases is just as good
  • switch to versioning in setup.cfg or pyproject.toml (if acceptable)
  • Implement commitizen
  • remove editor-config support since we have black
  • remove travis-ci config since we have GitHub CI workflow for tests
  • remove checkout HEAD^2 from CodeQL workflow
  • squash old migrations to improve application setup performance
  • move fixtures out of old migrations and into a fixtures file
  • move models out from workshops app into correct apps
  • Update procedures.md steps ([#1875] update procedures.md #1990)
  • add indices to DB fields used for lookups (optimizations)
  • look for bottlenecks (e.g. django-compress on the fly?) EDIT: compress had been taking a long time to build website on dev server, it was turned off
  • figure out why sometimes tests for comments fail with ValueError: Cannot assign "<Site: Site object (2)>": "Comment.site" must be a "Site" instance. ([#1875] Fix Sites framework issue when running tests #2042)
  • Migrate from RQ-Scheduler to RQ v1.2.0+ solution (scheduler included)
  • Enable API for autoemail data
  • Move Autoemail tasks to request API instead of pull directly from DB
  • Add CI/CD for develop branch and test server
  • whitenoise for serving static files (drop django-compressor) (related PR: [#1875] No django-compressor, whitenoise instead #2184)
  • Update static files serving with CloudFront CDN
  • JS prettier - in pre-commit
  • JS prettier - on the codebase
  • JS prettier - in GH workflow linter
@pbanaszkiewicz pbanaszkiewicz self-assigned this Mar 31, 2021
@pbanaszkiewicz pbanaszkiewicz changed the title Developer tools and automation Developer tools, automation, and some tech debt May 16, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
Only in the Lint Code Base GH action.
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
One dev dependency was missed: pre-commit
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
Improvements made to the multistage builds:
1. smaller output image thanks to removal of compilation dependencies
2. base image always with security updates
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2021
Moved models:
* Organization
* Membership
* Member
* MemberRole

From `workshops` application to `fiscal`, where they belong.
pbanaszkiewicz added a commit that referenced this issue Jun 4, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 4, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 7, 2021
One dev dependency was missed: pre-commit
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
One dev dependency was missed: pre-commit
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
Improvements made to the multistage builds:
1. smaller output image thanks to removal of compilation dependencies
2. base image always with security updates
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jun 11, 2021
pbanaszkiewicz added a commit that referenced this issue Jun 24, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jul 4, 2021
It didn't need to be stored inside `workshops` application.
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Jul 4, 2021
Irrelevant/outdated sections removed or rephrased.

Deployment steps moved to deployment repository.
pbanaszkiewicz added a commit that referenced this issue Jul 24, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Aug 29, 2021
The issue appeared when running tests in parallel in a fresh database.
Most likely it was due to some junk left in sites cache after
migrations. The solution clears the cache whenever Sites framework is
used.
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Aug 29, 2021
The issue appeared when running tests in parallel in a fresh database.
Most likely it was due to some junk left in sites cache after
migrations. The solution clears the cache whenever Sites framework is
used.
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Aug 29, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Aug 29, 2021
pbanaszkiewicz added a commit that referenced this issue Sep 8, 2021
…-issue

[#1875] Fix Sites framework issue when running tests
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2022
This change results in significant performance boost in DEBUG mode.
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2022
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 29, 2022
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2022
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2022
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue May 30, 2022
Whitenoise has impact on the test suite. One way to work around it is to
turn on autorefresh during testing.
For details see:
https://whitenoise.evans.io/en/stable/django.html#whitenoise-makes-my-tests-run-slow
pbanaszkiewicz added a commit that referenced this issue May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant