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

Gh-3237 Implement DeleteElements for Map Store #3239

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

p29876
Copy link
Member

@p29876 p29876 commented Jun 13, 2024

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 80.31496% with 25 lines in your changes missing coverage. Please review.

Project coverage is 67.15%. Comparing base (4520b25) to head (7790adf).

Files Patch % Lines
...q/gaffer/operation/impl/delete/DeleteElements.java 76.08% 11 Missing ⚠️
.../uk/gov/gchq/gaffer/commonutil/stream/Streams.java 0.00% 8 Missing ⚠️
...hq/gaffer/mapstore/impl/DeleteElementsHandler.java 91.22% 0 Missing and 5 partials ⚠️
...java/uk/gov/gchq/gaffer/proxystore/ProxyStore.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3239      +/-   ##
=============================================
+ Coverage      67.07%   67.15%   +0.07%     
- Complexity      2558     2569      +11     
=============================================
  Files            919      921       +2     
  Lines          29492    29619     +127     
  Branches        3288     3296       +8     
=============================================
+ Hits           19782    19890     +108     
- Misses          8261     8277      +16     
- Partials        1449     1452       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cn337131 cn337131 marked this pull request as ready for review June 18, 2024 12:28
@tb06904
Copy link
Member

tb06904 commented Jun 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions 3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

I think the duplication is largely due to a wider issue where many of the core classes used here are interfaces which expect class instance variables in the implementing classes. This results in all implementing classes creating the same variables and method overrides, one way to fix this would be to use abstract classes where appropriate instead but it is a larger problem to fix.

@@ -412,6 +413,11 @@ protected OutputOperationHandler<GetTraits, Set<StoreTrait>> getGetTraitsHandler
return new GetTraitsHandler(TRAITS);
}

@Override
protected OperationHandler<? extends DeleteElements> getDeleteElementsHandler() {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

I know we are going to implement the accumulo logic but could we return an empty handler that does nothing instead. Just good practice. Or put a comment in to say we will revisit it.

Copy link

sonarcloud bot commented Jul 1, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

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.

Implement target delete for Map Store
4 participants