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

Latest entry shows incorrect timestamp on changeless publish #49

Closed
NightJar opened this issue Apr 9, 2021 · 4 comments
Closed

Latest entry shows incorrect timestamp on changeless publish #49

NightJar opened this issue Apr 9, 2021 · 4 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@NightJar
Copy link

NightJar commented Apr 9, 2021

If a page is not edited when a publish action is undertaken (and nor does it have child content that is edited e.g. elemental blocks), the most recent snapshot entry on the history tab is updated to record the timestamp of the most recent publish action, losing the correct time of when the action it represents was undertaken.

This adversely affects auditable history.

Highly related (and steps to reproduce): silverstripe/silverstripe-versioned#330

@NightJar NightJar added the bug Something isn't working label Apr 9, 2021
@unclecheese
Copy link

The publish handler in snapshots uses the most recent ChangeSet as its source of truth. In a changeless publish, this change set will always be populated. Appears to be a symptom of the versioned issue mentioned above.

@unclecheese
Copy link

Fix would be to test each change set item and look for at least one CHANGE_MODIFIED or CHANGE_CREATED and if not present, skip the snapshot.

@NightJar
Copy link
Author

Have you been able to reproduce this? I have had such great trouble in trying to distill this problem for this report that I'm no longer certain I wasn't just confused in the first place.

I'm thinking to simply close this - it can always be reopened or recreated if I do eventually encounter the problem as described again.

@NightJar NightJar added the invalid This doesn't seem right label Apr 19, 2021
@unclecheese
Copy link

Closing this as unable to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants