Forest new agent - handle same table name from different datasource

Feature(s) impacted

Datasource connection

Observed behavior

Project can’t be launched because I’ve 2 datasource with same tables name

Expected behavior

Dashboard launched with the all the tables displayed (even if they have the same name)

Failure Logs

error: Forest Admin agent failed to start

Error: Collection ‘RefundRequestDocument’ already exists
at CompositeDatasource.addDataSource

Context

  • Project name: Nostrum Care v3
  • Team name: Op
  • Environment name: Development
  • Agent (forest package) name & version:
    @forestadmin/agent”: “^1.0.0”,
    @forestadmin/datasource-sequelize”: “^1.5.21”,
    @forestadmin/datasource-sql”: “^1.0.0”,
  • Database type: Postgresql
  • Recent changes made on your end if any: Adding a new datasource

Hello @nadiab :wave:

You can work around this issue by using our renaming method. Don’t hesitate to contact us if you encounter any problems :slight_smile:

Kind regards,

Florian

Perfect it works well !
Thanks for your help

It’s so much easier than in the previous Forest Admin version.

Have a nice day !

1 Like