From 694cb16df2b02d675351a8e0cce2b82bb8d1a901 Mon Sep 17 00:00:00 2001 From: Nino Date: Wed, 3 Jul 2024 11:25:06 +0200 Subject: [PATCH 1/2] remove access log model and tabel --- app/Dockerfile | 0 app/__init__.py | 0 app/apps/__init__.py | 0 app/apps/accesslogs/__init__.py | 0 app/apps/accesslogs/admin.py | 39 ------------------- app/apps/accesslogs/apps.py | 0 app/apps/accesslogs/middleware.py | 30 -------------- .../accesslogs/migrations/0001_initial.py | 0 .../migrations/0002_logentry_created_at.py | 0 .../migrations/0003_auto_20200110_1537.py | 0 .../0004_logentry_request_method.py | 0 .../migrations/0005_delete_logentry.py | 16 ++++++++ app/apps/accesslogs/migrations/__init__.py | 0 app/apps/accesslogs/models.py | 34 ---------------- app/apps/accesslogs/tests/__init__.py | 0 app/apps/accesslogs/tests/tests_middleware.py | 0 app/apps/accesslogs/tests/tests_models.py | 0 app/apps/addresses/__init__.py | 0 app/apps/addresses/apps.py | 0 app/apps/addresses/router.py | 0 app/apps/addresses/serializers.py | 0 app/apps/addresses/views.py | 0 app/apps/cases/__init__.py | 0 app/apps/cases/admin.py | 0 app/apps/cases/apps.py | 0 app/apps/cases/migrations/0001_initial.py | 0 .../migrations/0002_remove_case_stadion.py | 0 .../migrations/0003_auto_20191119_2139.py | 0 .../migrations/0004_auto_20191119_2146.py | 0 .../migrations/0005_auto_20191120_1039.py | 0 .../migrations/0006_auto_20191122_1952.py | 0 .../cases/migrations/0007_project_state.py | 0 .../migrations/0008_auto_20200309_1302.py | 0 .../migrations/0009_auto_20200309_1525.py | 0 .../migrations/0010_auto_20200313_1250.py | 0 .../migrations/0011_auto_20200317_1345.py | 0 .../migrations/0012_auto_20200407_1141.py | 0 .../migrations/0013_auto_20200915_0735.py | 0 .../migrations/0014_auto_20200916_1328.py | 0 .../migrations/0015_auto_20200916_1543.py | 0 .../migrations/0016_auto_20201007_1226.py | 0 .../cases/migrations/0017_stadiumlabel.py | 0 .../migrations/0018_case_is_legacy_bwv.py | 0 .../migrations/0019_auto_20210318_1028.py | 0 .../migrations/0020_auto_20220525_2025.py | 0 app/apps/cases/migrations/__init__.py | 0 app/apps/cases/mock.py | 0 app/apps/cases/models.py | 0 app/apps/cases/router.py | 0 app/apps/cases/serializers.py | 0 app/apps/cases/swagger_parameters.py | 0 app/apps/cases/tests/__init__.py | 0 app/apps/cases/tests/tests_api.py | 0 app/apps/cases/tests/tests_models.py | 0 app/apps/cases/views.py | 0 app/apps/fraudprediction/__init__.py | 0 app/apps/fraudprediction/admin.py | 0 app/apps/fraudprediction/apps.py | 0 app/apps/fraudprediction/fraud_predict.py | 0 .../migrations/0001_initial.py | 0 .../0002_fraudprediction_synch_date.py | 0 .../migrations/0003_auto_20200318_0929.py | 0 .../migrations/0004_auto_20201028_1229.py | 0 ..._fraudprediction_fraud_prediction_model.py | 0 .../fraudprediction/migrations/__init__.py | 0 app/apps/fraudprediction/mock.py | 0 app/apps/fraudprediction/models.py | 0 app/apps/fraudprediction/serializers.py | 0 app/apps/fraudprediction/tasks.py | 0 app/apps/fraudprediction/tests/__init__.py | 0 .../fraudprediction/tests/tests_models.py | 0 app/apps/fraudprediction/utils.py | 0 app/apps/health/__init__.py | 0 app/apps/health/apps.py | 0 app/apps/health/health_checks.py | 0 app/apps/health/migrations/__init__.py | 0 app/apps/health/tests/__init__.py | 0 app/apps/health/tests/tests_utils.py | 0 app/apps/health/tests/tests_views.py | 0 app/apps/health/utils.py | 0 app/apps/health/views.py | 0 app/apps/itinerary/__init__.py | 0 app/apps/itinerary/admin.py | 0 app/apps/itinerary/apps.py | 0 app/apps/itinerary/migrations/0001_initial.py | 0 .../migrations/0002_auto_20191104_1421.py | 0 .../migrations/0003_auto_20191104_1447.py | 0 .../migrations/0004_remove_itinerary_week.py | 0 .../migrations/0005_auto_20191105_0858.py | 0 .../migrations/0006_itineraryitem_stadium.py | 0 .../migrations/0007_auto_20191111_1450.py | 0 .../migrations/0008_itinerary_team.py | 0 .../migrations/0009_remove_itinerary_title.py | 0 .../migrations/0010_auto_20191111_1557.py | 0 .../migrations/0011_auto_20191113_1516.py | 0 .../migrations/0012_auto_20191119_0859.py | 0 .../migrations/0013_auto_20191119_0959.py | 0 .../migrations/0014_auto_20191120_0856.py | 0 app/apps/itinerary/migrations/0015_note.py | 0 .../itinerary/migrations/0016_note_author.py | 0 .../migrations/0017_auto_20191128_0111.py | 0 .../migrations/0018_itineraryitem_position.py | 0 .../0019_remove_itineraryitem_position.py | 0 .../migrations/0020_itineraryitem_position.py | 0 .../0021_set_itineraryitem_position.py | 0 .../migrations/0022_auto_20191210_1357.py | 0 .../migrations/0023_auto_20200304_1410.py | 0 .../migrations/0024_auto_20200304_1619.py | 0 .../migrations/0025_auto_20200304_1634.py | 0 .../migrations/0026_auto_20200304_1637.py | 0 .../migrations/0027_auto_20200304_1639.py | 0 .../migrations/0028_auto_20200305_1455.py | 0 .../migrations/0029_auto_20200305_1525.py | 0 .../migrations/0030_auto_20200305_1601.py | 0 .../migrations/0031_itinerarysettings.py | 0 .../migrations/0032_auto_20200309_1240.py | 0 .../migrations/0033_auto_20200309_1242.py | 0 ...inerarysettings_target_itinerary_length.py | 0 .../migrations/0035_auto_20200309_1525.py | 0 .../migrations/0036_auto_20200309_1528.py | 0 .../migrations/0037_auto_20200313_1250.py | 0 .../0038_itinerarysettings_start_case.py | 0 .../migrations/0039_itineraryitem_checked.py | 0 .../migrations/0040_auto_20200414_1423.py | 0 .../migrations/0041_auto_20200414_1443.py | 0 .../migrations/0042_auto_20200416_1026.py | 0 .../migrations/0043_auto_20200429_0932.py | 0 .../migrations/0044_auto_20200429_0937.py | 0 .../migrations/0045_auto_20200429_0940.py | 0 .../migrations/0046_auto_20200706_1142.py | 0 .../migrations/0047_auto_20200706_1145.py | 0 .../migrations/0048_auto_20200706_1212.py | 0 ...e_postalcodesettings_itinerary_settings.py | 0 .../migrations/0050_auto_20200706_1219.py | 0 .../migrations/0051_auto_20200706_1220.py | 0 .../migrations/0052_auto_20200706_1424.py | 0 .../0053_itinerarysettings_team_settings.py | 0 .../0054_remove_itineraryitem_checked.py | 0 .../migrations/0055_auto_20201028_1231.py | 0 .../0056_itinerarysettings_day_settings.py | 0 ..._remove_itinerarysettings_team_settings.py | 0 .../0058_itinerary_external_state_id.py | 0 .../0058_itinerarysettings_sia_presedence.py | 0 .../migrations/0059_auto_20201127_1301.py | 0 .../migrations/0060_merge_20201130_1109.py | 0 .../migrations/0061_auto_20210323_1452.py | 0 .../migrations/0062_auto_20210324_1423.py | 0 .../migrations/0063_auto_20210330_1205.py | 0 ...0064_alter_itinerarysettings_start_case.py | 0 .../migrations/0065_auto_20220314_1425.py | 0 ...ysettings_housing_corporation_combiteam.py | 0 .../migrations/0067_auto_20220425_1512.py | 0 .../migrations/0068_auto_20220525_2025.py | 0 .../0069_itinerarysettings_districts.py | 0 ..._add_subjects_tags_daysetting_itinerary.py | 0 app/apps/itinerary/migrations/__init__.py | 0 app/apps/itinerary/models.py | 0 app/apps/itinerary/router.py | 0 app/apps/itinerary/serializers.py | 0 app/apps/itinerary/tasks.py | 0 app/apps/itinerary/tests/__init__.py | 0 .../itinerary/tests/tests_api_itinerary.py | 0 .../tests/tests_api_itinerary_item.py | 0 app/apps/itinerary/tests/tests_api_note.py | 0 app/apps/itinerary/tests/tests_api_team.py | 0 .../itinerary/tests/tests_model_itinerary.py | 0 .../tests/tests_model_itinerary_item.py | 0 app/apps/itinerary/tests/tests_model_note.py | 0 .../tests/tests_model_postal_code_range.py | 0 .../itinerary/tests/tests_model_settings.py | 0 .../tests/tests_model_team_member.py | 0 app/apps/itinerary/views.py | 0 app/apps/planner/__init__.py | 0 app/apps/planner/admin.py | 0 app/apps/planner/algorithm/__init__.py | 0 app/apps/planner/algorithm/base.py | 0 app/apps/planner/algorithm/knapsack.py | 0 app/apps/planner/apps.py | 0 app/apps/planner/const.py | 0 app/apps/planner/migrations/0001_initial.py | 0 .../migrations/0002_teamsettings_team_type.py | 0 .../migrations/0003_auto_20201007_1226.py | 0 .../migrations/0004_auto_20201019_1102.py | 0 .../0005_teamsettings_marked_stadia.py | 0 .../migrations/0006_auto_20201028_1233.py | 0 .../migrations/0007_auto_20201102_0831.py | 0 ...0008_postalcoderange_postalcoderangeset.py | 0 ...9_remove_teamsettings_situation_choices.py | 0 .../0010_teamsettings_fraud_predict.py | 0 .../planner/migrations/0011_daysettings.py | 0 .../migrations/0012_auto_20201117_1222.py | 0 .../migrations/0013_auto_20201117_1556.py | 0 .../migrations/0014_auto_20201118_1006.py | 0 .../migrations/0015_auto_20201125_1947.py | 0 .../migrations/0015_auto_20201126_1404.py | 0 .../0016_daysettings_sia_presedence.py | 0 .../migrations/0017_auto_20201126_1553.py | 0 .../migrations/0018_merge_20201130_1109.py | 0 .../0019_remove_teamsettings_settings.py | 0 .../migrations/0020_auto_20210302_1249.py | 0 .../migrations/0021_auto_20210303_1521.py | 0 .../0022_teamsettings_use_zaken_backend.py | 0 .../0023_teamsettings_zaken_team_name.py | 0 .../migrations/0024_auto_20210323_0953.py | 0 .../migrations/0025_auto_20210324_1423.py | 0 .../migrations/0026_auto_20210326_2112.py | 0 .../migrations/0027_auto_20210330_1207.py | 0 .../migrations/0028_daysettings_week_days.py | 0 .../0029_daysettings_max_use_limit.py | 0 .../migrations/0030_weights_priority.py | 0 .../migrations/0031_auto_20210427_1637.py | 0 ...msettings_fraudprediction_pilot_enabled.py | 0 .../migrations/0033_teamsettings_enabled.py | 0 .../migrations/0034_auto_20220314_1425.py | 0 ...ysettings_housing_corporation_combiteam.py | 0 .../migrations/0036_auto_20220525_2025.py | 0 ...7_remove_teamsettings_use_zaken_backend.py | 0 ...0038_alter_teamsettings_zaken_team_name.py | 0 ...en_team_name_teamsettings_zaken_team_id.py | 0 .../migrations/0040_daysettings_districts.py | 0 ..._add_subjects_tags_daysetting_itinerary.py | 0 app/apps/planner/migrations/__init__.py | 0 app/apps/planner/mock.py | 0 app/apps/planner/models.py | 0 app/apps/planner/router.py | 0 app/apps/planner/serializers.py | 0 .../templates/admin/planner/app_index.html | 0 app/apps/planner/tests/__init__.py | 0 app/apps/planner/tests/tests_api.py | 0 app/apps/planner/tests/tests_utils.py | 0 app/apps/planner/utils.py | 0 app/apps/planner/views.py | 0 app/apps/users/__init__.py | 0 app/apps/users/admin.py | 0 app/apps/users/auth.py | 0 app/apps/users/auth_apps.py | 0 app/apps/users/auth_dev.py | 0 app/apps/users/auth_keycloak.py | 0 app/apps/users/migrations/0001_initial.py | 0 .../migrations/0002_auto_20171227_2246.py | 0 .../migrations/0003_auto_20191104_1040.py | 0 .../migrations/0004_auto_20191104_1046.py | 0 .../migrations/0005_auto_20191111_1111.py | 0 app/apps/users/migrations/0006_team.py | 0 .../migrations/0007_auto_20191119_0859.py | 0 .../migrations/0008_auto_20200429_0932.py | 0 .../migrations/0009_auto_20200908_0939.py | 0 .../migrations/0010_user_team_settings.py | 0 app/apps/users/migrations/__init__.py | 0 app/apps/users/models.py | 0 app/apps/users/router.py | 0 app/apps/users/serializers.py | 0 app/apps/users/tests/__init__.py | 0 app/apps/users/tests/tests_api.py | 0 app/apps/users/tests/tests_auth.py | 0 app/apps/users/tests/tests_models.py | 0 app/apps/users/tests/tests_utils.py | 0 app/apps/users/user_manager.py | 0 app/apps/users/utils.py | 0 app/apps/users/views.py | 0 app/apps/visits/__init__.py | 0 app/apps/visits/admin.py | 0 app/apps/visits/apps.py | 0 app/apps/visits/migrations/0001_initial.py | 0 .../migrations/0002_visit_cooperation.py | 0 .../migrations/0003_auto_20200724_1528.py | 0 .../migrations/0004_auto_20200806_1121.py | 0 .../migrations/0005_auto_20200810_0912.py | 0 .../migrations/0006_auto_20200812_1604.py | 0 .../migrations/0007_auto_20200818_0851.py | 0 .../migrations/0008_auto_20201004_2109.py | 0 .../visits/migrations/0008_visitmetadata.py | 0 .../migrations/0009_auto_20201004_2113.py | 0 .../migrations/0009_auto_20201006_1353.py | 0 .../migrations/0010_auto_20201004_2119.py | 0 .../migrations/0010_auto_20201007_0833.py | 0 .../migrations/0011_auto_20201006_1149.py | 0 .../migrations/0012_merge_20201012_1110.py | 0 .../migrations/0013_auto_20201102_0831.py | 0 .../migrations/0014_remove_visit_thread_id.py | 0 .../visits/migrations/0015_visitteammember.py | 0 .../migrations/0016_auto_20210303_1504.py | 0 .../visits/migrations/0017_visit_completed.py | 0 app/apps/visits/migrations/__init__.py | 0 app/apps/visits/models.py | 0 app/apps/visits/router.py | 0 app/apps/visits/serializers.py | 0 app/apps/visits/tasks.py | 0 app/apps/visits/tests/__init__.py | 0 app/apps/visits/tests/tests_signals.py | 0 app/apps/visits/views.py | 0 app/celery-beat.sh | 0 app/celery.sh | 0 app/certificates/adp_rootca.crt | 0 app/deploy/config.ini | 0 app/requirements.txt | 0 app/settings/azure_settings.py | 0 app/settings/celery.py | 0 app/settings/const.py | 0 app/settings/settings.py | 2 +- app/utils/__init__.py | 0 app/utils/date_helpers.py | 0 app/utils/queries_bag_api.py | 0 app/utils/queries_brk_api.py | 0 app/utils/queries_zaken_api.py | 0 app/utils/tests/__init__.py | 0 app/utils/tests/tests_date_helpers.py | 0 app/utils/tests/tests_queries_bag_api.py | 0 app/utils/unittest_helpers.py | 0 309 files changed, 17 insertions(+), 104 deletions(-) mode change 100644 => 100755 app/Dockerfile mode change 100644 => 100755 app/__init__.py mode change 100644 => 100755 app/apps/__init__.py mode change 100644 => 100755 app/apps/accesslogs/__init__.py delete mode 100644 app/apps/accesslogs/admin.py mode change 100644 => 100755 app/apps/accesslogs/apps.py delete mode 100644 app/apps/accesslogs/middleware.py mode change 100644 => 100755 app/apps/accesslogs/migrations/0001_initial.py mode change 100644 => 100755 app/apps/accesslogs/migrations/0002_logentry_created_at.py mode change 100644 => 100755 app/apps/accesslogs/migrations/0003_auto_20200110_1537.py mode change 100644 => 100755 app/apps/accesslogs/migrations/0004_logentry_request_method.py create mode 100755 app/apps/accesslogs/migrations/0005_delete_logentry.py mode change 100644 => 100755 app/apps/accesslogs/migrations/__init__.py delete mode 100644 app/apps/accesslogs/models.py mode change 100644 => 100755 app/apps/accesslogs/tests/__init__.py mode change 100644 => 100755 app/apps/accesslogs/tests/tests_middleware.py mode change 100644 => 100755 app/apps/accesslogs/tests/tests_models.py mode change 100644 => 100755 app/apps/addresses/__init__.py mode change 100644 => 100755 app/apps/addresses/apps.py mode change 100644 => 100755 app/apps/addresses/router.py mode change 100644 => 100755 app/apps/addresses/serializers.py mode change 100644 => 100755 app/apps/addresses/views.py mode change 100644 => 100755 app/apps/cases/__init__.py mode change 100644 => 100755 app/apps/cases/admin.py mode change 100644 => 100755 app/apps/cases/apps.py mode change 100644 => 100755 app/apps/cases/migrations/0001_initial.py mode change 100644 => 100755 app/apps/cases/migrations/0002_remove_case_stadion.py mode change 100644 => 100755 app/apps/cases/migrations/0003_auto_20191119_2139.py mode change 100644 => 100755 app/apps/cases/migrations/0004_auto_20191119_2146.py mode change 100644 => 100755 app/apps/cases/migrations/0005_auto_20191120_1039.py mode change 100644 => 100755 app/apps/cases/migrations/0006_auto_20191122_1952.py mode change 100644 => 100755 app/apps/cases/migrations/0007_project_state.py mode change 100644 => 100755 app/apps/cases/migrations/0008_auto_20200309_1302.py mode change 100644 => 100755 app/apps/cases/migrations/0009_auto_20200309_1525.py mode change 100644 => 100755 app/apps/cases/migrations/0010_auto_20200313_1250.py mode change 100644 => 100755 app/apps/cases/migrations/0011_auto_20200317_1345.py mode change 100644 => 100755 app/apps/cases/migrations/0012_auto_20200407_1141.py mode change 100644 => 100755 app/apps/cases/migrations/0013_auto_20200915_0735.py mode change 100644 => 100755 app/apps/cases/migrations/0014_auto_20200916_1328.py mode change 100644 => 100755 app/apps/cases/migrations/0015_auto_20200916_1543.py mode change 100644 => 100755 app/apps/cases/migrations/0016_auto_20201007_1226.py mode change 100644 => 100755 app/apps/cases/migrations/0017_stadiumlabel.py mode change 100644 => 100755 app/apps/cases/migrations/0018_case_is_legacy_bwv.py mode change 100644 => 100755 app/apps/cases/migrations/0019_auto_20210318_1028.py mode change 100644 => 100755 app/apps/cases/migrations/0020_auto_20220525_2025.py mode change 100644 => 100755 app/apps/cases/migrations/__init__.py mode change 100644 => 100755 app/apps/cases/mock.py mode change 100644 => 100755 app/apps/cases/models.py mode change 100644 => 100755 app/apps/cases/router.py mode change 100644 => 100755 app/apps/cases/serializers.py mode change 100644 => 100755 app/apps/cases/swagger_parameters.py mode change 100644 => 100755 app/apps/cases/tests/__init__.py mode change 100644 => 100755 app/apps/cases/tests/tests_api.py mode change 100644 => 100755 app/apps/cases/tests/tests_models.py mode change 100644 => 100755 app/apps/cases/views.py mode change 100644 => 100755 app/apps/fraudprediction/__init__.py mode change 100644 => 100755 app/apps/fraudprediction/admin.py mode change 100644 => 100755 app/apps/fraudprediction/apps.py mode change 100644 => 100755 app/apps/fraudprediction/fraud_predict.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/0001_initial.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/0002_fraudprediction_synch_date.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/0003_auto_20200318_0929.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/0004_auto_20201028_1229.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/0005_fraudprediction_fraud_prediction_model.py mode change 100644 => 100755 app/apps/fraudprediction/migrations/__init__.py mode change 100644 => 100755 app/apps/fraudprediction/mock.py mode change 100644 => 100755 app/apps/fraudprediction/models.py mode change 100644 => 100755 app/apps/fraudprediction/serializers.py mode change 100644 => 100755 app/apps/fraudprediction/tasks.py mode change 100644 => 100755 app/apps/fraudprediction/tests/__init__.py mode change 100644 => 100755 app/apps/fraudprediction/tests/tests_models.py mode change 100644 => 100755 app/apps/fraudprediction/utils.py mode change 100644 => 100755 app/apps/health/__init__.py mode change 100644 => 100755 app/apps/health/apps.py mode change 100644 => 100755 app/apps/health/health_checks.py mode change 100644 => 100755 app/apps/health/migrations/__init__.py mode change 100644 => 100755 app/apps/health/tests/__init__.py mode change 100644 => 100755 app/apps/health/tests/tests_utils.py mode change 100644 => 100755 app/apps/health/tests/tests_views.py mode change 100644 => 100755 app/apps/health/utils.py mode change 100644 => 100755 app/apps/health/views.py mode change 100644 => 100755 app/apps/itinerary/__init__.py mode change 100644 => 100755 app/apps/itinerary/admin.py mode change 100644 => 100755 app/apps/itinerary/apps.py mode change 100644 => 100755 app/apps/itinerary/migrations/0001_initial.py mode change 100644 => 100755 app/apps/itinerary/migrations/0002_auto_20191104_1421.py mode change 100644 => 100755 app/apps/itinerary/migrations/0003_auto_20191104_1447.py mode change 100644 => 100755 app/apps/itinerary/migrations/0004_remove_itinerary_week.py mode change 100644 => 100755 app/apps/itinerary/migrations/0005_auto_20191105_0858.py mode change 100644 => 100755 app/apps/itinerary/migrations/0006_itineraryitem_stadium.py mode change 100644 => 100755 app/apps/itinerary/migrations/0007_auto_20191111_1450.py mode change 100644 => 100755 app/apps/itinerary/migrations/0008_itinerary_team.py mode change 100644 => 100755 app/apps/itinerary/migrations/0009_remove_itinerary_title.py mode change 100644 => 100755 app/apps/itinerary/migrations/0010_auto_20191111_1557.py mode change 100644 => 100755 app/apps/itinerary/migrations/0011_auto_20191113_1516.py mode change 100644 => 100755 app/apps/itinerary/migrations/0012_auto_20191119_0859.py mode change 100644 => 100755 app/apps/itinerary/migrations/0013_auto_20191119_0959.py mode change 100644 => 100755 app/apps/itinerary/migrations/0014_auto_20191120_0856.py mode change 100644 => 100755 app/apps/itinerary/migrations/0015_note.py mode change 100644 => 100755 app/apps/itinerary/migrations/0016_note_author.py mode change 100644 => 100755 app/apps/itinerary/migrations/0017_auto_20191128_0111.py mode change 100644 => 100755 app/apps/itinerary/migrations/0018_itineraryitem_position.py mode change 100644 => 100755 app/apps/itinerary/migrations/0019_remove_itineraryitem_position.py mode change 100644 => 100755 app/apps/itinerary/migrations/0020_itineraryitem_position.py mode change 100644 => 100755 app/apps/itinerary/migrations/0021_set_itineraryitem_position.py mode change 100644 => 100755 app/apps/itinerary/migrations/0022_auto_20191210_1357.py mode change 100644 => 100755 app/apps/itinerary/migrations/0023_auto_20200304_1410.py mode change 100644 => 100755 app/apps/itinerary/migrations/0024_auto_20200304_1619.py mode change 100644 => 100755 app/apps/itinerary/migrations/0025_auto_20200304_1634.py mode change 100644 => 100755 app/apps/itinerary/migrations/0026_auto_20200304_1637.py mode change 100644 => 100755 app/apps/itinerary/migrations/0027_auto_20200304_1639.py mode change 100644 => 100755 app/apps/itinerary/migrations/0028_auto_20200305_1455.py mode change 100644 => 100755 app/apps/itinerary/migrations/0029_auto_20200305_1525.py mode change 100644 => 100755 app/apps/itinerary/migrations/0030_auto_20200305_1601.py mode change 100644 => 100755 app/apps/itinerary/migrations/0031_itinerarysettings.py mode change 100644 => 100755 app/apps/itinerary/migrations/0032_auto_20200309_1240.py mode change 100644 => 100755 app/apps/itinerary/migrations/0033_auto_20200309_1242.py mode change 100644 => 100755 app/apps/itinerary/migrations/0034_itinerarysettings_target_itinerary_length.py mode change 100644 => 100755 app/apps/itinerary/migrations/0035_auto_20200309_1525.py mode change 100644 => 100755 app/apps/itinerary/migrations/0036_auto_20200309_1528.py mode change 100644 => 100755 app/apps/itinerary/migrations/0037_auto_20200313_1250.py mode change 100644 => 100755 app/apps/itinerary/migrations/0038_itinerarysettings_start_case.py mode change 100644 => 100755 app/apps/itinerary/migrations/0039_itineraryitem_checked.py mode change 100644 => 100755 app/apps/itinerary/migrations/0040_auto_20200414_1423.py mode change 100644 => 100755 app/apps/itinerary/migrations/0041_auto_20200414_1443.py mode change 100644 => 100755 app/apps/itinerary/migrations/0042_auto_20200416_1026.py mode change 100644 => 100755 app/apps/itinerary/migrations/0043_auto_20200429_0932.py mode change 100644 => 100755 app/apps/itinerary/migrations/0044_auto_20200429_0937.py mode change 100644 => 100755 app/apps/itinerary/migrations/0045_auto_20200429_0940.py mode change 100644 => 100755 app/apps/itinerary/migrations/0046_auto_20200706_1142.py mode change 100644 => 100755 app/apps/itinerary/migrations/0047_auto_20200706_1145.py mode change 100644 => 100755 app/apps/itinerary/migrations/0048_auto_20200706_1212.py mode change 100644 => 100755 app/apps/itinerary/migrations/0049_remove_postalcodesettings_itinerary_settings.py mode change 100644 => 100755 app/apps/itinerary/migrations/0050_auto_20200706_1219.py mode change 100644 => 100755 app/apps/itinerary/migrations/0051_auto_20200706_1220.py mode change 100644 => 100755 app/apps/itinerary/migrations/0052_auto_20200706_1424.py mode change 100644 => 100755 app/apps/itinerary/migrations/0053_itinerarysettings_team_settings.py mode change 100644 => 100755 app/apps/itinerary/migrations/0054_remove_itineraryitem_checked.py mode change 100644 => 100755 app/apps/itinerary/migrations/0055_auto_20201028_1231.py mode change 100644 => 100755 app/apps/itinerary/migrations/0056_itinerarysettings_day_settings.py mode change 100644 => 100755 app/apps/itinerary/migrations/0057_remove_itinerarysettings_team_settings.py mode change 100644 => 100755 app/apps/itinerary/migrations/0058_itinerary_external_state_id.py mode change 100644 => 100755 app/apps/itinerary/migrations/0058_itinerarysettings_sia_presedence.py mode change 100644 => 100755 app/apps/itinerary/migrations/0059_auto_20201127_1301.py mode change 100644 => 100755 app/apps/itinerary/migrations/0060_merge_20201130_1109.py mode change 100644 => 100755 app/apps/itinerary/migrations/0061_auto_20210323_1452.py mode change 100644 => 100755 app/apps/itinerary/migrations/0062_auto_20210324_1423.py mode change 100644 => 100755 app/apps/itinerary/migrations/0063_auto_20210330_1205.py mode change 100644 => 100755 app/apps/itinerary/migrations/0064_alter_itinerarysettings_start_case.py mode change 100644 => 100755 app/apps/itinerary/migrations/0065_auto_20220314_1425.py mode change 100644 => 100755 app/apps/itinerary/migrations/0066_itinerarysettings_housing_corporation_combiteam.py mode change 100644 => 100755 app/apps/itinerary/migrations/0067_auto_20220425_1512.py mode change 100644 => 100755 app/apps/itinerary/migrations/0068_auto_20220525_2025.py mode change 100644 => 100755 app/apps/itinerary/migrations/0069_itinerarysettings_districts.py mode change 100644 => 100755 app/apps/itinerary/migrations/0070_add_subjects_tags_daysetting_itinerary.py mode change 100644 => 100755 app/apps/itinerary/migrations/__init__.py mode change 100644 => 100755 app/apps/itinerary/models.py mode change 100644 => 100755 app/apps/itinerary/router.py mode change 100644 => 100755 app/apps/itinerary/serializers.py mode change 100644 => 100755 app/apps/itinerary/tasks.py mode change 100644 => 100755 app/apps/itinerary/tests/__init__.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_api_itinerary.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_api_itinerary_item.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_api_note.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_api_team.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_itinerary.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_itinerary_item.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_note.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_postal_code_range.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_settings.py mode change 100644 => 100755 app/apps/itinerary/tests/tests_model_team_member.py mode change 100644 => 100755 app/apps/itinerary/views.py mode change 100644 => 100755 app/apps/planner/__init__.py mode change 100644 => 100755 app/apps/planner/admin.py mode change 100644 => 100755 app/apps/planner/algorithm/__init__.py mode change 100644 => 100755 app/apps/planner/algorithm/base.py mode change 100644 => 100755 app/apps/planner/algorithm/knapsack.py mode change 100644 => 100755 app/apps/planner/apps.py mode change 100644 => 100755 app/apps/planner/const.py mode change 100644 => 100755 app/apps/planner/migrations/0001_initial.py mode change 100644 => 100755 app/apps/planner/migrations/0002_teamsettings_team_type.py mode change 100644 => 100755 app/apps/planner/migrations/0003_auto_20201007_1226.py mode change 100644 => 100755 app/apps/planner/migrations/0004_auto_20201019_1102.py mode change 100644 => 100755 app/apps/planner/migrations/0005_teamsettings_marked_stadia.py mode change 100644 => 100755 app/apps/planner/migrations/0006_auto_20201028_1233.py mode change 100644 => 100755 app/apps/planner/migrations/0007_auto_20201102_0831.py mode change 100644 => 100755 app/apps/planner/migrations/0008_postalcoderange_postalcoderangeset.py mode change 100644 => 100755 app/apps/planner/migrations/0009_remove_teamsettings_situation_choices.py mode change 100644 => 100755 app/apps/planner/migrations/0010_teamsettings_fraud_predict.py mode change 100644 => 100755 app/apps/planner/migrations/0011_daysettings.py mode change 100644 => 100755 app/apps/planner/migrations/0012_auto_20201117_1222.py mode change 100644 => 100755 app/apps/planner/migrations/0013_auto_20201117_1556.py mode change 100644 => 100755 app/apps/planner/migrations/0014_auto_20201118_1006.py mode change 100644 => 100755 app/apps/planner/migrations/0015_auto_20201125_1947.py mode change 100644 => 100755 app/apps/planner/migrations/0015_auto_20201126_1404.py mode change 100644 => 100755 app/apps/planner/migrations/0016_daysettings_sia_presedence.py mode change 100644 => 100755 app/apps/planner/migrations/0017_auto_20201126_1553.py mode change 100644 => 100755 app/apps/planner/migrations/0018_merge_20201130_1109.py mode change 100644 => 100755 app/apps/planner/migrations/0019_remove_teamsettings_settings.py mode change 100644 => 100755 app/apps/planner/migrations/0020_auto_20210302_1249.py mode change 100644 => 100755 app/apps/planner/migrations/0021_auto_20210303_1521.py mode change 100644 => 100755 app/apps/planner/migrations/0022_teamsettings_use_zaken_backend.py mode change 100644 => 100755 app/apps/planner/migrations/0023_teamsettings_zaken_team_name.py mode change 100644 => 100755 app/apps/planner/migrations/0024_auto_20210323_0953.py mode change 100644 => 100755 app/apps/planner/migrations/0025_auto_20210324_1423.py mode change 100644 => 100755 app/apps/planner/migrations/0026_auto_20210326_2112.py mode change 100644 => 100755 app/apps/planner/migrations/0027_auto_20210330_1207.py mode change 100644 => 100755 app/apps/planner/migrations/0028_daysettings_week_days.py mode change 100644 => 100755 app/apps/planner/migrations/0029_daysettings_max_use_limit.py mode change 100644 => 100755 app/apps/planner/migrations/0030_weights_priority.py mode change 100644 => 100755 app/apps/planner/migrations/0031_auto_20210427_1637.py mode change 100644 => 100755 app/apps/planner/migrations/0032_teamsettings_fraudprediction_pilot_enabled.py mode change 100644 => 100755 app/apps/planner/migrations/0033_teamsettings_enabled.py mode change 100644 => 100755 app/apps/planner/migrations/0034_auto_20220314_1425.py mode change 100644 => 100755 app/apps/planner/migrations/0035_daysettings_housing_corporation_combiteam.py mode change 100644 => 100755 app/apps/planner/migrations/0036_auto_20220525_2025.py mode change 100644 => 100755 app/apps/planner/migrations/0037_remove_teamsettings_use_zaken_backend.py mode change 100644 => 100755 app/apps/planner/migrations/0038_alter_teamsettings_zaken_team_name.py mode change 100644 => 100755 app/apps/planner/migrations/0039_rename_zaken_team_name_teamsettings_zaken_team_id.py mode change 100644 => 100755 app/apps/planner/migrations/0040_daysettings_districts.py mode change 100644 => 100755 app/apps/planner/migrations/0041_add_subjects_tags_daysetting_itinerary.py mode change 100644 => 100755 app/apps/planner/migrations/__init__.py mode change 100644 => 100755 app/apps/planner/mock.py mode change 100644 => 100755 app/apps/planner/models.py mode change 100644 => 100755 app/apps/planner/router.py mode change 100644 => 100755 app/apps/planner/serializers.py mode change 100644 => 100755 app/apps/planner/templates/admin/planner/app_index.html mode change 100644 => 100755 app/apps/planner/tests/__init__.py mode change 100644 => 100755 app/apps/planner/tests/tests_api.py mode change 100644 => 100755 app/apps/planner/tests/tests_utils.py mode change 100644 => 100755 app/apps/planner/utils.py mode change 100644 => 100755 app/apps/planner/views.py mode change 100644 => 100755 app/apps/users/__init__.py mode change 100644 => 100755 app/apps/users/admin.py mode change 100644 => 100755 app/apps/users/auth.py mode change 100644 => 100755 app/apps/users/auth_apps.py mode change 100644 => 100755 app/apps/users/auth_dev.py mode change 100644 => 100755 app/apps/users/auth_keycloak.py mode change 100644 => 100755 app/apps/users/migrations/0001_initial.py mode change 100644 => 100755 app/apps/users/migrations/0002_auto_20171227_2246.py mode change 100644 => 100755 app/apps/users/migrations/0003_auto_20191104_1040.py mode change 100644 => 100755 app/apps/users/migrations/0004_auto_20191104_1046.py mode change 100644 => 100755 app/apps/users/migrations/0005_auto_20191111_1111.py mode change 100644 => 100755 app/apps/users/migrations/0006_team.py mode change 100644 => 100755 app/apps/users/migrations/0007_auto_20191119_0859.py mode change 100644 => 100755 app/apps/users/migrations/0008_auto_20200429_0932.py mode change 100644 => 100755 app/apps/users/migrations/0009_auto_20200908_0939.py mode change 100644 => 100755 app/apps/users/migrations/0010_user_team_settings.py mode change 100644 => 100755 app/apps/users/migrations/__init__.py mode change 100644 => 100755 app/apps/users/models.py mode change 100644 => 100755 app/apps/users/router.py mode change 100644 => 100755 app/apps/users/serializers.py mode change 100644 => 100755 app/apps/users/tests/__init__.py mode change 100644 => 100755 app/apps/users/tests/tests_api.py mode change 100644 => 100755 app/apps/users/tests/tests_auth.py mode change 100644 => 100755 app/apps/users/tests/tests_models.py mode change 100644 => 100755 app/apps/users/tests/tests_utils.py mode change 100644 => 100755 app/apps/users/user_manager.py mode change 100644 => 100755 app/apps/users/utils.py mode change 100644 => 100755 app/apps/users/views.py mode change 100644 => 100755 app/apps/visits/__init__.py mode change 100644 => 100755 app/apps/visits/admin.py mode change 100644 => 100755 app/apps/visits/apps.py mode change 100644 => 100755 app/apps/visits/migrations/0001_initial.py mode change 100644 => 100755 app/apps/visits/migrations/0002_visit_cooperation.py mode change 100644 => 100755 app/apps/visits/migrations/0003_auto_20200724_1528.py mode change 100644 => 100755 app/apps/visits/migrations/0004_auto_20200806_1121.py mode change 100644 => 100755 app/apps/visits/migrations/0005_auto_20200810_0912.py mode change 100644 => 100755 app/apps/visits/migrations/0006_auto_20200812_1604.py mode change 100644 => 100755 app/apps/visits/migrations/0007_auto_20200818_0851.py mode change 100644 => 100755 app/apps/visits/migrations/0008_auto_20201004_2109.py mode change 100644 => 100755 app/apps/visits/migrations/0008_visitmetadata.py mode change 100644 => 100755 app/apps/visits/migrations/0009_auto_20201004_2113.py mode change 100644 => 100755 app/apps/visits/migrations/0009_auto_20201006_1353.py mode change 100644 => 100755 app/apps/visits/migrations/0010_auto_20201004_2119.py mode change 100644 => 100755 app/apps/visits/migrations/0010_auto_20201007_0833.py mode change 100644 => 100755 app/apps/visits/migrations/0011_auto_20201006_1149.py mode change 100644 => 100755 app/apps/visits/migrations/0012_merge_20201012_1110.py mode change 100644 => 100755 app/apps/visits/migrations/0013_auto_20201102_0831.py mode change 100644 => 100755 app/apps/visits/migrations/0014_remove_visit_thread_id.py mode change 100644 => 100755 app/apps/visits/migrations/0015_visitteammember.py mode change 100644 => 100755 app/apps/visits/migrations/0016_auto_20210303_1504.py mode change 100644 => 100755 app/apps/visits/migrations/0017_visit_completed.py mode change 100644 => 100755 app/apps/visits/migrations/__init__.py mode change 100644 => 100755 app/apps/visits/models.py mode change 100644 => 100755 app/apps/visits/router.py mode change 100644 => 100755 app/apps/visits/serializers.py mode change 100644 => 100755 app/apps/visits/tasks.py mode change 100644 => 100755 app/apps/visits/tests/__init__.py mode change 100644 => 100755 app/apps/visits/tests/tests_signals.py mode change 100644 => 100755 app/apps/visits/views.py mode change 100644 => 100755 app/celery-beat.sh mode change 100644 => 100755 app/celery.sh mode change 100644 => 100755 app/certificates/adp_rootca.crt mode change 100644 => 100755 app/deploy/config.ini mode change 100644 => 100755 app/requirements.txt mode change 100644 => 100755 app/settings/azure_settings.py mode change 100644 => 100755 app/settings/celery.py mode change 100644 => 100755 app/settings/const.py mode change 100644 => 100755 app/utils/__init__.py mode change 100644 => 100755 app/utils/date_helpers.py mode change 100644 => 100755 app/utils/queries_bag_api.py mode change 100644 => 100755 app/utils/queries_brk_api.py mode change 100644 => 100755 app/utils/queries_zaken_api.py mode change 100644 => 100755 app/utils/tests/__init__.py mode change 100644 => 100755 app/utils/tests/tests_date_helpers.py mode change 100644 => 100755 app/utils/tests/tests_queries_bag_api.py mode change 100644 => 100755 app/utils/unittest_helpers.py diff --git a/app/Dockerfile b/app/Dockerfile old mode 100644 new mode 100755 diff --git a/app/__init__.py b/app/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/__init__.py b/app/apps/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/__init__.py b/app/apps/accesslogs/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/admin.py b/app/apps/accesslogs/admin.py deleted file mode 100644 index c2bd4393..00000000 --- a/app/apps/accesslogs/admin.py +++ /dev/null @@ -1,39 +0,0 @@ -from apps.accesslogs.models import LogEntry -from django.contrib import admin - - -@admin.register(LogEntry) -class LogEntryAdmin(admin.ModelAdmin): - def has_change_permission(self, request, obj=None): - return False - - def has_delete_permission(self, request, obj=None): - return False - - def has_add_permission(self, request): - return False - - search_fields = ( - "request_user_email", - "request_uri", - ) - - list_display = ( - "request_uri", - "request_method", - "response_status_code", - "request_user_email", - "created_at", - ) - - fields = ( - "request_user_email", - "request_user_id", - "request_uri", - "request_method", - "request_meta", - "response_status_code", - "created_at", - ) - - readonly_fields = fields diff --git a/app/apps/accesslogs/apps.py b/app/apps/accesslogs/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/middleware.py b/app/apps/accesslogs/middleware.py deleted file mode 100644 index 56449ec3..00000000 --- a/app/apps/accesslogs/middleware.py +++ /dev/null @@ -1,30 +0,0 @@ -from apps.accesslogs.models import LogEntry -from django.conf import settings -from django.contrib.auth.models import AnonymousUser - - -class LoggingMiddleware: - def __init__(self, get_response): - self.get_response = get_response - - def __call__(self, request): - response = self.get_response(request) - - if request.path in settings.ACCESS_LOG_EXEMPTIONS: - return response - - log_entry = LogEntry( - request_uri=request.path, - request_meta=request.META, - request_method=request.method, - response_status_code=response.status_code, - ) - - # Add the authenticated user, if it's available - if not isinstance(request.user, AnonymousUser): - log_entry.request_user_email = request.user.email - log_entry.request_user_id = request.user.id - - log_entry.save() - - return response diff --git a/app/apps/accesslogs/migrations/0001_initial.py b/app/apps/accesslogs/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/migrations/0002_logentry_created_at.py b/app/apps/accesslogs/migrations/0002_logentry_created_at.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/migrations/0003_auto_20200110_1537.py b/app/apps/accesslogs/migrations/0003_auto_20200110_1537.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/migrations/0004_logentry_request_method.py b/app/apps/accesslogs/migrations/0004_logentry_request_method.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/migrations/0005_delete_logentry.py b/app/apps/accesslogs/migrations/0005_delete_logentry.py new file mode 100755 index 00000000..ebe7bf2d --- /dev/null +++ b/app/apps/accesslogs/migrations/0005_delete_logentry.py @@ -0,0 +1,16 @@ +# Generated by Django 3.2.13 on 2024-07-03 09:07 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("accesslogs", "0004_logentry_request_method"), + ] + + operations = [ + migrations.DeleteModel( + name="LogEntry", + ), + ] diff --git a/app/apps/accesslogs/migrations/__init__.py b/app/apps/accesslogs/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/models.py b/app/apps/accesslogs/models.py deleted file mode 100644 index 44be1237..00000000 --- a/app/apps/accesslogs/models.py +++ /dev/null @@ -1,34 +0,0 @@ -from django.db import models - - -class LogEntry(models.Model): - """ - A request log entry - """ - - # Request user information can be null for anonymous requests - request_user_email = models.CharField(max_length=255, null=True, editable=False) - request_user_id = models.CharField(max_length=255, null=True, editable=False) - - # The other fields can never be null - request_uri = models.CharField(max_length=255, null=False, editable=False) - request_meta = models.TextField(null=False, editable=False) - request_method = models.CharField(max_length=7, null=False, editable=False) - response_status_code = models.CharField(max_length=3, null=False, editable=False) - created_at = models.DateTimeField(auto_now_add=True, null=False, editable=False) - - def save(self, *args, **kwargs): - """ - A log entry can only be added once, and should not be editable - """ - is_new = self.pk is None - - if is_new: - # Only safe if this is a newly created object - super().save(*args, **kwargs) - else: - # Don't save if this object is already created, and is being edited - raise Exception("It's not allowed to edit or update log entries") - - def __str__(self): - return self.request_uri diff --git a/app/apps/accesslogs/tests/__init__.py b/app/apps/accesslogs/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/tests/tests_middleware.py b/app/apps/accesslogs/tests/tests_middleware.py old mode 100644 new mode 100755 diff --git a/app/apps/accesslogs/tests/tests_models.py b/app/apps/accesslogs/tests/tests_models.py old mode 100644 new mode 100755 diff --git a/app/apps/addresses/__init__.py b/app/apps/addresses/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/addresses/apps.py b/app/apps/addresses/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/addresses/router.py b/app/apps/addresses/router.py old mode 100644 new mode 100755 diff --git a/app/apps/addresses/serializers.py b/app/apps/addresses/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/addresses/views.py b/app/apps/addresses/views.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/__init__.py b/app/apps/cases/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/admin.py b/app/apps/cases/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/apps.py b/app/apps/cases/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0001_initial.py b/app/apps/cases/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0002_remove_case_stadion.py b/app/apps/cases/migrations/0002_remove_case_stadion.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0003_auto_20191119_2139.py b/app/apps/cases/migrations/0003_auto_20191119_2139.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0004_auto_20191119_2146.py b/app/apps/cases/migrations/0004_auto_20191119_2146.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0005_auto_20191120_1039.py b/app/apps/cases/migrations/0005_auto_20191120_1039.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0006_auto_20191122_1952.py b/app/apps/cases/migrations/0006_auto_20191122_1952.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0007_project_state.py b/app/apps/cases/migrations/0007_project_state.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0008_auto_20200309_1302.py b/app/apps/cases/migrations/0008_auto_20200309_1302.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0009_auto_20200309_1525.py b/app/apps/cases/migrations/0009_auto_20200309_1525.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0010_auto_20200313_1250.py b/app/apps/cases/migrations/0010_auto_20200313_1250.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0011_auto_20200317_1345.py b/app/apps/cases/migrations/0011_auto_20200317_1345.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0012_auto_20200407_1141.py b/app/apps/cases/migrations/0012_auto_20200407_1141.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0013_auto_20200915_0735.py b/app/apps/cases/migrations/0013_auto_20200915_0735.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0014_auto_20200916_1328.py b/app/apps/cases/migrations/0014_auto_20200916_1328.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0015_auto_20200916_1543.py b/app/apps/cases/migrations/0015_auto_20200916_1543.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0016_auto_20201007_1226.py b/app/apps/cases/migrations/0016_auto_20201007_1226.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0017_stadiumlabel.py b/app/apps/cases/migrations/0017_stadiumlabel.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0018_case_is_legacy_bwv.py b/app/apps/cases/migrations/0018_case_is_legacy_bwv.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0019_auto_20210318_1028.py b/app/apps/cases/migrations/0019_auto_20210318_1028.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/0020_auto_20220525_2025.py b/app/apps/cases/migrations/0020_auto_20220525_2025.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/migrations/__init__.py b/app/apps/cases/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/mock.py b/app/apps/cases/mock.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/models.py b/app/apps/cases/models.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/router.py b/app/apps/cases/router.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/serializers.py b/app/apps/cases/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/swagger_parameters.py b/app/apps/cases/swagger_parameters.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/tests/__init__.py b/app/apps/cases/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/tests/tests_api.py b/app/apps/cases/tests/tests_api.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/tests/tests_models.py b/app/apps/cases/tests/tests_models.py old mode 100644 new mode 100755 diff --git a/app/apps/cases/views.py b/app/apps/cases/views.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/__init__.py b/app/apps/fraudprediction/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/admin.py b/app/apps/fraudprediction/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/apps.py b/app/apps/fraudprediction/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/fraud_predict.py b/app/apps/fraudprediction/fraud_predict.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/0001_initial.py b/app/apps/fraudprediction/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/0002_fraudprediction_synch_date.py b/app/apps/fraudprediction/migrations/0002_fraudprediction_synch_date.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/0003_auto_20200318_0929.py b/app/apps/fraudprediction/migrations/0003_auto_20200318_0929.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/0004_auto_20201028_1229.py b/app/apps/fraudprediction/migrations/0004_auto_20201028_1229.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/0005_fraudprediction_fraud_prediction_model.py b/app/apps/fraudprediction/migrations/0005_fraudprediction_fraud_prediction_model.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/migrations/__init__.py b/app/apps/fraudprediction/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/mock.py b/app/apps/fraudprediction/mock.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/models.py b/app/apps/fraudprediction/models.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/serializers.py b/app/apps/fraudprediction/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/tasks.py b/app/apps/fraudprediction/tasks.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/tests/__init__.py b/app/apps/fraudprediction/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/tests/tests_models.py b/app/apps/fraudprediction/tests/tests_models.py old mode 100644 new mode 100755 diff --git a/app/apps/fraudprediction/utils.py b/app/apps/fraudprediction/utils.py old mode 100644 new mode 100755 diff --git a/app/apps/health/__init__.py b/app/apps/health/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/health/apps.py b/app/apps/health/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/health/health_checks.py b/app/apps/health/health_checks.py old mode 100644 new mode 100755 diff --git a/app/apps/health/migrations/__init__.py b/app/apps/health/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/health/tests/__init__.py b/app/apps/health/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/health/tests/tests_utils.py b/app/apps/health/tests/tests_utils.py old mode 100644 new mode 100755 diff --git a/app/apps/health/tests/tests_views.py b/app/apps/health/tests/tests_views.py old mode 100644 new mode 100755 diff --git a/app/apps/health/utils.py b/app/apps/health/utils.py old mode 100644 new mode 100755 diff --git a/app/apps/health/views.py b/app/apps/health/views.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/__init__.py b/app/apps/itinerary/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/admin.py b/app/apps/itinerary/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/apps.py b/app/apps/itinerary/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0001_initial.py b/app/apps/itinerary/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0002_auto_20191104_1421.py b/app/apps/itinerary/migrations/0002_auto_20191104_1421.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0003_auto_20191104_1447.py b/app/apps/itinerary/migrations/0003_auto_20191104_1447.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0004_remove_itinerary_week.py b/app/apps/itinerary/migrations/0004_remove_itinerary_week.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0005_auto_20191105_0858.py b/app/apps/itinerary/migrations/0005_auto_20191105_0858.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0006_itineraryitem_stadium.py b/app/apps/itinerary/migrations/0006_itineraryitem_stadium.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0007_auto_20191111_1450.py b/app/apps/itinerary/migrations/0007_auto_20191111_1450.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0008_itinerary_team.py b/app/apps/itinerary/migrations/0008_itinerary_team.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0009_remove_itinerary_title.py b/app/apps/itinerary/migrations/0009_remove_itinerary_title.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0010_auto_20191111_1557.py b/app/apps/itinerary/migrations/0010_auto_20191111_1557.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0011_auto_20191113_1516.py b/app/apps/itinerary/migrations/0011_auto_20191113_1516.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0012_auto_20191119_0859.py b/app/apps/itinerary/migrations/0012_auto_20191119_0859.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0013_auto_20191119_0959.py b/app/apps/itinerary/migrations/0013_auto_20191119_0959.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0014_auto_20191120_0856.py b/app/apps/itinerary/migrations/0014_auto_20191120_0856.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0015_note.py b/app/apps/itinerary/migrations/0015_note.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0016_note_author.py b/app/apps/itinerary/migrations/0016_note_author.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0017_auto_20191128_0111.py b/app/apps/itinerary/migrations/0017_auto_20191128_0111.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0018_itineraryitem_position.py b/app/apps/itinerary/migrations/0018_itineraryitem_position.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0019_remove_itineraryitem_position.py b/app/apps/itinerary/migrations/0019_remove_itineraryitem_position.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0020_itineraryitem_position.py b/app/apps/itinerary/migrations/0020_itineraryitem_position.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0021_set_itineraryitem_position.py b/app/apps/itinerary/migrations/0021_set_itineraryitem_position.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0022_auto_20191210_1357.py b/app/apps/itinerary/migrations/0022_auto_20191210_1357.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0023_auto_20200304_1410.py b/app/apps/itinerary/migrations/0023_auto_20200304_1410.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0024_auto_20200304_1619.py b/app/apps/itinerary/migrations/0024_auto_20200304_1619.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0025_auto_20200304_1634.py b/app/apps/itinerary/migrations/0025_auto_20200304_1634.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0026_auto_20200304_1637.py b/app/apps/itinerary/migrations/0026_auto_20200304_1637.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0027_auto_20200304_1639.py b/app/apps/itinerary/migrations/0027_auto_20200304_1639.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0028_auto_20200305_1455.py b/app/apps/itinerary/migrations/0028_auto_20200305_1455.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0029_auto_20200305_1525.py b/app/apps/itinerary/migrations/0029_auto_20200305_1525.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0030_auto_20200305_1601.py b/app/apps/itinerary/migrations/0030_auto_20200305_1601.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0031_itinerarysettings.py b/app/apps/itinerary/migrations/0031_itinerarysettings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0032_auto_20200309_1240.py b/app/apps/itinerary/migrations/0032_auto_20200309_1240.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0033_auto_20200309_1242.py b/app/apps/itinerary/migrations/0033_auto_20200309_1242.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0034_itinerarysettings_target_itinerary_length.py b/app/apps/itinerary/migrations/0034_itinerarysettings_target_itinerary_length.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0035_auto_20200309_1525.py b/app/apps/itinerary/migrations/0035_auto_20200309_1525.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0036_auto_20200309_1528.py b/app/apps/itinerary/migrations/0036_auto_20200309_1528.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0037_auto_20200313_1250.py b/app/apps/itinerary/migrations/0037_auto_20200313_1250.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0038_itinerarysettings_start_case.py b/app/apps/itinerary/migrations/0038_itinerarysettings_start_case.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0039_itineraryitem_checked.py b/app/apps/itinerary/migrations/0039_itineraryitem_checked.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0040_auto_20200414_1423.py b/app/apps/itinerary/migrations/0040_auto_20200414_1423.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0041_auto_20200414_1443.py b/app/apps/itinerary/migrations/0041_auto_20200414_1443.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0042_auto_20200416_1026.py b/app/apps/itinerary/migrations/0042_auto_20200416_1026.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0043_auto_20200429_0932.py b/app/apps/itinerary/migrations/0043_auto_20200429_0932.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0044_auto_20200429_0937.py b/app/apps/itinerary/migrations/0044_auto_20200429_0937.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0045_auto_20200429_0940.py b/app/apps/itinerary/migrations/0045_auto_20200429_0940.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0046_auto_20200706_1142.py b/app/apps/itinerary/migrations/0046_auto_20200706_1142.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0047_auto_20200706_1145.py b/app/apps/itinerary/migrations/0047_auto_20200706_1145.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0048_auto_20200706_1212.py b/app/apps/itinerary/migrations/0048_auto_20200706_1212.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0049_remove_postalcodesettings_itinerary_settings.py b/app/apps/itinerary/migrations/0049_remove_postalcodesettings_itinerary_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0050_auto_20200706_1219.py b/app/apps/itinerary/migrations/0050_auto_20200706_1219.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0051_auto_20200706_1220.py b/app/apps/itinerary/migrations/0051_auto_20200706_1220.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0052_auto_20200706_1424.py b/app/apps/itinerary/migrations/0052_auto_20200706_1424.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0053_itinerarysettings_team_settings.py b/app/apps/itinerary/migrations/0053_itinerarysettings_team_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0054_remove_itineraryitem_checked.py b/app/apps/itinerary/migrations/0054_remove_itineraryitem_checked.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0055_auto_20201028_1231.py b/app/apps/itinerary/migrations/0055_auto_20201028_1231.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0056_itinerarysettings_day_settings.py b/app/apps/itinerary/migrations/0056_itinerarysettings_day_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0057_remove_itinerarysettings_team_settings.py b/app/apps/itinerary/migrations/0057_remove_itinerarysettings_team_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0058_itinerary_external_state_id.py b/app/apps/itinerary/migrations/0058_itinerary_external_state_id.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0058_itinerarysettings_sia_presedence.py b/app/apps/itinerary/migrations/0058_itinerarysettings_sia_presedence.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0059_auto_20201127_1301.py b/app/apps/itinerary/migrations/0059_auto_20201127_1301.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0060_merge_20201130_1109.py b/app/apps/itinerary/migrations/0060_merge_20201130_1109.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0061_auto_20210323_1452.py b/app/apps/itinerary/migrations/0061_auto_20210323_1452.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0062_auto_20210324_1423.py b/app/apps/itinerary/migrations/0062_auto_20210324_1423.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0063_auto_20210330_1205.py b/app/apps/itinerary/migrations/0063_auto_20210330_1205.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0064_alter_itinerarysettings_start_case.py b/app/apps/itinerary/migrations/0064_alter_itinerarysettings_start_case.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0065_auto_20220314_1425.py b/app/apps/itinerary/migrations/0065_auto_20220314_1425.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0066_itinerarysettings_housing_corporation_combiteam.py b/app/apps/itinerary/migrations/0066_itinerarysettings_housing_corporation_combiteam.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0067_auto_20220425_1512.py b/app/apps/itinerary/migrations/0067_auto_20220425_1512.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0068_auto_20220525_2025.py b/app/apps/itinerary/migrations/0068_auto_20220525_2025.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0069_itinerarysettings_districts.py b/app/apps/itinerary/migrations/0069_itinerarysettings_districts.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/0070_add_subjects_tags_daysetting_itinerary.py b/app/apps/itinerary/migrations/0070_add_subjects_tags_daysetting_itinerary.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/migrations/__init__.py b/app/apps/itinerary/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/models.py b/app/apps/itinerary/models.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/router.py b/app/apps/itinerary/router.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/serializers.py b/app/apps/itinerary/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tasks.py b/app/apps/itinerary/tasks.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/__init__.py b/app/apps/itinerary/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_api_itinerary.py b/app/apps/itinerary/tests/tests_api_itinerary.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_api_itinerary_item.py b/app/apps/itinerary/tests/tests_api_itinerary_item.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_api_note.py b/app/apps/itinerary/tests/tests_api_note.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_api_team.py b/app/apps/itinerary/tests/tests_api_team.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_itinerary.py b/app/apps/itinerary/tests/tests_model_itinerary.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_itinerary_item.py b/app/apps/itinerary/tests/tests_model_itinerary_item.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_note.py b/app/apps/itinerary/tests/tests_model_note.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_postal_code_range.py b/app/apps/itinerary/tests/tests_model_postal_code_range.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_settings.py b/app/apps/itinerary/tests/tests_model_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/tests/tests_model_team_member.py b/app/apps/itinerary/tests/tests_model_team_member.py old mode 100644 new mode 100755 diff --git a/app/apps/itinerary/views.py b/app/apps/itinerary/views.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/__init__.py b/app/apps/planner/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/admin.py b/app/apps/planner/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/algorithm/__init__.py b/app/apps/planner/algorithm/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/algorithm/base.py b/app/apps/planner/algorithm/base.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/algorithm/knapsack.py b/app/apps/planner/algorithm/knapsack.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/apps.py b/app/apps/planner/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/const.py b/app/apps/planner/const.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0001_initial.py b/app/apps/planner/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0002_teamsettings_team_type.py b/app/apps/planner/migrations/0002_teamsettings_team_type.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0003_auto_20201007_1226.py b/app/apps/planner/migrations/0003_auto_20201007_1226.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0004_auto_20201019_1102.py b/app/apps/planner/migrations/0004_auto_20201019_1102.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0005_teamsettings_marked_stadia.py b/app/apps/planner/migrations/0005_teamsettings_marked_stadia.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0006_auto_20201028_1233.py b/app/apps/planner/migrations/0006_auto_20201028_1233.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0007_auto_20201102_0831.py b/app/apps/planner/migrations/0007_auto_20201102_0831.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0008_postalcoderange_postalcoderangeset.py b/app/apps/planner/migrations/0008_postalcoderange_postalcoderangeset.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0009_remove_teamsettings_situation_choices.py b/app/apps/planner/migrations/0009_remove_teamsettings_situation_choices.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0010_teamsettings_fraud_predict.py b/app/apps/planner/migrations/0010_teamsettings_fraud_predict.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0011_daysettings.py b/app/apps/planner/migrations/0011_daysettings.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0012_auto_20201117_1222.py b/app/apps/planner/migrations/0012_auto_20201117_1222.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0013_auto_20201117_1556.py b/app/apps/planner/migrations/0013_auto_20201117_1556.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0014_auto_20201118_1006.py b/app/apps/planner/migrations/0014_auto_20201118_1006.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0015_auto_20201125_1947.py b/app/apps/planner/migrations/0015_auto_20201125_1947.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0015_auto_20201126_1404.py b/app/apps/planner/migrations/0015_auto_20201126_1404.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0016_daysettings_sia_presedence.py b/app/apps/planner/migrations/0016_daysettings_sia_presedence.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0017_auto_20201126_1553.py b/app/apps/planner/migrations/0017_auto_20201126_1553.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0018_merge_20201130_1109.py b/app/apps/planner/migrations/0018_merge_20201130_1109.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0019_remove_teamsettings_settings.py b/app/apps/planner/migrations/0019_remove_teamsettings_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0020_auto_20210302_1249.py b/app/apps/planner/migrations/0020_auto_20210302_1249.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0021_auto_20210303_1521.py b/app/apps/planner/migrations/0021_auto_20210303_1521.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0022_teamsettings_use_zaken_backend.py b/app/apps/planner/migrations/0022_teamsettings_use_zaken_backend.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0023_teamsettings_zaken_team_name.py b/app/apps/planner/migrations/0023_teamsettings_zaken_team_name.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0024_auto_20210323_0953.py b/app/apps/planner/migrations/0024_auto_20210323_0953.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0025_auto_20210324_1423.py b/app/apps/planner/migrations/0025_auto_20210324_1423.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0026_auto_20210326_2112.py b/app/apps/planner/migrations/0026_auto_20210326_2112.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0027_auto_20210330_1207.py b/app/apps/planner/migrations/0027_auto_20210330_1207.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0028_daysettings_week_days.py b/app/apps/planner/migrations/0028_daysettings_week_days.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0029_daysettings_max_use_limit.py b/app/apps/planner/migrations/0029_daysettings_max_use_limit.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0030_weights_priority.py b/app/apps/planner/migrations/0030_weights_priority.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0031_auto_20210427_1637.py b/app/apps/planner/migrations/0031_auto_20210427_1637.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0032_teamsettings_fraudprediction_pilot_enabled.py b/app/apps/planner/migrations/0032_teamsettings_fraudprediction_pilot_enabled.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0033_teamsettings_enabled.py b/app/apps/planner/migrations/0033_teamsettings_enabled.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0034_auto_20220314_1425.py b/app/apps/planner/migrations/0034_auto_20220314_1425.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0035_daysettings_housing_corporation_combiteam.py b/app/apps/planner/migrations/0035_daysettings_housing_corporation_combiteam.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0036_auto_20220525_2025.py b/app/apps/planner/migrations/0036_auto_20220525_2025.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0037_remove_teamsettings_use_zaken_backend.py b/app/apps/planner/migrations/0037_remove_teamsettings_use_zaken_backend.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0038_alter_teamsettings_zaken_team_name.py b/app/apps/planner/migrations/0038_alter_teamsettings_zaken_team_name.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0039_rename_zaken_team_name_teamsettings_zaken_team_id.py b/app/apps/planner/migrations/0039_rename_zaken_team_name_teamsettings_zaken_team_id.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0040_daysettings_districts.py b/app/apps/planner/migrations/0040_daysettings_districts.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/0041_add_subjects_tags_daysetting_itinerary.py b/app/apps/planner/migrations/0041_add_subjects_tags_daysetting_itinerary.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/migrations/__init__.py b/app/apps/planner/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/mock.py b/app/apps/planner/mock.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/models.py b/app/apps/planner/models.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/router.py b/app/apps/planner/router.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/serializers.py b/app/apps/planner/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/templates/admin/planner/app_index.html b/app/apps/planner/templates/admin/planner/app_index.html old mode 100644 new mode 100755 diff --git a/app/apps/planner/tests/__init__.py b/app/apps/planner/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/tests/tests_api.py b/app/apps/planner/tests/tests_api.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/tests/tests_utils.py b/app/apps/planner/tests/tests_utils.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/utils.py b/app/apps/planner/utils.py old mode 100644 new mode 100755 diff --git a/app/apps/planner/views.py b/app/apps/planner/views.py old mode 100644 new mode 100755 diff --git a/app/apps/users/__init__.py b/app/apps/users/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/users/admin.py b/app/apps/users/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/users/auth.py b/app/apps/users/auth.py old mode 100644 new mode 100755 diff --git a/app/apps/users/auth_apps.py b/app/apps/users/auth_apps.py old mode 100644 new mode 100755 diff --git a/app/apps/users/auth_dev.py b/app/apps/users/auth_dev.py old mode 100644 new mode 100755 diff --git a/app/apps/users/auth_keycloak.py b/app/apps/users/auth_keycloak.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0001_initial.py b/app/apps/users/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0002_auto_20171227_2246.py b/app/apps/users/migrations/0002_auto_20171227_2246.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0003_auto_20191104_1040.py b/app/apps/users/migrations/0003_auto_20191104_1040.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0004_auto_20191104_1046.py b/app/apps/users/migrations/0004_auto_20191104_1046.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0005_auto_20191111_1111.py b/app/apps/users/migrations/0005_auto_20191111_1111.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0006_team.py b/app/apps/users/migrations/0006_team.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0007_auto_20191119_0859.py b/app/apps/users/migrations/0007_auto_20191119_0859.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0008_auto_20200429_0932.py b/app/apps/users/migrations/0008_auto_20200429_0932.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0009_auto_20200908_0939.py b/app/apps/users/migrations/0009_auto_20200908_0939.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/0010_user_team_settings.py b/app/apps/users/migrations/0010_user_team_settings.py old mode 100644 new mode 100755 diff --git a/app/apps/users/migrations/__init__.py b/app/apps/users/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/users/models.py b/app/apps/users/models.py old mode 100644 new mode 100755 diff --git a/app/apps/users/router.py b/app/apps/users/router.py old mode 100644 new mode 100755 diff --git a/app/apps/users/serializers.py b/app/apps/users/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/users/tests/__init__.py b/app/apps/users/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/users/tests/tests_api.py b/app/apps/users/tests/tests_api.py old mode 100644 new mode 100755 diff --git a/app/apps/users/tests/tests_auth.py b/app/apps/users/tests/tests_auth.py old mode 100644 new mode 100755 diff --git a/app/apps/users/tests/tests_models.py b/app/apps/users/tests/tests_models.py old mode 100644 new mode 100755 diff --git a/app/apps/users/tests/tests_utils.py b/app/apps/users/tests/tests_utils.py old mode 100644 new mode 100755 diff --git a/app/apps/users/user_manager.py b/app/apps/users/user_manager.py old mode 100644 new mode 100755 diff --git a/app/apps/users/utils.py b/app/apps/users/utils.py old mode 100644 new mode 100755 diff --git a/app/apps/users/views.py b/app/apps/users/views.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/__init__.py b/app/apps/visits/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/admin.py b/app/apps/visits/admin.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/apps.py b/app/apps/visits/apps.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0001_initial.py b/app/apps/visits/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0002_visit_cooperation.py b/app/apps/visits/migrations/0002_visit_cooperation.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0003_auto_20200724_1528.py b/app/apps/visits/migrations/0003_auto_20200724_1528.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0004_auto_20200806_1121.py b/app/apps/visits/migrations/0004_auto_20200806_1121.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0005_auto_20200810_0912.py b/app/apps/visits/migrations/0005_auto_20200810_0912.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0006_auto_20200812_1604.py b/app/apps/visits/migrations/0006_auto_20200812_1604.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0007_auto_20200818_0851.py b/app/apps/visits/migrations/0007_auto_20200818_0851.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0008_auto_20201004_2109.py b/app/apps/visits/migrations/0008_auto_20201004_2109.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0008_visitmetadata.py b/app/apps/visits/migrations/0008_visitmetadata.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0009_auto_20201004_2113.py b/app/apps/visits/migrations/0009_auto_20201004_2113.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0009_auto_20201006_1353.py b/app/apps/visits/migrations/0009_auto_20201006_1353.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0010_auto_20201004_2119.py b/app/apps/visits/migrations/0010_auto_20201004_2119.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0010_auto_20201007_0833.py b/app/apps/visits/migrations/0010_auto_20201007_0833.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0011_auto_20201006_1149.py b/app/apps/visits/migrations/0011_auto_20201006_1149.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0012_merge_20201012_1110.py b/app/apps/visits/migrations/0012_merge_20201012_1110.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0013_auto_20201102_0831.py b/app/apps/visits/migrations/0013_auto_20201102_0831.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0014_remove_visit_thread_id.py b/app/apps/visits/migrations/0014_remove_visit_thread_id.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0015_visitteammember.py b/app/apps/visits/migrations/0015_visitteammember.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0016_auto_20210303_1504.py b/app/apps/visits/migrations/0016_auto_20210303_1504.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/0017_visit_completed.py b/app/apps/visits/migrations/0017_visit_completed.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/migrations/__init__.py b/app/apps/visits/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/models.py b/app/apps/visits/models.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/router.py b/app/apps/visits/router.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/serializers.py b/app/apps/visits/serializers.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/tasks.py b/app/apps/visits/tasks.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/tests/__init__.py b/app/apps/visits/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/tests/tests_signals.py b/app/apps/visits/tests/tests_signals.py old mode 100644 new mode 100755 diff --git a/app/apps/visits/views.py b/app/apps/visits/views.py old mode 100644 new mode 100755 diff --git a/app/celery-beat.sh b/app/celery-beat.sh old mode 100644 new mode 100755 diff --git a/app/celery.sh b/app/celery.sh old mode 100644 new mode 100755 diff --git a/app/certificates/adp_rootca.crt b/app/certificates/adp_rootca.crt old mode 100644 new mode 100755 diff --git a/app/deploy/config.ini b/app/deploy/config.ini old mode 100644 new mode 100755 diff --git a/app/requirements.txt b/app/requirements.txt old mode 100644 new mode 100755 diff --git a/app/settings/azure_settings.py b/app/settings/azure_settings.py old mode 100644 new mode 100755 diff --git a/app/settings/celery.py b/app/settings/celery.py old mode 100644 new mode 100755 diff --git a/app/settings/const.py b/app/settings/const.py old mode 100644 new mode 100755 diff --git a/app/settings/settings.py b/app/settings/settings.py index 1af4c60c..2d2a4b29 100755 --- a/app/settings/settings.py +++ b/app/settings/settings.py @@ -266,7 +266,7 @@ "https://acc.iam.amsterdam.nl/auth/realms/datapunt-ad-acc/protocol/openid-connect/logout", ) -LOGGING_LEVEL = os.getenv("LOGGING_LEVEL", "DEBUG") +LOGGING_LEVEL = os.getenv("LOGGING_LEVEL", "WARNING") LOGGING = { "version": 1, "disable_existing_loggers": False, diff --git a/app/utils/__init__.py b/app/utils/__init__.py old mode 100644 new mode 100755 diff --git a/app/utils/date_helpers.py b/app/utils/date_helpers.py old mode 100644 new mode 100755 diff --git a/app/utils/queries_bag_api.py b/app/utils/queries_bag_api.py old mode 100644 new mode 100755 diff --git a/app/utils/queries_brk_api.py b/app/utils/queries_brk_api.py old mode 100644 new mode 100755 diff --git a/app/utils/queries_zaken_api.py b/app/utils/queries_zaken_api.py old mode 100644 new mode 100755 diff --git a/app/utils/tests/__init__.py b/app/utils/tests/__init__.py old mode 100644 new mode 100755 diff --git a/app/utils/tests/tests_date_helpers.py b/app/utils/tests/tests_date_helpers.py old mode 100644 new mode 100755 diff --git a/app/utils/tests/tests_queries_bag_api.py b/app/utils/tests/tests_queries_bag_api.py old mode 100644 new mode 100755 diff --git a/app/utils/unittest_helpers.py b/app/utils/unittest_helpers.py old mode 100644 new mode 100755 From 603de76bd86fd8b9451e02f615842ce57e69824a Mon Sep 17 00:00:00 2001 From: Nino Date: Wed, 3 Jul 2024 11:31:47 +0200 Subject: [PATCH 2/2] remove tests --- app/apps/accesslogs/tests/__init__.py | 0 app/apps/accesslogs/tests/tests_middleware.py | 92 ------------------- app/apps/accesslogs/tests/tests_models.py | 91 ------------------ 3 files changed, 183 deletions(-) delete mode 100755 app/apps/accesslogs/tests/__init__.py delete mode 100755 app/apps/accesslogs/tests/tests_middleware.py delete mode 100755 app/apps/accesslogs/tests/tests_models.py diff --git a/app/apps/accesslogs/tests/__init__.py b/app/apps/accesslogs/tests/__init__.py deleted file mode 100755 index e69de29b..00000000 diff --git a/app/apps/accesslogs/tests/tests_middleware.py b/app/apps/accesslogs/tests/tests_middleware.py deleted file mode 100755 index 099e816b..00000000 --- a/app/apps/accesslogs/tests/tests_middleware.py +++ /dev/null @@ -1,92 +0,0 @@ -""" -Tests for accesslogs middleware -""" - -from unittest.mock import Mock - -from apps.accesslogs.middleware import LoggingMiddleware -from apps.accesslogs.models import LogEntry -from django.contrib.auth.models import AnonymousUser -from django.test import TestCase - -FOO_URI = "FOO_URI" -FOO_META = "FOO_META" -FOO_REQUEST_METHOD = "GET" -FOO_USER_EMAIL = "foo@foo.com" -FOO_USER_ID = "FOO_USER_ID" - -FOO_RESPONSE = "FOO Response" -FOO_RESPONSE_STATUS_CODE = "200" - - -def get_response_mock(request): - response = Mock() - response.response = FOO_RESPONSE - response.status_code = FOO_RESPONSE_STATUS_CODE - return response - - -REQUEST = Mock() -REQUEST.path = FOO_URI -REQUEST.META = FOO_META -REQUEST.method = FOO_REQUEST_METHOD -REQUEST.user = AnonymousUser() - - -class AccessLogsMiddlewareTest(TestCase): - def test_returns_unaltered_response(self): - """ - The accesslogs middleware passes and doesn't alter a response - """ - logging_middleware = LoggingMiddleware(get_response_mock) - response = logging_middleware(REQUEST) - initial_response = get_response_mock("") - - self.assertEqual(response.response, initial_response.response) - self.assertEqual(response.status_code, initial_response.status_code) - - def test_anonymous_log_creation(self): - """ - The accesslogs middleware creates a LogEntry object for an anonymous request - """ - self.assertEqual(LogEntry.objects.count(), 0) - - logging_middleware = LoggingMiddleware(get_response_mock) - logging_middleware(REQUEST) - - self.assertEqual(LogEntry.objects.count(), 1) - - def test_user_log_creation(self): - """ - The accesslogs middleware creates a log for an authenticated user request - """ - self.assertEqual(LogEntry.objects.count(), 0) - - USER_REQUEST = Mock() - USER_REQUEST.path = FOO_URI - USER_REQUEST.META = FOO_META - USER_REQUEST.method = FOO_REQUEST_METHOD - USER_REQUEST.user = Mock() - USER_REQUEST.user.email = FOO_USER_EMAIL - USER_REQUEST.user.id = FOO_USER_ID - - logging_middleware = LoggingMiddleware(get_response_mock) - logging_middleware(USER_REQUEST) - - log_entry = LogEntry.objects.all()[0] - log_entry = LogEntry.objects.get( - request_user_email=FOO_USER_EMAIL, request_user_id=FOO_USER_ID - ) - self.assertIsNotNone(log_entry) - - def test_path_exemptions(self): - """ - No access logs should be created if a request path is exempt - """ - self.assertEqual(LogEntry.objects.count(), 0) - - with self.settings(ACCESS_LOG_EXEMPTIONS=(FOO_URI,)): - logging_middleware = LoggingMiddleware(get_response_mock) - logging_middleware(REQUEST) - - self.assertEqual(LogEntry.objects.count(), 0) diff --git a/app/apps/accesslogs/tests/tests_models.py b/app/apps/accesslogs/tests/tests_models.py deleted file mode 100755 index ff5c0b50..00000000 --- a/app/apps/accesslogs/tests/tests_models.py +++ /dev/null @@ -1,91 +0,0 @@ -""" -Tests for accesslogs models -""" - -from apps.accesslogs.models import LogEntry -from django.db.utils import DataError -from django.test import TestCase - -FOO_URI = "FOO_URI" -FOO_META = "FOO_META" -FOO_REQUEST_METHOD = "GET" -FOO_REQUEST_STATUS_CODE = "200" -FOO_USER_EMAIL = "foo@foo.com" -FOO_USER_ID = "FOO_USER_ID" - - -class AccessLogsModelTest(TestCase): - def test_create_anonymous_log(self): - """ - Create an anonymous log entry - """ - self.assertEqual(LogEntry.objects.count(), 0) - - LogEntry.objects.create( - request_uri=FOO_URI, - request_meta=FOO_META, - request_method=FOO_REQUEST_METHOD, - response_status_code=FOO_REQUEST_STATUS_CODE, - ) - - self.assertEqual(LogEntry.objects.count(), 1) - - def test_create_user_log(self): - """ - Create a log entry that is coupled to a user - """ - self.assertEqual(LogEntry.objects.count(), 0) - - LogEntry.objects.create( - request_user_email=FOO_USER_EMAIL, - request_user_id=FOO_USER_ID, - request_uri=FOO_URI, - request_meta=FOO_META, - request_method=FOO_REQUEST_METHOD, - response_status_code=FOO_REQUEST_STATUS_CODE, - ) - - self.assertEqual(LogEntry.objects.count(), 1) - - def test_no_edit_logs(self): - """ - A log cannot be edited once it's saved - """ - - log_entry = LogEntry.objects.create( - request_uri=FOO_URI, - request_meta=FOO_META, - request_method=FOO_REQUEST_METHOD, - response_status_code=FOO_REQUEST_STATUS_CODE, - ) - - log_entry.request_meta = "EDIT" - - with self.assertRaises(Exception): - log_entry.save() - - def test_status_code_length(self): - """ - A log status code cannot be longer than 3 characters - """ - with self.assertRaises(DataError): - LogEntry.objects.create( - request_uri=FOO_URI, - request_meta=FOO_META, - request_method=FOO_REQUEST_METHOD, - response_status_code="LONG_STATUS_CODE", - ) - - def test_date_created(self): - """ - The date_created should be added automatically - """ - - log_entry = LogEntry.objects.create( - request_uri=FOO_URI, - request_meta=FOO_META, - request_method=FOO_REQUEST_METHOD, - response_status_code=FOO_REQUEST_STATUS_CODE, - ) - - self.assertIsNotNone(log_entry.created_at)