DEV: Let's always give a drop_from param to deprecate (#14901)

So that we know when deprecations can be removed in the future.
This commit is contained in:
Daniel Waterworth
2021-11-12 08:52:59 -06:00
committed by GitHub
parent 32a174d883
commit e7c0bbb9c0
15 changed files with 29 additions and 22 deletions

View File

@ -247,7 +247,7 @@ class GroupsController < ApplicationController
dir = (params[:asc] && params[:asc].present?) ? 'ASC' : 'DESC'
if params[:desc]
Discourse.deprecate(":desc is deprecated please use :asc instead", output_in_test: true)
Discourse.deprecate(":desc is deprecated please use :asc instead", output_in_test: true, drop_from: '2.9.0')
dir = (params[:desc] && params[:desc].present?) ? 'DESC' : 'ASC'
end
order = ""