-
Notifications
You must be signed in to change notification settings - Fork 354
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 2553 add Iterable classes from koryphe and remove closeable Iterable, iterator and wrapper classes #2583
Conversation
…and added a test for new constructor
… iterables/iterators to use java.io.Closeable and java.lang.Iterable instead. Also amended the tests
… and removed the WrappedCloseableIterable. Tests function
…eIterable and the CloseableIterable types. Tests function
…eIterable and the CloseableIterable types. The GraphSerialisableTest test does not function
…eIterable and the CloseableIterable types. Tests function
…ds which was causing GraphSerialisableTest to fail. Reset TestStore.mockStore for both. All Graph test now pass
…, instead implemented Iterable. Fixed tests
…bug caused by the introduction of the Koryphe version of ChainedIterable. Fixed tests
…terable. Test pass
… test class casts. Test pass
…terable. FederatedStoreGetTraitsTest fails
…arrying out each test causing it to fail when run as part of the maven tests. In isolation it passed. Found that the FederatedGraphStorageTraitsTest was also not clearing the cache. Added the before and after cache clearance and bumped the JUnit version of FederatedStoreGetTraitsTest from 4 to 5. Tests now pass
…ry blocks with a close-if-auto-closeable check
…er builds successfully
* gh-2573: Replace hasTrait usages with Operation * gh-2573: Fix tests by making exception more explicit * gh-2573: Fixed exception issues * gh-2573: Simplified but still failing test * gh-2573: Changed to user * gh-2573: Changed FederatedGetTraitsHandler to return DYNAMIC_SCHEMA * gh-2573: Use old function for FederatedOperationChainValidator * gh-2573: Fixed FederatedStoreUtil * gh-2573: Added Deprecation notice * gh-2573: Cherry pick federated store tests fix from 2553 * Revert "gh-2573: Cherry pick federated store tests fix from 2553" This reverts commit c367555. * gh-2573: Manual fix of FederatedStoreGetTraitsTest cache * gh-2573: Changed HasTraitHandler to not send Federated loop option
* Update docs links in README * Revert "Update docs links in README" This reverts commit 2d87bf3. * gh-2559 added hasTrait, its handler and corresponding tests (#2561) * gh-2559 added hasTrait, its handler and corresponding tests * gh-2559 amended comment in HasTrait, added additional tests for the handler * gh-2559 null check & tidy test Co-authored-by: t92549 <80890692+t92549@users.noreply.github.com> * Update links to Gaffer docs in all files (#2566) Co-authored-by: t92549 <80890692+t92549@users.noreply.github.com> * gh-2560 GetTraitsHandler is initalised with traits dependednt on store type * gh-2560 reviewed comments * gh-2560 unused imports * gh-2560 review comments * checkstyle * gh-2560 fixed federated test * gh-2560 fixed GraphTest * gh-2560 fixed TestStore * gh-2560-getTraitsOperation (#2582) Removing redundant adding of GetTraitHandler from addAdditionalOperationHandlers() because it has its own method getGetTraitsHandler(). * gh-2560: Added fix to SingleUseMapStoreWithoutVisibilitySupport * gh-2560: Fixed Set copy issue in GetTraitsHandler constructor * gh-2560: Added extra protections to GetTraitsHandler Co-authored-by: GCHQDeveloper314 <94527357+GCHQDeveloper314@users.noreply.github.com> Co-authored-by: t92549 <80890692+t92549@users.noreply.github.com> Co-authored-by: GCHQDev404 <45399082+GCHQDev404@users.noreply.github.com>
...va/uk/gov/gchq/gaffer/accumulostore/operation/handler/GetElementsBetweenSetsHandlerTest.java
Show resolved
Hide resolved
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.
The diff for this PR contains changes to lots of files which have already been merged (removal of hbase and parquet) I think this is because git still sees this as a change for some reason. Rebasing the branch will fix that.
core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/ChainedIterable.java
Outdated
Show resolved
Hide resolved
...ommon-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/ConsumableBlockingQueue.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## v2-alpha #2583 +/- ##
===========================================
Coverage ? 65.62%
Complexity ? 2416
===========================================
Files ? 862
Lines ? 26996
Branches ? 3132
===========================================
Hits ? 17717
Misses ? 7912
Partials ? 1367 Continue to review full report at Codecov.
|
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.
Just a bunch of questions. My main comment is that, although I like most of the reformatting you have done (but not all of it), I think it makes the PR way harder to actually review when most of it is formatting, it almost hides the actual changes.
core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/ChainedIterable.java
Outdated
Show resolved
Hide resolved
core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/EmptyIterable.java
Outdated
Show resolved
Hide resolved
core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/EmptyIterable.java
Show resolved
Hide resolved
core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/iterable/LimitedIterableTest.java
Outdated
Show resolved
Hide resolved
core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/iterable/StreamIterableTest.java
Show resolved
Hide resolved
core/operation/src/test/java/uk/gov/gchq/gaffer/operation/OperationChainTest.java
Show resolved
Hide resolved
rest-api/core-rest/src/main/java/uk/gov/gchq/gaffer/rest/service/v1/OperationService.java
Show resolved
Hide resolved
.../src/main/java/uk/gov/gchq/gaffer/accumulostore/operation/handler/GetAllElementsHandler.java
Show resolved
Hide resolved
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.
class deleted.
...d-store/src/test/java/uk/gov/gchq/gaffer/federatedstore/FederatedGraphStorageTraitsTest.java
Outdated
Show resolved
Hide resolved
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.
class deleted.
Closeable iterator and iterable have been removed from
Koryphe
for v2. This issue removes closeable iterator, iterable and wrapper fromGaffer
. Other changes include:AssertJ