Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18357

dashboard.update() method resets widget.view_mode to default value if it does not contain in the request

    XMLWordPrintable

    Details

    • Team:
      Team D
    • Sprint:
      Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. create dashboard with widget hidden header (view_mode = 1)
        {
            "name": "dashboard",
            "widgets": [{"type": "clock", "view_mode": 1}]
        } 
        "dashboardids": [
            "12"
        ]
      2. get this dashboard
        {
            "output": ["dashboardid", "name"],
            "selectWidgets": ["widgetid", "type", "view_mode"],
            "dashboardids": 12
        }
        {
            "dashboardid": "12",
            "name": "dashboard",
            "widgets": [{
                "widgetid": "17",
                "type": "clock",
                "view_mode": "1"
            }]
        }
      3. update this dashboard with minimum specified fields
        {
            "dashboardid": 12,
            "widgets": [{"widgetid": 17}]
        }
        "dashboardids": [
            "12"
        ]
      4. get this dashboard again
        {
            "output": ["dashboardid", "name"],
            "selectWidgets": ["widgetid", "type", "view_mode"],
            "dashboardids": 12
        }
        {
            "dashboardid": "12",
            "name": "dashboard",
            "widgets": [{
                "widgetid": "17",
                "type": "clock",
                "view_mode": "0"
            }]
        }

      Result:
      "view_mode" field resets to default value
      Expected:
      this field should be unchanged

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gcalenko Gregory Chalenko
              Reporter:
              sasha Alexander Vladishev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: