プロジェクト

全般

プロフィール

Vote #80917

完了

Include updated_on and passwd_changed_on columns in users API response

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
152
issue_org_id:
33592
author_id:
332
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Users CSV has updated_on and passwd_changed_on column since r19740. I think it is inconsistent that the values are not included in API response.


journals

--------------------------------------------------------------------------------
I've attached a patch to add these fields to user API, written by "@Takenori TAKAKI":https://www.redmine.org/users/145727 and me. Tests for these changes will be posted later.
--------------------------------------------------------------------------------
I've attached a patch to ensure these fields are correctly added.

But I'm afraid that these assertions might be too detailed. For now @Redmine::ApiTest::UsersTest@ doesn't have tests for individual fields except for id and some optional fields.

I wonder if we should add assertions for other fields too, or just drop this test patch to keep test code simple.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,33347,Include updated_on and passwd_changed_on columns when exporting users to CSV
relates,Closed,33787,Redmine::ApiTest::UsersTest fail if config.time_zone is set

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0