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-3094: Allow services to use different cache implementations #3147

Conversation

GCHQDeveloper314
Copy link
Member

@GCHQDeveloper314 GCHQDeveloper314 commented Jan 17, 2024

… and Properties classes to use these

Excludes Federated Store changes
Includes removing redundant inheritance from FederatedStoreCache.
Mostly changes to use FederatedStoreProperties instead of general properties and remove usage of empty properties
Also allow new property in deprecated method
@GCHQDeveloper314
Copy link
Member Author

Further work is required to add testing for the new multi-cache implementation and to remove as much use of deprecated code as possible, while also adding tests to ensure external code using deprecated methods can still work to some degree.

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: Patch coverage is 81.75676% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 66.70%. Comparing base (a8134c9) to head (eede3c9).

Files Patch % Lines
...a/uk/gov/gchq/gaffer/cache/CacheServiceLoader.java 80.43% 6 Missing and 3 partials ⚠️
.../src/main/java/uk/gov/gchq/gaffer/store/Store.java 68.96% 6 Missing and 3 partials ⚠️
...q/gaffer/federatedstore/FederatedGraphStorage.java 50.00% 3 Missing and 1 partial ⚠️
...gov/gchq/gaffer/federatedstore/FederatedStore.java 80.00% 1 Missing and 1 partial ⚠️
.../src/main/java/uk/gov/gchq/gaffer/cache/Cache.java 93.75% 1 Missing ⚠️
.../src/main/java/uk/gov/gchq/gaffer/graph/Graph.java 0.00% 1 Missing ⚠️
...ration/handler/FederatedAddGraphHandlerParent.java 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3147      +/-   ##
=============================================
+ Coverage      66.34%   66.70%   +0.36%     
- Complexity      2544     2556      +12     
=============================================
  Files            907      907              
  Lines          28975    29063      +88     
  Branches        3216     3239      +23     
=============================================
+ Hits           19223    19387     +164     
+ Misses          8319     8241      -78     
- Partials        1433     1435       +2     

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

@GCHQDeveloper314 GCHQDeveloper314 marked this pull request as ready for review February 8, 2024 17:13
@GCHQDeveloper314 GCHQDeveloper314 merged commit c5b4c5a into develop Mar 12, 2024
26 checks passed
@GCHQDeveloper314 GCHQDeveloper314 deleted the gh-3094-allow-services-to-use-different-cache-implementations branch March 12, 2024 15:10
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.

Allow different services to use different cache implementations
3 participants