Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Revert "gh-974: Fix gafferpy to work with Gaffer alpha 1"
Browse files Browse the repository at this point in the history
This reverts commit cf9d754.
  • Loading branch information
t92549 committed Mar 1, 2022
1 parent cf9d754 commit 2ec511c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
22 changes: 1 addition & 21 deletions python-shell/src/gafferpy/gaffer_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ class GetTraits(Operation):
CLASS = 'uk.gov.gchq.gaffer.store.operation.GetTraits'

def __init__(self,
current_traits=True,
current_traits,
options=None):
super().__init__(
_class_name=self.CLASS, options=options)
Expand All @@ -696,26 +696,6 @@ def to_json(self):
operation['currentTraits'] = self.current_traits
return operation

class HasTrait(Operation):
CLASS = 'uk.gov.gchq.gaffer.store.operation.HasTrait'

def __init__(self,
trait,
current_traits=True,
options=None):
super().__init__(
_class_name=self.CLASS, options=options)

self.trait = trait
self.current_traits = current_traits

def to_json(self):
operation = super().to_json()

operation['trait'] = self.trait
operation['currentTraits'] = self.current_traits
return operation


class AddElements(Operation):
"""
Expand Down
1 change: 0 additions & 1 deletion python-shell/src/test/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def test_execute_get(self):
"uk.gov.gchq.gaffer.operation.impl.function.Filter",
"uk.gov.gchq.gaffer.operation.impl.function.Transform",
"uk.gov.gchq.gaffer.operation.impl.function.Aggregate",
"uk.gov.gchq.gaffer.store.operation.HasTrait",
"uk.gov.gchq.gaffer.store.operation.GetTraits",
"uk.gov.gchq.gaffer.mapstore.operation.CountAllElementsDefaultView",
"uk.gov.gchq.gaffer.operation.export.graph.ExportToOtherAuthorisedGraph",
Expand Down
1 change: 0 additions & 1 deletion python-shell/src/test/test_connector_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def test_execute_get(self):
"uk.gov.gchq.gaffer.operation.impl.function.Filter",
"uk.gov.gchq.gaffer.operation.impl.function.Transform",
"uk.gov.gchq.gaffer.operation.impl.function.Aggregate",
"uk.gov.gchq.gaffer.store.operation.HasTrait",
"uk.gov.gchq.gaffer.store.operation.GetTraits",
"uk.gov.gchq.gaffer.mapstore.operation.CountAllElementsDefaultView",
"uk.gov.gchq.gaffer.operation.export.graph.ExportToOtherAuthorisedGraph",
Expand Down

0 comments on commit 2ec511c

Please sign in to comment.