Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENEUROPA-1798: Page header content is not reflecting changes made before node is published #215

Merged
merged 14 commits into from
May 29, 2019

Conversation

hernani
Copy link
Member

@hernani hernani commented Apr 25, 2019

OPENEUROPA-1798

Description

[Insert description here]

Change log

  • Added:
  • Changed:
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

];
$node = $this->getNode();
if ($node->get('oe_summary')->isEmpty()) {
return $metadata;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not correct. Below we are also adding the news and publication date metas which do not have anything to do with the summary and would not be shown if the summary field is empty. So we cannot return early in this case.

$supported = [
'entity.node.canonical',
'entity.node.latest',
'entity.node.revision',
Copy link
Contributor

Choose a reason for hiding this comment

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

It's missing the route: entity.node.latest_version. This is what users see as part of the editorial workflow. And I wonder if entity.node.latest actually exists anywhere?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep I think entity.node.latest was a mistake of mine.

Copy link
Member Author

@hernani hernani left a comment

Choose a reason for hiding this comment

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

Looks ok.

Copy link
Contributor

@brummbar brummbar left a comment

Choose a reason for hiding this comment

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

Approving on behalf of Hernani's last review, since he cannot approve his own PR.

@upchuk upchuk merged commit a10be2f into master May 29, 2019
@upchuk upchuk deleted the OPENEUROPA-1798 branch May 29, 2019 09:05
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