]> source.dussan.org Git - redmine.git/commit
API compatibility to legacy status and name query params (#39181, #37674)
authorGo MAEDA <maeda@farend.jp>
Sun, 15 Oct 2023 01:42:07 +0000 (01:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 15 Oct 2023 01:42:07 +0000 (01:42 +0000)
commitff93ee3cfaf4aae92e826c8e879e1bb648c0dddd
treeb1b723612da5549ff0e2e2380f87ed340b839e08
parent26c392d3c368af689df8c0c95863e3e0298d462a
API compatibility to legacy status and name query params (#39181, #37674)

- adds 'name' filter that mimics the old behavior of matching on email, login, first- or lastname
- maps the 'status' url parameter to the status_id filter, and the 'name' url parameter to the new name filter

Patch by Jens Krämer.

git-svn-id: https://svn.redmine.org/redmine/trunk@22343 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/controllers/users_controller.rb
app/models/user_query.rb
config/locales/en.yml
test/integration/api_test/users_test.rb
test/unit/user_query_test.rb