Support backdated post publishing #251
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-aa01a61a-backdated-publishing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
publishedAtsupport to the Slugkit posts API create/update/publish flows.publishedAtis omitted.slug post create --published-atandslug post publish --published-atCLI support with validation.@evcraddock/slug-templateto0.1.3and@evcraddock/slug-clito0.6.3.Verification
npm test --workspace @slugkit/template-site -- src/api/__tests__/posts.test.tsnpm test --workspace @evcraddock/slug-cli -- commands.test.tsnpm run build --workspace @evcraddock/slug-templatenpm run build --workspace @evcraddock/slug-clinpm test --workspace @evcraddock/slug-template./scripts/pre-pr.shnpm run package:pack:dry-run -- --workspace @evcraddock/slug-templatenpm run package:release -- --workspace @evcraddock/slug-template --dry-runnpm pack --workspace @evcraddock/slug-cli --dry-runTask: #task-aa01a61a
a9f60821772b36ebf70eReview summary
PR #251 implements optional backdated publishing for migration/import workflows while preserving existing behavior when
publishedAtis omitted.Acceptance criteria
docs/specs/02-posts-routes.mddocuments optionalpublishedAton create/update/publish, date handling, validation, and federation expectations.template/site/src/posts/posts.tsstores normalized timestamps andtemplate/site/src/api/routes/posts.tsaccepts optionalpublishedAton create/update/publish.slugCLI can create or publish content with a caller-provided publish date/time —cli/src/commands.tssupports--published-aton create/edit/publish and sends it only when present.VALIDATION_ERROR; CLI rejects invalid values before requests.publishedAtstill uses server current time and normal publish delivery path.docs/blog-migration.md, CLI README, and specs state explicit backdated publishing does not notify/federate by default.Verification evidence
./scripts/pre-pr.shpassed.@evcraddock/slug-template@0.1.3and@evcraddock/slug-cli@0.6.3.Blocking issues
None.
Verdict
Approved for merge. Human merge approval still required.