Wp-calypso: Activity Log: backup complete item should not be rewound

Created on 9 Feb 2018  ·  8Comments  ·  Source: Automattic/wp-calypso

When confirming a site restore the confirm dialog appears above the selected item, letting me know the site will be rewound to this point and all other items above will be discarded.

image

However, once the restore is complete, the initial “full backup” item is also marked as discarded:

image

EDIT: these two screenshots are not part of the same flow, just illustrating styling differences before and after a restore.

@eliorivero can you take a look, please?

Jetpack Rewind [Type] Bug

All 8 comments

Thanks for the report. Ok, we'll look into keeping the backup used for the rewind un-dismissed, as well as the the rewind success event.

Assigning @dmsnell since he's the better person to handle this issue in the server.

@keoshi is there any way you can share the site on which that was viewed? I would like to check the events themselves.

Provided required info to Dennis on Slack.

@keoshi is it possible to try again with that same event and see if the behavior remains? I'm asking because there were recent changes the may address this and I want to rule out the easy things if we can.

if you can't reproduce on this site then we will have to try and find ways to make this reproducible.

this is all too confusing.

I'm going to stop for the day but I suspect that what's happening is related to the way we butcher timestamps. the rewind_id is usually a string version of a timestamp with fractional seconds and I have seen precision down to ten-thousandths of a second. that is ss.SSSS if that makes sense.

therefore since we truncate the timestamp when calculating is_discarded to the ms then we may simply be ending with a 9-out-of-10 chance that the backup will appear discarded when it's not.

Hopefully related and hopefully resolving the issue: D10486

With discarded events out of the equation, we can now close this.

Was this page helpful?
0 / 5 - 0 ratings