rowy icon indicating copy to clipboard operation
rowy copied to clipboard

Error with argument "documentPath" when using derative

Open chwan1 opened this issue 3 years ago • 0 comments

Describe the bug When using derative field in rowy, I encounter several issues. At first, when I use example from the doc and hit deploy, nothing shows up in the UI. I went to gloud log and find error message

Error: Value for argument "documentPath" is not a valid resource path. Paths must not contain //.
    at Object.validateResourcePath (/home/node/app/node_modules/@google-cloud/firestore/build/src/path.js:449:15)
    at Firestore.doc (/home/node/app/node_modules/@google-cloud/firestore/build/src/index.js:567:16)
    at createStreamLogger (/home/node/app/build/functionBuilder/logger.js:70:10)
    at functionBuilder (/home/node/app/build/functionBuilder/index.js:35:68)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home/node/app/build/index.js:39:22

which I assume it is path related error. So I went to firestore and chang the value of /_rowy_/settings/tables[0].collection from /questionnaire/response/answer to questionnaire/response/answer and the rowy UI start to show build messages.

However, the build process also fails, with message

Error: R-questionnaire/response/answer function name(s) can only contain letters, numbers, hyphens, and not exceed 62 characters in length

I'm assuming this is related to the cloud function name auto generated by rowy. Maybe for now rowy can only support derative field with collections from the first level?

Rowy Run version v1.6.1

chwan1 avatar Aug 11 '22 07:08 chwan1