Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2543

Resolve elasticsearch date field scripting warning

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0-alpha2
    • Component/s: backend
    • Labels:
      None

      Description

      Context:
      Some of our scripts trigger this warning:

      14:35:54.714 [I/O dispatcher 7] WARN  org.elasticsearch.client.RestClient - request [POST http://localhost:9200/optimize-process-instance/process-instance/_search?typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&search_type=query_then_fetch&batched_reduce_size=512] returned 1 warnings: [299 Elasticsearch-6.2.0-37cdac1 "getDate is no longer necessary on date fields as the value is now a date." "Fri, 02 Aug 2019 12:35:54 GMT"]
      

      AT:

      • refactor the relevant painless scripts and use the `.value` accessor instead of `.date` on date fields

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            sebastian.bathke Sebastian Bathke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: