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-31680: Provided languageCode param to REST Views #51

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

barw4
Copy link
Member

@barw4 barw4 commented Jun 22, 2020

Question Answer
JIRA issue EZP-31680
Type improvement
Target version eZ Platform v3.0
BC breaks no
Tests pass yes
Doc needed yes

This PR is a direct continuation of ezsystems/ezpublish-kernel#3043

REST views will now utilize languageCode param in order to find Content in the chosen language.

Related admin-ui PR: ezsystems/ezplatform-admin-ui#1407

Side note: Rest visitor is not able to receive any language info as it is created out of Location object - https://github.com/ezsystems/ezplatform-rest/blob/master/src/lib/Server/Output/ValueObjectVisitor/RestContent.php#L41 It would be great to force a language on this line, but I don't think its really possible right now without some heavy alterations.

TODO:

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

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 v3.0.5 with branches.

@micszo micszo removed their assignment Jun 23, 2020
@lserwatka lserwatka merged commit 850bc59 into 1.0 Jun 23, 2020
@lserwatka lserwatka deleted the EZP-31680 branch June 23, 2020 13:26
@lserwatka
Copy link
Member

You can merge it up.

@barw4
Copy link
Member Author

barw4 commented Jun 23, 2020

Done: bef21af

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants