Feature(s) impacted
Inside the data tabs, we have several collections who all work beside one.
Observed behavior
When Forest admin try to retrieve the data, he makes an API call to my local url http://localhost:3000/forest/Product. This call trigger a function inside my back which execute a sql command containing an error. This error is due to “LEFT OUTER JOIN” on an non existing column. (we have something like “LEFT OUTER JOIN Clients on Clients.product_id = products.id”), here the product_id inside clients doesn’t exist.
Expected behavior
For all of my others collections everything is fine, but not the products collection.
Failure Logs
the web console log display an error 500 after calling a GET request on the url http://localhost:3000/forest/Product
the backend console display this error:
Context
- Project name: AB Tracking
- Team name: Operations
- Environment name: development
- Agent type & version: forest admin for Rails env (version 7.7.2)
- Recent changes made on your end if any: I’ve seen and removed product_id in the Clients inside the forestadmin-schema.json
Moreover I’m using a docker container and after several tries I never could update the schema using the command forest schema:update. Note that the error was there before I tried to change the forestadmin-schema.json
Don’t hesitate to ask for deeper informations.
Regards,
Julien