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

Merged
merged 74 commits into from
Jan 20, 2025
Merged

Feature/SK-1265 | Implement SQL store #785

merged 74 commits into from
Jan 20, 2025

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
@niklastheman niklastheman removed the HOLD label Jan 13, 2025
Copy link
Member

@Wrede Wrede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work!

@Wrede Wrede merged commit 449e6a3 into master Jan 20, 2025
17 checks passed
@Wrede Wrede deleted the feature/SK-1265 branch January 20, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants