Problem/Motivation

The Media header is not shown when the node status changes from published to Draft.

Steps to reproduce

1- Install the module
2- enable it on the basic page
3- Place the block
4- Create a node with Draft status.

Proposed resolution

  • Add the needed route entity.node.latest_version to be checked in build.
  • Load the node with the from the route match with last revision id for the draft.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.0-rc2,Varbase 9.1.1, varbase_media_header-9.1.3, varbase_media_header-10.0.0-rc1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

After the fix:

Revisions for a test content
Revisions for a test content

Edit test content - with Varbase Media Header support
Edit test content - with Varbase Media Header support

View the last published edit for the test content
View the last published edit for the test content

The preview for the full content view mode for the test content
The preview for the full content view mode for the test content

The Draft view for the latest revision edit ( on the Body and Main Media Header )
The Draft view for the latest revision edit ( on the Body and Main Media Header )

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Ahmad Abbad created an issue. See original summary.

ahmad abbad’s picture

Status: Active » Needs review
ahmad abbad’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Media header not shown if node status is Draft » Fix not shown Media header when node status is Draft

  • Rajab Natshah committed e5be5f24 on 9.1.x
    Issue #3414651: Fix not shown Media header when node status is Draft
    

  • Rajab Natshah committed 4ce5a39a on 10.0.x
    Issue #3414651: Optimize the code and logic for get route Name from the...
rajab natshah’s picture

  • Rajab Natshah committed f59af9c2 on 10.0.x
    Issue #3414651: Optimize the code and logic for get route Name from the...

  • Rajab Natshah committed 359cf1a5 on 9.1.x
    Issue #3414651: Optimize the code and logic for get route Name from the...
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

✅ Released Varbase 9.1.1

rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Issue summary: View changes
Issue tags: -varbase-10.0.0 +varbase-10.0.0-rc2
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-10.0.0-rc2