From cece6b4723bd0d725ae687a6a2a6a09b5a790ab1 Mon Sep 17 00:00:00 2001 From: Max Tepkeev Date: Sat, 2 Mar 2024 20:12:33 +0300 Subject: [PATCH] user all operation returns all users (issue #327) --- CHANGELOG.rst | 6 ++++++ redminelib/resources/standard.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c824979..9afbe57 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -20,6 +20,12 @@ Changelog - ``PerformanceWarning`` will be issued when Python-Redmine does some unnecessary redirects before the actual request is made +**Changes**: + +- *Backwards Incompatible:* User ``all`` operation now really returns all users, i.e. not only active, but locked, + registered and anonymous as well instead of only returning just active users in previous versions due to the + respect to Redmine's standard behaviour (`Issue #327 `__) + **Bugfixes**: - Tests were failing on Windows OS diff --git a/redminelib/resources/standard.py b/redminelib/resources/standard.py index 02c67b3..07baaa9 100644 --- a/redminelib/resources/standard.py +++ b/redminelib/resources/standard.py @@ -409,7 +409,7 @@ class User(BaseResource): container_create = 'user' container_update = 'user' query_all_export = '/users.{format}' - query_all = '/users.json' + query_all = '/users.json?status=' query_one = '/users/{}.json' query_filter = '/users.json' query_create = '/users.json'