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 #1

Updated by Janos Mattyasovszky over 7 years ago

  • Description updated (diff)
Actions #2

Updated by François ARMAND over 7 years ago

  • Translation missing: en.field_tag_list set to Next minor release
Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Assignee set to Vincent MEMBRÉ
  • Target version set to 3.1.17
Actions #4

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from New to In progress
Actions #5

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1395
Actions #6

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #7

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.1, 3.1.16 and 3.2.10 which were released today.

Actions

Also available in: Atom PDF