Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1628

Automatically remove quotes when removing unwanted spaces from functions in variable assignments

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.5.3, 2.6.0
    • 2.5.6, 2.6.3
    • None
    • None

    Description

      Current Situation

      • When a user assigns a job an environment variable or an argument with the following function as a value:
        jobResourceVariable ('apJS01', 'var1')

        then the function is quoted in JSON:

        "env": {
            "my_var": "\"jobResourceVariable ('apJS01', 'var1')\""
        }
        

        As jobResourceVariable() is a function and due to the trailing space it is considered a string which causes quotes to be applied to the assignment of the function. When the user selects "Edit JSON" and removes the unwanted space from the function, the unwanted quotes aren't removed automatically from the function.

      Desired Behavior

      • The quotes should be removed automatically after removing the unwanted space from a function that was used in an assignment to a variable and that holds unwanted spaces:
        "env": {
            "my_var": "jobResourceVariable('apJS01', 'var1') "
        }
        

      Workaround

      • Users can select the "Edit JSON" action menu item from the tree panel in the Configuration view to remove unwanted spaces from the function.
      • Submitting the changes will allow us to use the assigned function as desired and the unwanted quotes should be removed automatically from the JSON.

      Attachments

        Issue Links

          Activity

            People

              ztsa0019 Sourabh Agrawal
              Pramokshi-Narawariya Pramokshi Narawariya
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: