Bug #22450
closedAPI results for GET job_templates do not include 'updated_at' value
Description
Description of problem:
The API call to list provisioning_templates and partition tables returns a list of templates and includes the time-stamp that the template was last updated.
The same call for job_templates does not contain that information.
API results should be consistent.
Version-Release number of selected component (if applicable):
6.2.13
How reproducible:
Always
Steps to Reproduce:
1. curl -X GET -s -u admin:changeme -k https://satellite.example.com/api/v2/job_templates // Does not include updated_at timestamp
2.curl -X GET -s -u admin:changeme -k https://satellite.example.com/api/v2/provisioning_templates // Includes updated_at timestamp
Actual results:
API results are not consistent. No updated_at field present
Expected results:
API Should be consistent, hence created_at, updated_at needs to be added
Additional info:
Add these attributes (created_at, updated_at) to the file views/api/v2/job_templates/base.json.rabl in foreman_remote_execution github repository
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/308 added
Updated by Amit Karsale about 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|40931e5d34bf885f8014f4ef5e50ab21639730f2.
Updated by The Foreman Bot about 6 years ago
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/336 added