prismicio / slice-machine

A series of tools for developing and deploying website sections with Prismic
https://prismic.io/docs
Apache License 2.0
287 stars 53 forks source link

Cannot rename slices without breaking slice machine - V 1.5.0 #1037

Open Ali-Parandeh opened 1 year ago

Ali-Parandeh commented 1 year ago

Versions

Steps to reproduce

Create a slice. Save slice Push Slice Rename Slice Save Slice Push Slice Create a new slice with old slice name Save Slice Push Slice

You will face issues.

What is expected?

You should be able to rename old slices, save them and push them. Then create new slices with old names. For instance, I created a Services slice then realised I needed to call it ServicesCategory slice. And wanted to create another slice called Services but couldn't.

What is actually happening?

  1. Duplicate Slices
Screenshot 2023-07-07 at 18 14 19 Screenshot 2023-07-07 at 18 18 07 Screenshot 2023-07-07 at 18 14 03 Screenshot 2023-07-07 at 18 14 52
  1. When trying to edit one of the slices - Remove a field then save.
Screenshot 2023-07-07 at 18 15 57
eraykeskinmac commented 1 year ago

We've been getting the same error since today morning, I think it's because of the next adapter, but I still haven't solved it since I updated the next adapter.

comeprismic commented 4 months ago

Hi there,

Thanks for your message. The reason why you are getting these errors is that the rename feature does not rename the id that is unique. This is a feature improvement that we know about and will have to do in the future, but this has not been prioritized yet to be transparent.

We will come back here when we re-open the topic.

Best,

CΓ΄me