-
Notifications
You must be signed in to change notification settings - Fork 15
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-8534: Improved iteration over relation list #444
Conversation
0bb1f71
to
e100dca
Compare
e100dca
to
b9f0825
Compare
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.
Foremost I'm missing some minimal test coverage. It can be just unit one. Right now we have a helper which implementation is "danging" - not used anywhere. Any future issues would be visible only from ibexa/rest POV, which is not enough.
Other remarks:
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 agree that a minimal unit test coverage is needed. I see what you're doing and I agree with it.
) { | ||
} | ||
|
||
public function fetch(int $offset, int $limit): Iterator |
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 see we've probably made a mistake by not marking this BatchIteratorAdapter::fetch
as returning Traversable
(either Iterator
and IteratorAgregate
)
@adamwojs & everyone - can we consider expanding return type in 5.x?
|
No QA required as this doesn't affect production code here. Used by REST and covered by functional tests there. |
Description:
For QA:
Documentation: