Skip to content

[SD-1781] document embed date#784

Merged
lambry merged 11 commits into
developfrom
feature/SD-1781-document-embed-date
Jun 25, 2026
Merged

[SD-1781] document embed date#784
lambry merged 11 commits into
developfrom
feature/SD-1781-document-embed-date

Conversation

@lambry

@lambry lambry commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

JIRA issue: https://digital-vic.atlassian.net/browse/SD-1781

Changed

  1. Get's the display updated date option on embeds working again, also removes an old local patch that wasn't used anyway.

Notes:

  • Looks like the entity_embed module doesn't repect the allowed HTML list, this means the custom data attribute we add data-show-last-updated is stripped out, there used to be a patch to fix this in an older version of entity_embed but it was removed in this PR removed entity embed patchs #585
  • However the patch is still needed for this to work, there's an open PR that would resolve the issue but it's been sitting there for two years https://git.drupalcode.org/project/entity_embed/-/merge_requests/31, also for reference here's the related issue on drupal.org https://www.drupal.org/project/entity_embed/issues/3410132
  • This way of patching is a bit foreign to me, but I've copied how all the other patches are done i.e. referencing a patch file uploaded on the issue itself, the file isn't linked to a comment it's just uploaded to the issue (anyone now if that's a problem?).

Testing

BE: https://nginx-php.pr-1989.content-vic.sdp4.sdp.vic.gov.au/site-4/document-embed
FE: https://app.pr-1385.vic-gov-au.sdp4.sdp.vic.gov.au/document-embed

@waitingallday

Copy link
Copy Markdown
Member

LGTM but I will leave the actual review to @vincent-gao or @anthony-malkoun 🙏

@vincent-gao vincent-gao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM

@vincent-gao

Copy link
Copy Markdown
Contributor

Oh, the build failed. Looks like Drupal doesn't like this patch.

@vincent-gao vincent-gao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the build failed.

@lambry

lambry commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

the build failed.

Yeah, looking at that now. Cheers

@lambry

lambry commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

@vincent-gao, I think it's a new line issue, just tried to upload a new patch and Drupals telling me I need to wait 7200 seconds i.e. 2 hours before submitting the form again. 😬

@lambry lambry requested a review from vincent-gao June 18, 2026 00:50

@vincent-gao vincent-gao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lambry lambry merged commit 6cbc568 into develop Jun 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants