Remove unused forms and stats views #628
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request removes a bunch of unused code and features to simplify the codebase.
The most important changes include the removal of the unused
UserUpdateView
, the deletion of thebackfill_stats
management command and associated tests, and the cleanup of various files in theapps/greencheck
directory, as well as removing the stats views that were built nearly three years ago, but didn't really get launched.Removal of
UserUpdateView
:apps/accounts/urls.py
: Removed theUserUpdateView
import and URL path. [1] [2]apps/accounts/views.py
: Removed theUserUpdateView
class and its associated form import. [1] [2] [3]Deletion of
backfill_stats
management command:apps/greencheck/management/commands/backfill_stats.py
: Removed the entirebackfill_stats
management command file.apps/greencheck/tests/management/test_backfill_stats.py
: Removed the associated tests for thebackfill_stats
command.Cleanup in
apps/greencheck
:apps/greencheck/models/__init__.py
: Removed the import forstats
.apps/greencheck/tests/dummy_greencheck_stat_data.py
: Removed commented-out SQL queries.apps/greencheck/tests/views/test_stats_view.py
: Removed theTestDailyStatsView
class and related imports.apps/greencheck/url2green.py
: Removed the entireurl2green
utility module.apps/greencheck/urls.py
: Removed the URL patterns and related imports.apps/greencheck/views.py
: Removed unused imports and cleaned up the file.Other changes:
.tool-versions
: Removed the Python version specification.