Skip to content

Commit

Permalink
fix serde decorator for MongoDocumentStore and MongoBackingStore
Browse files Browse the repository at this point in the history
add mongo config to base.yaml

Co-authored-by: khoaguin <[email protected]>
  • Loading branch information
shubham3121 and khoaguin committed Sep 19, 2024
1 parent cb9a758 commit a2084be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions packages/grid/helm/examples/dev/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ postgres:
secret:
rootPassword: example

# Deprecated, support will be removed in 0.9.3
mongo:
resourcesPreset: null
resources: null

secret:
rootPassword: example

seaweedfs:
resourcesPreset: null
resources: null
Expand Down
8 changes: 4 additions & 4 deletions packages/syft/src/syft/store/mongo_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class MongoBsonObject(StorableObjectType):
pass


class MongoBackingStore(KeyValueBackingStore):
pass


@serializable(
attrs=["index_name", "settings", "store_config"],
canonical_name="MongoBackingStore",
version=1,
)
class MongoBackingStore(KeyValueBackingStore):
pass


@serializable(attrs=["storage_type"], canonical_name="MongoStorePartition", version=1)
class MongoStorePartition(StorePartition):
"""Mongo StorePartition
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ commands =
'

; wait for everything else to be loaded
tox -e dev.k8s.ready -- frontend backend postgres proxy seaweedfs registry
tox -e dev.k8s.ready -- frontend backend mongo proxy seaweedfs registry

bash -c 'python -c "import syft as sy; print(\"Migrating from syft version:\", sy.__version__)"'

Expand Down

0 comments on commit a2084be

Please sign in to comment.