Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4529

optimize script evaluator to avoid creation of multiple bindings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • plugins
    • None

    Description

      Each call to RangerRequestScriptEvaluator.evaluateScript() creates a binding. In case of row-filters having multiple expressions, as seen in following example, evaluateScript() is called as many times - resulting creation of multiple bundings for a given request. This can be avoided by moving creation of bindings to  {{RangerRequestScriptEvaluator }}constructor.
       
       

      state == '${{USER.state}}' AND group IN (${{GET_UG_NAMES_Q()}})  

       
       

      Attachments

        1. RANGER-4529.patch
          106 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: