But it looks like the new version does not support names with spaces. In the new agent, spaces are not allowed in fields’ names (not documented, but error thrown from @forestadmin/datasource-tooklit/dist/src/validation/field.js ).
Keeping the name identical prevents your from losing your layout customizations. Inputting your names in a camel case format should translate them to the display name you are used to in your UI.
You can try in your development environment to see if your customizations are kept or not;
(On your dev env):
keeping the old agent
Customize a collection in your UI
Switch to the new agent and deploy the forest schema
Check in the UI if your previous customization is still present
If it is, you should not worry about your customizations in your production environment.
@dogan.ay we tried to replace our names containing spaces (old agent) with new names in camel case (new agent), as you suggested. But the names change!! And all the settings related to these names on your side are lost.
This can be easily observed in the changes in the .forest_admin_schema file.
and in the Forest UI all the settings are lost
So we don’t understand how to preserve these fields settings.
If names with spaces are not supported any more in the new agent, how can we preserve all our existing names (and all the related settings)?
This was introduced to prevent an issue we had with our v1 agent - where fields name containing spaces partially worked (In v1, it wasn’t possible to make them filterable/sortable/searchable, etc).
In order to prevent this, we decided to drop the support of this feature - as the actual benefit of having name with spaces was rather small (If you name your field with spaces, it would break typings, etc).
However this lead to the underlying issue: As the field name changes, the associated layout configuration done on the UI will be lost. As of today, there is no workaround to maintain this layout.
If that’s possible to fix on your end, that would be the best.
If not, just get back to us, and we will take a look and estimate if this is fixable on our end.
Hi @jeffladiray
I confirm we’re renaming our smart field names, removing any space before affording the upgrade.
This way we’ll have no problems with spaces.