HPCC-9401 Optimize query time WsEcl

The dependency on the xml schema from the query workunit to process
incoming queries greatly slows down WsECL.

Past optimizations have removed this dependency for some query paths,
but not others.  This removes the dependency for the rest of the query
paths.

Also add a toJSON function to jptree.

Also fix WsECL form, xsd, and other processing of child sets.

Also add a new type of REST input parameter.  Adding a $ to the end of
an input parameter will cause it to be treated as a \r\n delimited
input array (so that WsEcl no longer needs to use schema to process arrays on
input).

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-9401 Update based on review and missing changes

Removed IPropTree::getIsArrayItem().  toJSON now looks ahead one child
item to determine when an element repeats.

Also reimplemented lost changes to only create a workunit if/when its
actually needed.

Also fixed various other items caught in code review.

 to delay creating workunit

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-11169 Add ResourceURLCount to WUQueryDetails response

The ResourceURLCount is added to WUQueryDetails response. Also fix
'the ResourceURLCount should not set to 0 when IncludeResourceURLs
is set to false'.

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
HPCC-11169 Get WU ResourceURL count using a new method

A new method getResourceURLCount is added to WuWebView. The method is
called to get the WU ResourceURL count.

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
HPCC-11169 Add a missing flag: WUINFO_IncludeResultsViewNames

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
HPCC-9401 Update based on review

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-11252 Option on complete-uninstall to leave environment

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11251 - daliadmin holdlock

For testing purposes, allow a logical file to be locked
temporarily.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11169 Remove an extra line of code

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
Merge pull request #5499 from afishbeck/wseclQueryTimeOptimizations

HPCC-9401 Optimize query time WsEcl

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11251 - indentation

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #5718 from jakesmith/hpcc-11251

HPCC-11251 - daliadmin holdlock

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11219 Bulk workunit delete leaves checkbox checked

Fixes HPCC-11219

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Merge pull request #5716 from richardkchapman/incomplete-uninstall

HPCC-11252 Option on complete-uninstall to leave environment

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge pull request #5661 from wangkx/h11169

HPCC-11169 Add ResourceURLCount to WUQueryDetails response

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-11258 Improve grep pattern to get user home directory
HPCC-11257 update hpcc-init stop return 0 instead 3

Set return code to 0 instead of 3 in following scenarios:
1) the process is already stopped.
2) the process is stopped after start-stop-daemon -K call and before
   or during the first check_status call.
Merge pull request #5720 from GordonSmith/HPCC-11219

HPCC-11219 Bulk workunit delete leaves checkbox checked

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #5726 from xwang2713/HPCC_11257_stop_3

HPCC-11257  make 'hpcc-init stop' return 0 instead 3

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #5725 from xwang2713/HPCC_111258_user_home

HPCC-11258 Improve grep pattern to get user home directory

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>