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

Persist Publish and Un-Publish Dates #147

Open
adamrpostjr opened this issue Dec 27, 2024 · 1 comment
Open

Persist Publish and Un-Publish Dates #147

adamrpostjr opened this issue Dec 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@adamrpostjr
Copy link

When a post transitions from unpublished to published through an action in Publisher, the publish and unpublish dates are not retained. Is there a way to preserve these dates during this workflow?

@TMSchipper
Copy link

Hi @adamrpostjr,

Thanks for opening this issue.

Based on testing, it seems that the published_at and unpublish_at fields are currently treated as transient states rather than stored historical references. When a post transitions between unpublished and published, these fields are either updated or cleared without retaining previous values.

To preserve the publication and unpublication dates for reference or future use, additional logic would need to be implemented—such as storing these values in custom fields or adding an audit log for transitions.

Out of curiosity, could you share a bit more about the use case for retaining these dates? It seems that the existing created_at, updated_at, and published_at fields already provide sufficient context for most workflows. Understanding your specific scenario could help clarify if this is a gap or a unique need.

Kind regards,
Tim
PluginPal

@TMSchipper TMSchipper added the enhancement New feature or request label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants