Bug #6161

Value of Smart Variables doesn't show up on Foreman UI when it sets using API call

Added by Priyanka Choudhary almost 4 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Tomer Brisker
Category:API
Target version:Sprint 28
Difficulty: Bugzilla link:
Found in release:1.4.2 Pull request:https://github.com/theforeman/foreman/pull/1697
Story points-
Velocity based estimate-
Release1.6.0Release relationshipAuto

Description

Tried to use foreman api to set the values for smart variables in a hostgroup. The api did work and responded correctly.

This is the curl i used to set the variables in hostgroup:

curl -H 'content-type: application/json' -H 'Accept: application/json' -k -u '$USER:$PASS' $FOREMAN_URL/api/v2/smart_class_parameters/SMART_VARIABLE/override_values -X POST -d '{"override_value":{"value":"VALUE","match":"hostgroup=HOSTGROUP"}}'

Output : {"id":19858,"match":"hostgroup=HOSTGROUP","value":"VALUE","created_at":"2014-06-11T11:10:42Z","updated_at":"2014-06-11T11:10:42Z"}

Problem Statement:
The values of the smart variables doesn't show up on the Foreman UI

Associated revisions

Revision 73eb580f
Added by Tomer Brisker over 3 years ago

Fixes #6161 - Mark override on adding smart variable override via api

Revision 4cbad1a1
Added by Tomer Brisker over 3 years ago

Fixes #6161 - Mark override on adding smart variable override via api

(cherry picked from commit 73eb580f9e910736ec797b17ee0cead0dcb12856)

Revision 40f9c481
Added by Tomer Brisker over 3 years ago

refs #6161 - Add test to make sure override is marked on create

History

#1 Updated by Joseph Magen almost 4 years ago

  • Status changed from New to Assigned
  • Target version set to Sprint 24

The override value is created, but it doesn't show up in the UI if it's the first one created.
It's a Web UI issue.

#2 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 24 to Sprint 25

#3 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 25 to Sprint 26

#4 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 26 to Sprint 27

#5 Updated by Ori Rabin over 3 years ago

  • Assigned To set to Ori Rabin

#6 Updated by Tomer Brisker over 3 years ago

  • Assigned To changed from Ori Rabin to Tomer Brisker

#7 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1697 added

#8 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 27 to Sprint 28

#9 Updated by Dominic Cleal over 3 years ago

  • Release set to 1.6.0

#10 Updated by Anonymous over 3 years ago

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

#11 Updated by Daniel Lobato Garcia over 3 years ago

  • Release changed from 1.6.0 to 1.7.0

#12 Updated by Dominic Cleal over 3 years ago

  • Release changed from 1.7.0 to 1.6.0

1.6.0 is correct.

Also available in: Atom PDF