From 386a04587846832de13af394625d5caf862b1204 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 12 Sep 2024 18:22:26 +0200 Subject: [PATCH] Adding deprecation flag --- .DS_Store | Bin 6148 -> 8196 bytes README.rst | 7 +++++++ config/urls.py | 2 +- scheduler/tests/test_views.py | 1 + setup.py | 2 +- 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index 50158e399b3808f98aed6f76925310343be0d5ec..9daa3b02d6e7d26e94e8463b16e8f753dea9d492 100644 GIT binary patch literal 8196 zcmeHMOKuZE5PfYs!4V*ZT_iSh0V1-@ZV1kT9U_a!s|3dr+lnV+oX<8R4uHfhKyVIj zkS*6>39mm!Q}c18L_$QVwz_Mk>UH<)H=kCG0hpbO;TEs~pv!9Q`eQaV#l~%|lveOW zw1)jL9c}F$W$CPfREH{{3aA3AfGVI0{4WY{&$gx8uGVtiLx-_?W^!}#v>M*$ZHn|tfK!-V9+gqcmq zP>h?M<3|n-6ML(zDxeBf6^Q8SU=t%ua4z!q*0YbrSeo^EgK0LPkB?g3|ML3BD;Xay zjnBq~Zv*W^cEzK`ycpvG12H>Ro>mbJ97^M)SuK+iO7QV7n^hbk!zqrb#YnJepZ_Eq z5tm$W_08*1!W5a*V+4=RORLKhe4ri^vN^#V31*n`EWw%Jgg3vIVI{vj4g4C%E~$1S zUhp<=J?}Z*lkEgUwsUHE;Lj!R{%^;-0o%yC5nt4}u+9d&|6`;^QRo*m$f z>W_ImbuR9)TBKOR5~Sc~X7)a8;Sx!a(du%zuDtly>M kw159FYaj?0!jIjLk4*?>Nk$b%E|L&4#^8gh119f>dY5)KL delta 437 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{Mvv5sJ6q~50$SAQfU^g?P#AF@;sTc`AkPL$! zLpnnyLrHGFi%U{YeiBI6%vVvTzt|mfM3qm0%P(ZYlrP9I3{K9^Edc5PnmV~jz=egO z_NU$C4+0{S?+Ng*wMIp+eg@(?sxn9~1gc?UNM^`q$YV$Y+MbSV`|Gt}m0^N%Y*1#E zpga>p!{ph5+Dt0@CeIO+5kXeJ;WbG8F-NEb!kNet0x0fd*uXHkK}cqDfe;^)o*$5@ z!KN!619IOwAuSm5o{%;Z!-UD!BC1U3DwBIeBqmphaIpnugVlA3sKA(8fC?BMOiYYf s%+A3f$P5ku1_5p$?FtI{jfvlxC-cjAg5rUJ2@)ruXkyqL&ohS^08SNmDgXcg diff --git a/README.rst b/README.rst index adfe29e..e8dc204 100644 --- a/README.rst +++ b/README.rst @@ -55,3 +55,10 @@ See our `ways of working`_ for a guide on how to contribute to ``reminder-schedu .. _black: https://github.com/ambv/black .. _ways of working: ./docs/ways-of-working.md +------------ +Deprecation +------------ + +The following endpoints of ``reminder-scheduler`` will be deprecated: +- scheduler/ +- '' diff --git a/config/urls.py b/config/urls.py index 8c29e09..97282b1 100644 --- a/config/urls.py +++ b/config/urls.py @@ -4,7 +4,7 @@ urlpatterns = [ path("admin/", admin.site.urls), path("", include("scheduler.urls")), # To be removed - path("scheduler/", include("scheduler.urls")), + path("scheduler/", include("scheduler.urls")), # To be removed path("quickreplies/", include("quickreplies.urls")), path("rapidpro_api/", include("rapidpro_api.urls")), ] diff --git a/scheduler/tests/test_views.py b/scheduler/tests/test_views.py index 8fba1c9..07b01c6 100644 --- a/scheduler/tests/test_views.py +++ b/scheduler/tests/test_views.py @@ -24,6 +24,7 @@ def test_login_required_to_get_timezones(self): self.assertEqual(response.status_code, 401) + def test_unexpected_data_format_returns_400(self): self.client.force_authenticate(user=self.admin_user) response = self.client.post( diff --git a/setup.py b/setup.py index 5a34f3f..a2620d0 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ "django-environ>=0.4.5,<0.5", "djangorestframework", "dj-database-url", - "psycopg2==2.8.4", + "psycopg2-binary", "sentry-sdk==1.14.0", "redis==4.4.4", "requests>=2.24.0",