Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Published content has status 'Draft' if edited but not saved. #118

Open
amberwebb opened this issue Nov 13, 2014 · 2 comments
Open

Published content has status 'Draft' if edited but not saved. #118

amberwebb opened this issue Nov 13, 2014 · 2 comments

Comments

@amberwebb
Copy link

Not sure if this is intentional, but if I edit a published collection but don't save it and return to my workspace, that collection is now marked as draft. Shouldn't this still content still be published because I didn't save it?

@karenc
Copy link
Member

karenc commented Nov 13, 2014

Content will be marked as "draft" if you POST the id to /users/contents. Authoring doesn't currently compare the content to see if you changed anything. I'm not sure how webview uses the API, may be you can POST to /users/contents only if the user clicks on the save button?

@reedstrm
Copy link
Member

I think we can be slightly smarter about if the post created a fresh checkout. Either create the content with a new state: Unmodified or Draft/Unmodified which we clear to Draft on a PUT or POST with a body with more than just an ID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants