Project

General

Profile

Actions

Bug #22450

closed

API results for GET job_templates do not include 'updated_at' value

Added by Amit Karsale about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Target version:
-
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by Amit Karsale about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/336 added
Actions

Also available in: Atom PDF