Authenticated and Public settings always appears at changes on settings
Closed this issue · 5 comments
Every time we make changes on setting files and we go to see them on the Config Sync panel we see both Authenticated and Public:
As you can see, we imported the changes at first time (image 1); later, we made changes and we go to import them again (image 2); and we see them again.
Why? Is it a normal behaviour? It confuses us too much.
Hi @SalahAdDin,
Thank you for yet another issue submission!
This is very helpfull to make the plugin better :)
The public & authenticated roles are the default roles in Strapi.
As you can see on the right side these are only in the DB. So no config files are exported for these roles.
If you import them, they will be deleted. But upon refresh, Strapi will automatically create them again, because these are the default roles. This is why they keep coming back.
You will need to export these before they will be fully integrated in the syncing process.
Does that make sense?
What I only do not understand is why they are not exported allready. That should have happend on the initial export.
Please let me know if this makes sense to you.
I think a big part of making this plugin better is to make it understandable and transparent for everybody.
So maby we can figure out a way to do that! :)
It is clear for me now, it seems i didn't read the state carefully but it has sense for me; after exporting it, i don't see them again.
Maybe you could improve the documentation if you think it worths.
Thanks.
I will add some documentation for this.
This will probably be a small text right by the list item in de differences tool for the public & authenticated roles.
Text will be something like 'The default roles in Strapi will not be deleted on import.'
Well, it confuses me a bit: we exported the permission for the content types we use in our instance, we want to import them later.
My mistake was i misunderstood what "Only database" label means.