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

Workflow for drafts / publishing / archiving (the Status attribute) #467

Open
joepio opened this issue Jul 19, 2022 · 0 comments
Open

Workflow for drafts / publishing / archiving (the Status attribute) #467

joepio opened this issue Jul 19, 2022 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Jul 19, 2022

Many headless CMS tools have tools that help content people (writers / communication employees) schedule posts, show which items are published, and put things in an archive.

Add status property

Let's call this the status of a Resource. I think having an enum that is either draft, published or archived makes sense here.

This status should have effect on rights: When the status is changed, automatically update the rights. Add a public read right when it's published. Or, alternatively, check for a status of a document, and only grant the public right if the status is set to published.

  • What about publishing things to a non-public group? Say we have an internal document that's (while in draft mode) only visible / editable for specific colleagues, and after publishing, is visible to the entire organisation, but not the public. How do we cover this usecase?

Change parent when posting drive from my-drafts to target-parent

  • Add the Draft class to your draft, additional to the class that your resource is (e.g. Blog)
  • Add a publish-parent property, pointing to where the resource will be posted
  • Add a publish-subject property, which contains the URL of where it will be created
  • When publishing, create a new Resource as child of the publish-parent using the publish-subject as subject. Remove the Draft class and the publish-* properties

Some related ideas

  • publish-at with a scheduler
  • publish-flow with a bunch of workflows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant