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

Multiple problems in host edit form macros tab

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 6.0.5rc1
    • None
    • Frontend (F)
    • None

    Description

      Scenario #1 - steps to reproduce:

      1. Create global secret text macro;
      2. Navigate to the Host edit form;
      3. Switch to "Inherited and host macros";
      4. Press "Change" for global secret macro;
      5. Observe the "Description" field became editable and icon for value became enabled;
      6. Press the eye icon and change to "Text";
      7. Observe the "Value" field is now editable;
      8. Press "Revert changes" icon.

      Result:  Observe the icon changed to "Vault secret".

      Expected: Icon should be reverted to "Secret macro".

       

      Scenario #2 - steps to reproduce:

      1. Create global secret text macro;
      2. Navigate to the Host edit form;
      3. Switch to "Inherited and host macros";
      4. Press "Change" for global secret macro;
      5. Press "Remove" button.

      Result:  Observe that changes was reverted but input field has changed it's style - it's not grayed anymore.

      Expected: Should be equally formatted as before pressing Change/Remove.

       

      Scenario #3 - steps to reproduce:

      1. Create global text macro;
      2. Navigate to the Host edit form;
      3. Switch to "Inherited and host macros";
      4. Press "Change" for global macro;
      5. Change its type.

      Result: Type was changed but there is no "Revert changes" button.

      Expected: Not sure in what cases it should appear. In code I see that "Revert change" is shown only for Secret text macros and that is done only server side. Client side script only trying to show/hide it when necessary. So, since this macro was text macro during server-side rendering, there is no "revert change" printed and it cannot be made visible when necessary. 

       

      Scenario #4 - steps to reproduce:

      1. Create global secret text macro;
      2. Navigate to the Host edit form;
      3. Switch to "Inherited and host macros";
      4. Move mouse over the inactive value type button.

      Result:  observe the bottom border of the icon disappears when mouse is over the icon.

      Expected: since button is inactive, its style shouldn't change.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            Miks.Kronkalns Miks Kronkalns
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: