Skip to content

Adding Post Status Feature (Draft/Published) - #78

Draft
MohcinBN wants to merge 6 commits into
MrPunyapal:mainfrom
MohcinBN:feature/posts-status
Draft

Adding Post Status Feature (Draft/Published)#78
MohcinBN wants to merge 6 commits into
MrPunyapal:mainfrom
MohcinBN:feature/posts-status

Conversation

@MohcinBN

@MohcinBN MohcinBN commented May 6, 2026

Copy link
Copy Markdown

We adds a new "status" field to posts, allowing them to be marked as either Draft or Published.

Adding status to basic crud

@MrPunyapal

Copy link
Copy Markdown
Owner

How it's different than published_at 👀

@MohcinBN

MohcinBN commented May 7, 2026

Copy link
Copy Markdown
Author

@MrPunyapal status enums is for editorial workflow & content state. It stores the current editorial state of the content.

Use case: "This post is still being written" vs "This post is ready for the public".

Draft: Content is incomplete, under review, or not ready
Published: Content is finalized and approved for public viewing.

So i think its needed; and if we see the project scope, published_at is used in PostBuilder::published() to filter posts, status is now available but not yet used in queries, but could be used in many cases (example: ensures posts are only shown when they're both published (status) AND the time has arrived (published_at))...

Thank you!

@MrPunyapal

Copy link
Copy Markdown
Owner

Maybe we can have an active inactive kind of enum? or is_active.

What are your thoughts? @MohcinBN

@MrPunyapal
MrPunyapal marked this pull request as draft July 3, 2026 10:38
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

Successfully merging this pull request may close these issues.

2 participants