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

Feature/SK-1265 | Implement SQL store #785

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open

Conversation

niklastheman
Copy link
Contributor

Implement SQL store

In order to implement sql stores for all entities some refactoring was needed:

  • MongoStateStore has been removed. All db queries are now done via the separate stores.
  • The API interface class has been removed. It was dependent upon mongo state store.
  • All the legacy endpoints in root (with the exception of /health and /get_controller_status) has been deprecated and will return 410 if called.
  • All previously missing required endpoints such ass add_client has been moved to api/v1
  • Client V1 has been removed. It used a lot of the legacy endpoints.
  • Client V2 (current) only uses /api/v1 endpoints
  • Legacy start session has been removed.
  • SQLAlchemy and psycopg2 dependencies added.
  • Postgres service added in the docker compose file.
  • A lot of API-tests has been removed as they are no longer relevant. Plans are in place to write new once for the /api/v1 routes.

This implementation enables running FEDn with an SQL-database. It makes use of an ORM called SQLAlchemy. This way FEDn can run with a number of different SQL-databases including PostgreSQL and SQLite.

@Wrede Wrede added HOLD feature New feature or request labels Jan 10, 2025
@github-actions github-actions bot added the minor label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request HOLD minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants