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

Add InvalidParameterHandler to all repository iterators to manage paging #6342

Merged
merged 7 commits into from
Mar 31, 2022

Conversation

alexandra-bucur
Copy link

@alexandra-bucur alexandra-bucur commented Mar 24, 2022

Description

I added the InvalidParameterHandler to all iterators (for both entities and relationships) in order to address the paging issue (infinite looping if page size was 0).

How Has This Been Tested?

Manually, with Asset Catalog, requesting asset context for a few entities + FVTs

…no more entities when cache empty

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@alexandra-bucur alexandra-bucur changed the title RepositoryRelatedEntitiesIterator - populate cache once and announce no more entities when cache empty Add InvalidParameterHandler to all repository iterators to manage paging Mar 25, 2022
…ormatting fixes

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Copy link
Contributor

@mandy-chessell mandy-chessell left a comment

Choose a reason for hiding this comment

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

There are minor formatting issues. Also one thing to check is how a maxPageSize of zero is handled? It is possible that 0 is set in the server config and so the loops in the iterator need to handle it.

Alexandra Bucur added 3 commits March 29, 2022 10:53
…e specific formatting fixes

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@alexandra-bucur alexandra-bucur dismissed mandy-chessell’s stale review March 31, 2022 09:38

I resolved the requests

@alexandra-bucur alexandra-bucur merged commit 17f8492 into odpi:master Mar 31, 2022
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