Hi,
So a bit a tricky case here. We have a forest environment running a normal forest backend. Then another environment running a consolidated version - meaning it shows data using two separate db connections. (ref: https://github.com/ForestAdmin/forest-examples/tree/master/examples/sql-database/multiple-databases).
I want to copy the layout of the original env with only 1 db attached to the env with 2. In fact I even tried to do this and I just got locked out of the second env and had to revert back. Furthermore, copying the layout includes summary views, ordering of columns in a table, and custom labels/badges used on smart field etc?
As for your copy layout issue, I’m not sure to understand what caused it. What the copy layout does is to take all layout related modifications you did (ie. column or collection reordering, charts, summary views, etc) and apply those to another environment.
More informations on the copy layout issue you encountered might be useful here (error logs, final state of your environment).
The copy layout should work as expected in your project configuration.
As @anon37102731 explained, even if the environments are really different in terms of collections, fields, actions, … the “copy layout” will copy any origin configurations to the objects that exist in the destination.
In any case it should never fail and let you locked out.
Do you still observe the issue or should we close this discussion?
I have not tried it recently and have actually almost manually copied over the layout now. However, the last time I did try, it no longer locked me out, but it wasn’t able to copy over the layout configuration properly either unfortunately.