Closed aaxelb closed 4 years ago
jira ticket: ENG-2213
deprecate
pls_hide
DeprecationMiddleware
pls_hide=True
HIDE_DEPRECATED_VIEWS
410 Gone
fully deprecated (hidden when HIDE_DEPRECATED_VIEWS is set):
/api/v2/<share-object-type>
/api/v2/sourceregistrations
"soft" deprecated (logged but not hidden):
/api/v2/schema/<share-object-type>
/api/v1/share/data
(note: while the URLs are listed above for clarity, it's the views/viewsets themselves that are marked deprecated)
jira ticket: ENG-2213
add some basic deprecation infrastructure
deprecate
decorator, meant for django views and DRF viewsetspls_hide
(see below)DeprecationMiddleware
to actually do the deprecationpls_hide=True
and the settingHIDE_DEPRECATED_VIEWS
, respond410 Gone
instead of processing the view at alldeprecate some views
fully deprecated (hidden when
HIDE_DEPRECATED_VIEWS
is set):/api/v2/<share-object-type>
/api/v2/sourceregistrations
"soft" deprecated (logged but not hidden):
/api/v2/schema/<share-object-type>
/api/v1/share/data
(note: while the URLs are listed above for clarity, it's the views/viewsets themselves that are marked deprecated)
todo