プロジェクト

全般

プロフィール

Vote #80138

完了

Support "active" attribute in Enumerations REST API

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

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

0%

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

説明

h3. Expected behaviour

When doing a HTTP request to @/enumerations/time_entry_activities.json@ it should only return activities marked as "active"

h3. Observed behaviour

  • All activities are returned
  • Additionally, the returned values don't contain the values for the "active" field, so filtering on the client-side after fetching is not possible either.

h3. Additional notes

  • This was observed on Redmine 3.3.2
  • I also came across #8573 which notes something similar, but not for the API.

journals

Michel Albert wrote:
> h3. Expected behaviour
>
> When doing a HTTP request to @/enumerations/time_entry_activities.json@ it should only return activities marked as "active"

I think it is better to add "active" field to the response instead of omitting inactive enumerations. What do you think?

--------------------------------------------------------------------------------
Yes. That would work perfectly as well.
--------------------------------------------------------------------------------
Here is a patch to add "active" attribute to Enumerations API.
--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0