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

read/write commands in backend #2652

Open
wants to merge 22 commits into
base: feature/relational-db
Choose a base branch
from

Conversation

r-peschke
Copy link
Member

The read/write commands should be directed to an sql-part in the backend, that executes the commands with a direct connection to the database, using tables and not the collections with models-table only.
The reader part (openslides_backend/database/sql_read_database_backend_service.py) is connected and used, but still with collection/models-table. A template for the writer part could be found in openslides-datastore-service/datastore/writer/postgresql_backend/sql_database_backend_service.py, but has to be called analogue to the reader.

@r-peschke r-peschke added this to the 4.2 milestone Sep 30, 2024
@r-peschke r-peschke requested a review from rrenkert September 30, 2024 09:08
@r-peschke r-peschke assigned rrenkert and r-peschke and unassigned r-peschke Sep 30, 2024
@Elblinator Elblinator modified the milestones: 4.2, 4.3 Dec 13, 2024
Intevation Common Account and others added 18 commits January 13, 2025 11:35
- commented out defunct translate.py code (will need to be rewritten
  later)
- removed custom di from main.py (comments still need to be disabled)
- added with_database_context function back in (should work, didn't
  check though)
- added RequestEvents back in as simple dataclasses
- Fixed the base test classes (though BaseSystemTestCase may possibly
  need an replacement for the ShutdownService code (idk what that did
tbh, so a comment was left)
- Removed ConnectionHandler injection from test_save_saml_account (it
  was used in the change_nothing test to see whether an attempt to write
data was actually made, idk if it's still necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

relational DB: Use read/write-interface from datastore and build it locally in backend
4 participants