Navigation Menu

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

EZP-29106: Refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes #2319

Merged
merged 7 commits into from May 8, 2018

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented Apr 30, 2018

Question Answer
JIRA issue EZP-29106
Bug/Improvement yes
New feature no
Target version 6.x
BC breaks no
Tests pass yes
Doc needed no

Partial refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes in descendants classes

TODO:

  • Implement feature / fix a bug.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

…eObjectVisitor/** to be able to add custom attributes in descendants classes
@adamwojs adamwojs changed the title EZP-29106: Partial refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes in descendants classes EZP-29106: Refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes Apr 30, 2018
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

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

+1

Was about to suggest this also for RestExecutedView, for the use case of enhancing Search for SubItems and optionally UDW browse views, but as it visits the content / location values separately, it's perhaps more of an topic for later to extend that somehow, but only for Views when asked for (by custom content type).

@micszo micszo self-assigned this May 4, 2018
Copy link
Member

@micszo micszo left a comment

Choose a reason for hiding this comment

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

QA Approved on eZ Platform EE v1.13.2.

}

// @todo FIXME: What exception to use?
throw new \Exception('Undefined version status: ' . $status);
Copy link
Member

Choose a reason for hiding this comment

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

\RuntimeException because in this case it would be an internal software error

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in ae1063e.

…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
@adamwojs
Copy link
Member Author

adamwojs commented May 8, 2018

PR updated according to @alongosz suggestions.

…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
@lserwatka lserwatka merged commit 864bd56 into ezsystems:6.13 May 8, 2018
@micszo micszo removed their assignment May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants