Project

General

Profile

Actions

Bug #9741

closed

Creating an empty group with no search criteria messes up GUI

Added by Janos Mattyasovszky over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

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:

# 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
      }
    ]
  }
}

=> This worked.

However, the GUI looked like this:
Missing [+] inGUI


Files

GuiMissingPlusFromGroups.png (39.3 KB) GuiMissingPlusFromGroups.png Missing [+] inGUI Janos Mattyasovszky, 2016-11-28 12:29
Actions

Also available in: Atom PDF