fix: show publish date instead of draft creation date for news#4645
Closed
GMetaxakis wants to merge 2 commits intoONEARMY:masterfrom
Closed
fix: show publish date instead of draft creation date for news#4645GMetaxakis wants to merge 2 commits intoONEARMY:masterfrom
GMetaxakis wants to merge 2 commits intoONEARMY:masterfrom
Conversation
Add published_at column to the news table with a migration that backfills existing published news with their created_at date. Set published_at when news is created as non-draft or when a draft is published. Display published_at in news list and detail pages. Closes ONEARMY#4479
Contributor
Author
|
Closing as duplicate of #4643. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
PR Type
What is the new behavior?
published_atcolumn to the news table to track when an article was actually publishedpublished_atis set to the current timepublished_atis set at that momentpublished_atinstead ofcreated_atwhen availablecreated_atas the publish date via migrationDoes this PR introduce a DB Schema Change or Migration?
Git Issues
Closes #4479