Skip to content

Commit

Permalink
fix(editor): fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akaash2512 committed Feb 6, 2025
1 parent 29c6f16 commit 14377df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/frontend/model/samples/value-finder.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"logLevel": "info",
"hops": [
{
"type": "runScript",
"code": "output = utils.file.txt(\"properties_containing_hardcoded_urls\");\nSQL2Query = str:join([\"SELECT * FROM [nt:base] AS node WHERE ISDESCENDANTNODE([\",args.path,\"])\"])\nif (args.resourceTypeInclude != null && args.resourceTypeInclude.trim() != ''){\n SQL2Query = str:join ([SQL2Query,\" AND node.[sling:resourceType] LIKE \\\"\",args.resourceTypeInclude,\"\\\"\"])\n}\nif (args.resourceTypeExclude != null && args.resourceTypeExclude.trim() != ''){\n SQL2Query = str:join ([SQL2Query,\" AND node.[sling:resourceType] NOT LIKE \\\"\",args.resourceTypeExclude,\"\\\"\"])\n}",
"extension": "jexl",
"putLocalsBackIntoScope": true
},
{ "type": "declare", "declarations": { "output": "utils.file.txt(\"properties_containing_hardcoded_urls\")" } },
{
"type": "nodeQuery",
"query": "${SQL2Query}",
"query": "SELECT * FROM [nt:base] AS node WHERE ISDESCENDANTNODE([${args.path}])\n${(args.resourceTypeInclude != null && args.resourceTypeInclude.trim() != '') ? ` AND node.[sling:resourceType] LIKE \"${args.resourceTypeInclude}\"` : ''}\n${(args.resourceTypeExclude != null && args.resourceTypeExclude.trim() != '') ? ` AND node.[sling:resourceType] LIKE \"${args.resourceTypeExclude}\"` : ''}",
"queryType": "JCR-SQL2",
"hops": [
{
Expand Down

0 comments on commit 14377df

Please sign in to comment.