bcc-code / directus-schema-sync

The better way to sync your Directus schema and data between environments
Apache License 2.0
90 stars 4 forks source link

Add a Query Rule to directus_roles #44

Closed wolfgang-hartl closed 3 weeks ago

wolfgang-hartl commented 3 weeks ago

Describe the Improvement

Hey there, not sure if this was already considered in the past, but when using the extension I find my self needing to do a little tweak all the time, it's not a big deal since one have to modify the config file anyway, but I think it would be a good addition to the starter to exclude the "Administrator" Role from syncing, found myself often locked out of directus because it synced and lost the relation to the admin user because of that.

image

As far as I can see, it's located in the install/schema-sync folder of the project (not sure if i should open a pull request for that minor change, and if it's even wanted to be that way).

Thanks for considering, and thanks for the awesome extension, works really great!! :-)

Cheers

u12206050 commented 3 weeks ago

Hi, thanks for your input. We have actually considered this already and it turns out there are people on both sides of the isle on this one. So in the spirit of sitting on the fence I decided to just not include to much default filter rules, and let those that don't want it exclude it like you have done so yourself.

Once excluding the Admin role becomes 80% of the use cases we can change it, but as of now it is 50/50