Closed thvd closed 1 month ago
Hello, @thvd
Thank you for your feature request. I will review it as soon as possible and provide updates as they become available.
Cheers
Hey,
The setup()
method, which includes the _parseQuery()
method, is being called multiple times on modified and internally created object configurations, not just on the one defined in export.json
. This makes the implementation more complex than simply reading from the disk.
Could you explain the use case ?
This case has been marked as 'to-be-closed', since it has no activity for the 3 days.
It will be automatically closed in another 3 days of inactivity.
This case is postponed for the future review and closed for the current moment.
Hey, The
setup()
method, which includes the_parseQuery()
method, is being called multiple times on modified and internally created object configurations, not just on the one defined inexport.json
. This makes the implementation more complex than simply reading from the disk. Could you explain the use case ?
@hknokh Hey, of course i will explain the use case.
So the challenge I experience is that the query
JSON node becomes hard to maintain with a large query.
Let's say you will fetch 20 (or more) fields and you add a large WHERE clause, then I fear I need to put the whole query on one line in the JSON. This makes it hard to read and maintain.
I am frustrated to put the query (with many fields) in the export.json file on one line.
Describe the solution you'd like
So just like
sf data export tree
i would like to use the query in a formatted way in a myQuery.soql file.Like this:
export.json:
config/data/testdata.soql:
How to implement this
I have been looking at the code, i think if we put this code:
in the
_parseQuery
method ofsrc/modules/models/script_models/scriptObject.ts
will that implement this?