Vote #80138
完了Support "active" attribute in Enumerations REST API
0%
説明
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.
--------------------------------------------------------------------------------