Skip to content

refactor: isolate index handling to BulkDependentResource interface #1504

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No 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? No Sign in to your account

Closed
wants to merge 48 commits into from

Conversation

metacosm
Copy link
Collaborator

No description provided.

@metacosm metacosm self-assigned this Sep 29, 2022
@metacosm metacosm requested a review from csviri September 29, 2022 13:24
@csviri
Copy link
Collaborator

csviri commented Sep 29, 2022

pls revert this change on original branch

private final List<ResourceDiscriminator<R, P>> resourceDiscriminator = new ArrayList<>(1);
private final BulkDependentResource<R, P> bulkDependentResource;
private ResourceDiscriminator<R, P> resourceDiscriminator;
private int currentCount;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same problem here, what mentioned on other PR, that this cannot be a global variable

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 16 Code Smells

31.1% 31.1% Coverage
0.0% 0.0% Duplication

*/
Result<R> match(R actualResource, P primary, int index, Context<P> context);

Optional<R> getSecondaryResource(P primary, int index, Context<P> context);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So maybe this should be List<R> getSecondryResources(P primary, Context<P> context)

@csviri csviri self-requested a review September 29, 2022 13:43
Base automatically changed from bulk-dependent-resources to next September 29, 2022 14:31
@metacosm
Copy link
Collaborator Author

metacosm commented Oct 4, 2022

Superseded by #1517

@metacosm metacosm closed this Oct 4, 2022
@metacosm metacosm deleted the isolate-index branch October 4, 2022 08:50
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants