-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-7717: UDW location endpoint additional permission info #1197
IBX-7717: UDW location endpoint additional permission info #1197
Conversation
|
||
class LoadExtendedNodeInfoRequest extends BaseParser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- final & internal
- Naming: ATM the name suggests we're dealing with a value. How about
LoadExtendedNodeInfoStructParser
(see the next comment for reasons behind "Struct").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 👍
- There is already
Ibexa\AdminUi\REST\Input\Parser\ContentTree\LoadSubtreeRequest
and I decided to follow with this convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Point 1 is still not resolved. REST parsers are final
across the entire system which is also the case for most of the classes in general.
@@ -34,7 +34,21 @@ public function getContentCreateLimitations(Location $parentLocation): LookupLim | |||
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException | |||
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException | |||
*/ | |||
public function getContentUpdateLimitations(Location $parentLocation): LookupLimitationResult; | |||
public function getContentUpdateLimitations(Location $location): LookupLimitationResult; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for changing existing contract parameter name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it didn't match the parameter name from one of the interface's implementations and it did not make much sense to me. As you can see in the original PR, both names did not match each other back then:
- interface: https://github.com/ezsystems/ezplatform-admin-ui/pull/1273/files#diff-14fc449f7ecdcea5e8c83c4f5be3656dfceee1ed2df4eb40cea59c2e9ae36d16R37
- implementation: https://github.com/ezsystems/ezplatform-admin-ui/pull/1273/files#diff-c3310f3f33562f15c00a3cfdee25ffbd7f0e88db43c1dea1fe87001dd0ecb785R211
It was also later set to parentLocation
in 4.6 here: https://github.com/ibexa/admin-ui/pull/872/files#diff-d1039d1a73d7e40070b874e926dbb079bee41c510c4b14ef555ba1d8f7a66f20R32
But I think this should have been called location
as done in the initial method implementation: https://github.com/ezsystems/ezplatform-admin-ui/pull/1273/files#diff-c3310f3f33562f15c00a3cfdee25ffbd7f0e88db43c1dea1fe87001dd0ecb785R211.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be aware that if someone used named parameters, it would be a BC break. However AFAIK we haven't specified our position on BC for that, so for now I'll accept 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I think last time we tentatively agreed that we are not going to have BC on parameters naming.
src/lib/REST/Input/Parser/ContentTree/LoadExtendedNodeInfoRequest.php
Outdated
Show resolved
Hide resolved
f206f08
to
7be0178
Compare
|
||
class LoadExtendedNodeInfoRequest extends BaseParser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Point 1 is still not resolved. REST parsers are final
across the entire system which is also the case for most of the classes in general.
src/lib/REST/Output/ValueObjectVisitor/ContentTree/NodeExtendedInfo.php
Outdated
Show resolved
Hide resolved
src/lib/REST/Output/ValueObjectVisitor/ContentTree/NodeExtendedInfo.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on IbexaDXP 4.5 commerce.
c8a9853
to
3952e72
Compare
3952e72
to
4d2b266
Compare
Quality Gate passedIssues Measures |
Related PRs:
Description:
Frontend note: there's backported loader mixin from 4.6, used in TB to show loader when request is loading.
Example
Request:
path:
api/ibexa/v2/location/tree/{locationId}/extended-info
JSON Response:
XML Response:
Documentation:
This is an internal endpoint, no doc required.
Checklist:
@ibexa/engineering
).