-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Labels
Description
Current Behavior
In Metastore Data.php the function setWorkflowState() does not add a revision date. This creates a confusing situation where a draft made weeks ago and a publish today shows the two revisions with the same date.
This comes from an odd drupalism where if a revision has not timestamp set it uses the timestamp from the previous revision, creating confusion throughout the land.
Calling
$entity->setRevisionCreationTime(<timestamp here>);
right before the $entity->save() will resolve this.
Time stampery will need something like \Drupal::time()->getCurrentTime()
Expected Behavior
- When a dataset publishes or goes through some other status change, the revision list tells the true story.
Steps To Reproduce
- Save a datset in draft.
- wait 10 minutes
- Publish it using the metastore publish function
- View the revision log. shows the same date and time.
Reactions are currently unavailable