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

Pull/Push components does not sync the component_group_whitelist correctly since 3.33.0 #117

Open
royvou opened this issue Sep 13, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@royvou
Copy link
Contributor

royvou commented Sep 13, 2024

Current behavior:
When using version 3.33.0 or higher and syncing components via the pull/push components command, the component_group_whitelist does not get updated, resulting in an user not being able to select any block.

Expected behavior:
When using the pull/push components commands to sync blocks, they keep the component_group_whitelist

Steps to reproduce:

  • Create a block folder blockFolder1
  • Create one block of type universal
    • create a block called block1 with 1 Blocks field called field1, whitelist blocks fromt he blockFolder
  • Create one block of type nestable block
    • create a block called block2 and put it in the blockFolder1
  • Create a story based on block1 and in field1 try to create a new block
  • Run the following script between multiple spaces (use the correct source/target)
DEV=1
PRD=2

storyblok pull-components --space $DEV
storyblok push-components --space $PRD ./components.$DEV.json --presets-source ./presets.$DEV.json
  • Go

Other information:

in the old version source_uuid was added during sync to correctly map the block (Using the getGroupByUuid) but source_uuid is now never generated/mapped anymore

@royvou royvou added the bug Something isn't working label Sep 13, 2024
@alvarosabu alvarosabu added the pending-triage [Issue] Ticket is pending to be prioritised label Sep 17, 2024
@privetkuku
Copy link

+1

@privetkuku
Copy link

@alvarosabu, hello, Alvaro! Any news on that?

@brenden-ef
Copy link

We noticed this about a month ago as well and raised a support ticket about it ( #13844). We were told they are currently working on a refactor of the CLI that should fix the issue, but it probably won't be available until 2025.

@alvarosabu
Copy link
Contributor

Hi @privetkuku that bug is fixed on this PR #152. New implementation allows the upserting of 3 different whitelists:

  • component groups
  • tags
  • components

We are going to have a beta soon Q1, keep an eye on Discod and the next branch

@alvarosabu alvarosabu removed the pending-triage [Issue] Ticket is pending to be prioritised label Feb 20, 2025
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

4 participants