Problem/Motivation

Before the release of 8.2 , in core NodeInterface extended RevisionlogInterface (thus having getRevisionLogMessage() method ). Currently throughout the module there exists unnecessary check that revision is instance of NodeInterface. So, remove it and make small refactoring according to it.

Proposed resolution

Fix to RevisionLogInterface

Remaining tasks

User interface changes

No changes from our side.

API changes

Fix wrongly Interface use.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker created an issue. See original summary.

ModernMantra’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
3 KB

Made some exploration together with @miro_dietiker. So we found that Node has implementation of getRevisionLogMessage(), thus it is removed unnecessary check that $revision is intance of NodeInterface. Furthermore, discovered some 'weird' logic in DiffEntityComparison::getRevisionDescription() (made there some refactoring that it looks more 'beautiful')

Status: Needs review » Needs work

The last submitted patch, 2: revisionloginterface-2840174-2.patch, failed testing.

ModernMantra’s picture

Status: Needs work » Needs review
FileSize
2.74 KB

Recent commits caused that patch does not apply to DiffLayoutBase

ModernMantra’s picture

Title: Needs tests: RevisionLogInterface::getRevisionLogMessage » Remove unnecessary check that revision is instance of NodeInterface
miro_dietiker’s picture

Title: Remove unnecessary check that revision is instance of NodeInterface » Remove NodeInterface check for revision log
Status: Needs review » Fixed
Issue tags: -Needs tests

Yeah, thx, committed. Much complexity gone. :-)

Status: Fixed » Closed (fixed)

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