sanity-io / sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content
https://www.sanity.io
MIT License
5.33k stars 431 forks source link

Publish all changes #2239

Open silkstudio opened 3 years ago

silkstudio commented 3 years ago

Is your feature request related to a problem? Please describe. I'm using a Sanity hook to trigger a Netlify build when a Sanity doc is updated but have found that if I'm editing multiple docs and then publish them successively, it will trigger multiple builds.

Describe the solution you'd like It would be super helpful if you could edit multiple docs and then 'publish all changes' in one go rather than having to do it for individual docs.

Describe alternatives you've considered For the moment just doing it individually and potentially spacing changes so as not to trigger multiple successive builds.

Additional context Apologies if something like this already exists, I wasn't able to find much from a quick scan through previous requests but am happy to be educated!

marijoo commented 3 years ago

The option to debounce triggers or to publish all documents at once would be super helpful – both ecological and economically. ✌️

janhoogeveen commented 3 years ago

Additionally, grouping these into versions would be even better It seems like a logical conclusion to grouping changes!

How Prismic does this: https://user-guides.prismic.io/en/articles/778358-what-is-a-release

PutziSan commented 3 years ago

Is there a workaround to publish all, e.g. via HTTP API or cli?

tobijafischer commented 3 years ago

Grouping multiple changes into releases sounds really convenient.

logemann commented 3 years ago

This is a serious drawback currently. Now i am doing 200 publishes which will take me forever

grountish commented 2 years ago

this would be awesome

AmodeusR commented 2 years ago

Nothing yet? It gets really tedious to publish each change at a time.

miked-known commented 2 years ago

Any movement on this ? This would be a killer feature to have 🙏

ozymandias547 commented 2 years ago

This is a necessity. If anyone knows of a plugin that handles this, please let us know.

sitek94 commented 1 year ago

+1 it would be really nice to have such feature, especially when making atomic changes to multiple documents

olivierolivier commented 1 year ago

+1 Makes a lot of sense both in terms of usability for editors and to decrease the carbon footprint of a website/app.

JayBox325 commented 1 year ago

I built a platform that had tags. Now I'm building the tags pages to display content associated with that tag, however, I've got a shed-load of tags with a required slug field that I now have to manually go and update. For the future, it would be great for a document section "mass actions" option, to mass delete, mass publish, mass unpublish etc.

RaynoldVanHeyningen commented 1 year ago

any information regarding this? things started of fine during development phase, but now in production, the amount of documents is growing steadily larger. Recently developed a new feature, which requires me to republish all these documents to trigger a webhook. Having to do this now one by one, is becoming a big time-wasting task

kitsbits commented 1 year ago

This is a very common-sense and needed feature. Leaving a comment to make sure this thread stays open. Please do this!

artmen1516 commented 1 year ago

This is a really important feature, please implement it, could be responsible to change to another CMS that has this...

droplab commented 1 year ago

Agreed, this is a crucial feature. Is this even on the roadmap? Is there an ETA?

achyuta116 commented 1 year ago

While testing out a website, it'd be convenient to have this feature to group and publish changes, has this feature gotten any attention?

grantimbo commented 10 months ago

Currently in the process of transitioning from Prismic to Sanity, and this is the only feature that's missing so far. Hoping to see this feature implemented on Sanity.

yornaath commented 10 months ago

Yes this is needed 👍

Maxframe commented 10 months ago

I would indeed appreciate this time-saving feature

LucaArgentieri commented 10 months ago

What's new? It would greatly reduce the build time.

farmtopeople commented 8 months ago

+1 from our whole company. We need this feature!

alivault commented 7 months ago

+1. Needed this feature yesterday. I had to make changes to a bunch of items and there wasn't a way to batch publish all at once, so I had to publish each one individually and it would trigger a build each time.

JayBox325 commented 7 months ago

The silence form the Sanity team here, on social media and in the official slack is deafening. If fixing this issue was a major task due to how their content model works or something like that, I'd rather they told us that instead of ignoring it. It's a pretty big part of the platform.

LucaArgentieri commented 7 months ago

I achived a similar result with the Netlify Deploy plugin

I never tried with Vercel but this should be the same

michaelcpuckett commented 7 months ago

+1 Need this for triggered pushes

Jay-Ferguson commented 6 months ago

I feel like this should be a built in feature for any modern CMS. I thought a VC backed project like Sanity would have had this a long time ago.

awbranch commented 2 months ago

I need a this too. Any update?

faraazm commented 1 month ago

Seriously? We don't have this yet?

kelenakamura commented 3 weeks ago

so using the netlify deploy plugin manually isn't enough? just don't trigger deploys on publishing docs, only deploy when you manually trigger it via the netlify deploy plugin?

marijoo commented 3 weeks ago

so using the netlify deploy plugin manually isn't enough? just don't trigger deploys on publishing docs, only deploy when you manually trigger it via the netlify deploy plugin?

You mean the official plugin? That one wasn’t touched for two years and seems to not even be compatible with Dashboard v4.

kelenakamura commented 3 weeks ago

yes was referencing the comment from Apr 22. wondering if that workflow worked for anyone.

marijoo commented 3 weeks ago

Just found this alternative which seems to be working on the first sight: https://github.com/jclusso/sanity-plugin-netlify