Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5734

Introduce commonly used built-in functions to JavaScript preprocessing and webhooks

    XMLWordPrintable

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 61 (Feb 2020), Sprint 62 (Mar 2020), Sprint 63 (Apr 2020)
    • Story Points:
      2

      Description

      Duktape library is used for Javascript preprocessing / webhooks, but Duktape object is removed (not available from JS). This removes built-in support of base64 encoding / decoding as well as the support of hex encoding / decoding (https://duktape.org/guide.html#builtin-duktape-enc).

      I propose to introduce support of some commonly used functions like:

      • base64encode
      • base64decode
      • md5
      • ...

      While it is possible to implement such functions in JS it is a bad approach requiring to copy-paste the same code chunk to preprocessing steps and webhook integrations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              martins-v Martins Valkovskis
              Reporter:
              vjaceslavs Vjaceslavs Bogdanovs
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: