storyblok / storyblok-cli

Storyblok CLI
https://www.npmjs.com/package/storyblok
MIT License
31 stars 30 forks source link

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

Open royvou opened 1 month ago

royvou commented 1 month ago

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:

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


- Go 

**Other information:**

- Related commit
  - https://github.com/storyblok/storyblok-cli/commit/c05e64483b399e7437e2612a753e85a3c485a0e1
- Related Code
  - https://github.com/storyblok/storyblok-cli/blob/master/src/tasks/push-components.js#L21C7-L21C22

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
privetkuku commented 3 weeks ago

+1

privetkuku commented 1 week ago

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