ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • 8.0.0rc1 (master)
    • Affects Version/s: 8.0.0beta2
    • Component/s: Frontend (F)
    • None

      This fix is required to display inline validation errors correctly for ZBXNEXT-10353 and ZBXNEXT-10249. Current version doesn't have such case exactly because we either replace values to prevent invalid input (Graph forms) or field is not editable (Media and item test forms).

      Steps to reproduce:

      1. Open media type test for Webhook type
      2. Inspect DOM and alter: parameters[0][name] value to empty string
      3. In DOM alter type from 4 to 5.
      4. Observe: there will be console error about missing field, but that is expected in this case
      5. Then change type back to 4.

      Result:

      We again have console error, but this time it is cause validated fields are collected incorrectly. Field to validate should be parameters/0/name. Console error: Validation error for missing field "/parameters/name": An array is expected.

      Expected:
      Changing type should collect validations correctly, that is parameters/*/name in case name field validation depends on type field.

      Actual usage will be in following cases:

      • Item edit form (Telemetry query): when changing Category or Metric points, user should see inline validation error in case Columns or Aggregated columns uses not supported configuration
      • CEP edit form: when changing Time window, it affects for Operations what is allowed for Execute when, Operation and Property. 

            Assignee:
            Ginta Berzina
            Reporter:
            Ginta Berzina
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 16h
                16h
                Remaining:
                Time Spent - 15h 25m Remaining Estimate - 35m
                35m
                Logged:
                Time Spent - 15h 25m Remaining Estimate - 35m
                15h 25m