Our app is growing and to keep our custom functions organized, we group them by table in folders.
To achieve that, we just run
8base generate task tableName/newFeature -s js from the command line.
It will create the following file structure:
├── tasks │ ├── tableName │ │ ├── newFeature │ │ │ ├── mocks │ │ │ │ ├── request.json │ │ │ ├── handler.js │ │ ├── anotherFeature │ │ │ ├── mocks │ │ │ │ ├── request.json │ │ │ ├── handler.js
8base.yml file will look like this:
functions: tableName/newFeature: type: task handler: code: src/tasks/tableName/newFeature/handler.js
Deploying this task with
8base deploy will work perfectly fine.
But the problem arises when trying to monitor the task from the 8base application.
This new custom function will appear in the list of all custom functions deployed. But clicking on it won’t actually do anything. Making it impossible to visualize any log.
I suspect the problem comes from the fact that the name
tableName/newFeature contains a slash
I believe it enters in conflict with the routing of the 8base application since the URL of monitoring is:
Do you think we could fix that issue so that we can monitor functions that contain a
/ in their names, please?