https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-06-13T06:58:38ZRedmineRedmine - Feature #31559: Support "active" attribute in Enumerations REST APIhttps://www.redmine.org/issues/31559?journal_id=923382019-06-13T06:58:38ZGo MAEDA
<ul></ul><p>Michel Albert wrote:</p>
<blockquote>
<a name="Expected-behaviour"></a>
<h3 >Expected behaviour<a href="#Expected-behaviour" class="wiki-anchor">¶</a></h3>
<p>When doing a HTTP request to <code>/enumerations/time_entry_activities.json</code> it should only return activities marked as "active"</p>
</blockquote>
<p>I think it is better to add "active" field to the response instead of omitting inactive enumerations. What do you think?</p> Redmine - Feature #31559: Support "active" attribute in Enumerations REST APIhttps://www.redmine.org/issues/31559?journal_id=923502019-06-13T11:47:26ZMichel Albert
<ul></ul><p>Yes. That would work perfectly as well.</p> Redmine - Feature #31559: Support "active" attribute in Enumerations REST APIhttps://www.redmine.org/issues/31559?journal_id=926562019-06-29T09:15:49ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/23424">31559.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/23424/31559.patch">31559.patch</a> added</li><li><strong>Tracker</strong> changed from <i>Defect</i> to <i>Feature</i></li><li><strong>Subject</strong> changed from <i>The API on enumerations returns inactive entries as well</i> to <i> Support "active" attribute in Enumerations REST API</i></li><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>Here is a patch to add "active" attribute to Enumerations API.</p> Redmine - Feature #31559: Support "active" attribute in Enumerations REST APIhttps://www.redmine.org/issues/31559?journal_id=926732019-06-30T05:58:05ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch.</p>