pluginpal / strapi-plugin-config-sync

:recycle: CLI & GUI for continuous migration of config data across environments
https://www.pluginpal.io/plugin/config-sync
MIT License
255 stars 37 forks source link

Exporting permissions on requried fields resets permissions #125

Closed DenuxPlays closed 6 months ago

DenuxPlays commented 7 months ago

Bug report

Describe the bug

I have a required and auto-generated field. I want that non-admin users cannot see, change or delete this field so I remove all the permissions from it. Now when I export it the permissions gets resetted (not only on the import also on the export!)

Steps to reproduce the behavior

  1. create a required auto-generated field
  2. remove the permissions from it for a role
  3. export the settings
  4. reload
  5. see permissions reset

Expected behavior

Export it and DO NOT CHANGE ANYTHING IN STRAPI it should only read configurations.

Screenshots

///

Code snippets

///

System

Additional context

I already opened an issue on strapi because I am not sure where the issue occurs: https://github.com/strapi/strapi/issues/19892

boazpoolman commented 7 months ago

What do you mean exactly with "auto-generated"? Is this a uid type field, or a different type?

DenuxPlays commented 7 months ago

What do you mean exactly with "auto-generated"? Is this a uid type field, or a different type?

Yes UID field and requried. These are the settings that we use

boazpoolman commented 7 months ago

Allright. Will have to try to reproduce, but it does sound more like a Strapi issue to me. Especially if this only happends for the uid fields. To the config-sync plugin they are not handled differently than any other field.

boazpoolman commented 7 months ago

Seems, like a duplicate of https://github.com/strapi/strapi/issues/16890

@DenuxPlays can you confirm?

DenuxPlays commented 6 months ago

Seems, like a duplicate of strapi/strapi#16890

@DenuxPlays can you confirm?

Yes, kinda It doesn't reset if you leave at least of the permissions (Create, Read, Update). I think this can be closed as it seems to be an strapi issue.