Skip to content

Commit

Permalink
Merge pull request #24 from praekeltfoundation/deprecation_scheduler
Browse files Browse the repository at this point in the history
Adding deprecation flag
  • Loading branch information
MatthewWeppenaar authored Sep 16, 2024
2 parents c0c6794 + 386a045 commit d2b7d93
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
- ''
2 changes: 1 addition & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
]
1 change: 1 addition & 0 deletions scheduler/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d2b7d93

Please sign in to comment.