Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component_group_whitelist breaks when using "storyblok push-components" synchronisation #19

Open
1 of 6 tasks
wldjfr opened this issue Dec 17, 2020 · 0 comments
Open
1 of 6 tasks
Labels
bug Something isn't working

Comments

@wldjfr
Copy link

wldjfr commented Dec 17, 2020

The issue occurs while working with: (check one with "x")

  • app.storyblok.com (CMS - Interface)
  • api.storyblok.com (CMS - Content Delivery API)
  • mapi.storyblok.com (CMS - Management API)
  • capi.storyblok.com (Commerce - API)
  • Commerce - Interface
  • Other:

Current behavior:

When pushing json components using the command storyblok push-components and regarding components groups, groups are successfully created but it breaks restrictions that are using "restrict_type":"groups"

example :

"name": "example_name",
      "display_name": null,
      "created_at": "2020-11-30T09:07:06.002Z",
      "updated_at": "2020-11-30T12:35:36.883Z",
      "id": 1212324,
      "schema": {
        "body": {
          "type": "bloks",
          "restrict_components": true,
          "restrict_type": "groups",
          "component_group_whitelist": [
            "f6f00d50-efcf-4c3c-ad13-xxx"
          ]
        }
      }

the components above need to be manually updated with the group restriction (which seams visually ok btw)

Expected behavior:

Restrictions using group of components should be working on the target space :)

Steps to reproduce:

Create a group restriction on space 1
Pull components from that space using storyblok cli
Push components to another space using storyblok cli

Related code:

storyblok pull-components --space 2 (pull components from that space)
storyblok push-components components.1.json --space 2 (push components to the target space)

@wldjfr wldjfr added the bug Something isn't working label Dec 17, 2020
@lisilinhart lisilinhart transferred this issue from storyblok/storyblok Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant