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 2553 add Iterable classes from koryphe and remove closeable Iterable, iterator and wrapper classes #2583

Merged
merged 58 commits into from
Apr 14, 2022

Conversation

r32575
Copy link
Contributor

@r32575 r32575 commented Feb 8, 2022

Closeable iterator and iterable have been removed from Koryphe for v2. This issue removes closeable iterator, iterable and wrapper from Gaffer. Other changes include:

  • updating the testing framework to AssertJ
  • fixing bugs discovered

r32575 and others added 30 commits January 6, 2022 16:15
… 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
* gh-2571: Fixed matchedVertex behaviour and added new ITs

* gh-2571: Fixed checkstyle

* gh-2571: Updated test name
…bug caused by the introduction of the Koryphe version of ChainedIterable. Fixed tests
…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
* 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>
@r32575 r32575 changed the title Gh 2553 add closeable classes from koryphe and remove closeable Iterable, iterator and wrapper Gh 2553 add Iterable classes from koryphe and remove closeable Iterable, iterator and wrapper classes Apr 5, 2022
Copy link
Member

@GCHQDeveloper314 GCHQDeveloper314 left a 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.

@r32575 r32575 marked this pull request as ready for review April 6, 2022 11:56
@codecov-commenter
Copy link

codecov-commenter commented Apr 7, 2022

Codecov Report

❗ No coverage uploaded for pull request base (v2-alpha@b3f6e97). Click here to learn what that means.
The diff coverage is n/a.

@@             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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3f6e97...b20767c. Read the comment docs.

Copy link
Contributor

@t92549 t92549 left a 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.

Copy link
Contributor

@GCHQDev404 GCHQDev404 left a comment

Choose a reason for hiding this comment

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

class deleted.

Copy link
Contributor

@GCHQDev404 GCHQDev404 left a comment

Choose a reason for hiding this comment

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

class deleted.

@t92549 t92549 merged commit 9ab95bc into v2-alpha Apr 14, 2022
@t92549 t92549 deleted the gh-2553-add-closeable-classes-from-koryphe branch April 14, 2022 14:52
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.

Add Closeable classes from Koryphe
6 participants