Visitar URL original
Publishing a metastore does not change revision date · Issue #4621 · GetDKAN/dkan · GitHub
Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

Publishing a metastore does not change revision date #4621

Open

Description

@swirtSJW

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.

revisions weeks apart end up with same timestamp

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

  1. Save a datset in draft.
  2. wait 10 minutes
  3. Publish it using the metastore publish function
  4. View the revision log. shows the same date and time.

Activity

  1. added 3 commits that reference this issue on Feb 15, 2026
  2. added 4 commits that reference this issue on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions