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

Improve/data persistence #58

Closed
wants to merge 24 commits into from
Closed

Conversation

shenchenruwo
Copy link

@shenchenruwo shenchenruwo commented Nov 8, 2024

Previously, we tried to use the Backend concept for both data persistence and data integration.
Now, we decided to split these two concepts and use the existing Backend ObjectStores for just the data persistence.

Concretely, this PR does the following:

  1. Remove the abstract Backend class (backends.py), as well as their concrete implementations (CouchDBBackend, LocalFileBackend), as it is no longer needed
  2. Remove the Referable.source attribute, as it was only needed for the Backend class
  3. Remove methods related to the Referable.source attribute, such as update() and commit() (base.py), as they were used together to perform the data integration.
  4. Adapt other related codes such as tutorials and tests to reflect these changes
  5. Adapt documentation to reflect these changes

sdk/basyx/aas/backend/__init__.py Outdated Show resolved Hide resolved
sdk/basyx/aas/examples/tutorial_backend_couchdb.py Outdated Show resolved Hide resolved
sdk/basyx/aas/model/provider.py Outdated Show resolved Hide resolved
sdk/test/backend/test_couchdb.py Outdated Show resolved Hide resolved
sdk/test/backend/test_couchdb.py Outdated Show resolved Hide resolved
sdk/test/backend/test_local_file.py Outdated Show resolved Hide resolved
sdk/test/backend/test_local_file.py Outdated Show resolved Hide resolved
@s-heppner s-heppner changed the base branch from main to develop January 20, 2025 09:32
@s-heppner s-heppner force-pushed the improve/data_persistence branch from aa8eff5 to e8a4d1f Compare January 20, 2025 10:12
@s-heppner s-heppner force-pushed the improve/data_persistence branch from e8a4d1f to 4c5217d Compare January 20, 2025 10:16
@s-heppner
Copy link

@s-heppner s-heppner closed this Jan 20, 2025
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.

2 participants