Project

General

Profile

Bug #9741

Updated by Janos Mattyasovszky over 7 years ago

When creating a Group over the API with an empty node list, you cannot modify that group from the GUI, as the @[+]@ icon is missing... 

 API Call: 
 <pre> 
 # curl -s -X GET -H "X-API-Token: $APIKEY" -X PUT https://${URL}/rudder/api/latest/groups \ 
 > -d "category=5f2e3903-d3fe-40a4-8561-86017138e8ae" \ 
 > -d 'displayName=api test new group name' \ 
 > -d 'description=description of the new group' \ 
 > -d 'query={ "select" : "node", "composition": "Or", "where": [] }' \ 
 > -d 'id=8ecda055-094e-4b04-85ed-5c6235268ec7'    | jq 

 { 
   "action": "createGroup", 
   "id": "8ecda055-094e-4b04-85ed-5c6235268ec7", 
   "result": "success", 
   "data": { 
     "groups": [ 
       { 
         "id": "8ecda055-094e-4b04-85ed-5c6235268ec7", 
         "displayName": "api test new group name", 
         "description": "description of the new group", 
         "query": { 
           "select": "node", 
           "composition": "Or", 
           "where": [] 
         }, 
         "nodeIds": [], 
         "dynamic": true, 
         "enabled": false, 
         "isEnabled": false, 
         "isDynamic": true 
       } 
     ] 
   } 
 } 
 </pre> 
 => This worked. 

 However, the GUI looked like this: 
 !GuiMissingPlusFromGroups.png! !2016-11-28 12_24_25-Rudder - Node Groups Management.png! 

Back