Project

General

Profile

Bug #9741

Creating an empty group with no search criteria messes up GUI

Added by Janos Mattyasovszky about 1 year ago. Updated 12 months ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
Tags: Next minor release

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

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

Associated revisions

Revision 1c76bafd
Added by Vincent MEMBRÉ about 1 year ago

Fixes #9741: Creating an empty group with no search criteria messes up GUI

History

#1 Updated by Janos Mattyasovszky about 1 year ago

  • Description updated (diff)

#2 Updated by François ARMAND about 1 year ago

  • Tags set to Next minor release

#3 Updated by Vincent MEMBRÉ about 1 year ago

  • Assignee set to Vincent MEMBRÉ
  • Target version set to 3.1.17

#4 Updated by Vincent MEMBRÉ about 1 year ago

  • Status changed from New to In progress

#5 Updated by Vincent MEMBRÉ about 1 year 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

#6 Updated by Vincent MEMBRÉ about 1 year ago

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

#7 Updated by Vincent MEMBRÉ 12 months 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.

Also available in: Atom PDF