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

Version 3.0: Sqlite #347

Merged
merged 281 commits into from
Dec 2, 2024
Merged

Version 3.0: Sqlite #347

merged 281 commits into from
Dec 2, 2024

Conversation

SteffenBrinckmann
Copy link
Contributor

@SteffenBrinckmann SteffenBrinckmann commented Oct 7, 2024

Summary by Sourcery

Migrate the backend from CouchDB to SQLite, introducing a new database schema and command-line tools for data management. Enhance the GUI with new features and themes, and update the build and CI systems to support the new architecture. Improve documentation and testing to ensure a smooth transition and robust functionality.

New Features:

  • Introduce a new SQLite-based backend for data storage, replacing the previous CouchDB implementation.
  • Add functionality to convert existing CouchDB data to the new SQLite format.
  • Implement a new command-line interface for managing the SQLite database, including data import and export.
  • Introduce a new GUI component for managing project groups and configurations.
  • Add support for creating and managing attachments to documents within the SQLite database.

Bug Fixes:

  • Fix issues with image handling in the GUI, ensuring proper display and management of image data.
  • Resolve inconsistencies in the handling of document metadata, ensuring accurate data representation.

Enhancements:

  • Refactor the codebase to improve modularity and maintainability, including the separation of string manipulation functions into a dedicated module.
  • Enhance the GUI with new themes and improved layout management for better user experience.
  • Improve the database schema to support more complex data structures and relationships.

Build:

  • Update the build system to include new dependencies required for the SQLite backend and GUI enhancements.

CI:

  • Update CI workflows to test against multiple Python versions and ensure compatibility with the new SQLite backend.

Deployment:

  • Modify deployment scripts to accommodate the new SQLite backend and updated project structure.

Documentation:

  • Update documentation to reflect changes in the backend architecture and new features introduced in the GUI.

Tests:

  • Add comprehensive tests for the new SQLite backend, including data import/export and conversion from CouchDB.
  • Introduce GUI tests to ensure the new components and features function as expected.

Chores:

  • Remove deprecated code and files related to the old CouchDB implementation.
  • Clean up the project directory structure to align with the new architecture.

@SteffenBrinckmann SteffenBrinckmann marked this pull request as ready for review November 26, 2024 11:50
jmurugan-fzj and others added 10 commits November 27, 2024 11:59
…doing operations related to the data hierarchy types.

- Moved all the database models out of dataverse to a common location (pasta_eln/database folder). Added respective ORM models (data_hierarchy_definition_orm_model.py & data_hierarchy_definition_model.py) for the data hierarchy tool.
- Added a data_hierarchy_document_adapter.py which helps in back and forth conversion of data hierarchy document.
- Adapted and added tests and fixed the failing ones too.
- Other minor refactorings.
- Added missing tests.
…-sqlite-backend

refactor(data_hierarchy): adapt datahierarchy tool to use sqlite backend
@jmurugan-fzj
Copy link
Contributor

@SteffenBrinckmann Do you need me to review this item?
Could you merge from main branch again? I still see some differences..!

@SteffenBrinckmann
Copy link
Contributor Author

No, I will clean and tidy everything and then yolo the branch into main

@SteffenBrinckmann SteffenBrinckmann merged commit 2af0193 into main Dec 2, 2024
22 checks passed
@SteffenBrinckmann SteffenBrinckmann deleted the sb_sqlite branch December 16, 2024 12:09
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.

3 participants