Skip to content

v2.0.0

Compare
Choose a tag to compare
@tiptenbrink tiptenbrink released this 16 Oct 22:23
· 455 commits to main since this release
d120122
  • Major refactor of backend code (first DSAV-Dodeka/backend#56 and then DSAV-Dodeka/backend#59). The first got rid of the whole DbOperations and the unnecessary extra layer and was only about the database. The second completely refactored how the code was organized, separating out all the important functions relating to auth. It partially re-introduced some extra layer for database access to allow the actual application to decide on the schema. The new version is much more easily testable and does not rely on fragile mocks. Another major upside to this is that it allows for the package to be completely separated or removed in the future, without impacting the application-specific code.
  • Introduction of roles through the scope mechanism (contributions for delete role by @lalamiko7), so now someone can have a "Bestuur" role or ".ComCom" role. There are no uses for it, yet.
  • Klassementen! Instead of just loading a .json, you can now add events and update points, and even have them be hidden by a certain date (major contributions by @lalamiko7). This requires quite a few complex queries.
  • A number of dependencies have been upgraded. The most major one is v2 of Pydantic (which we use to validate all our data models), which now has a Rust core and should mean some performance boost.
  • We now do some linting on our code (using ruff)
  • Some minor tests and other general codebase improvements
  • Redis has been updated from version 6.2 to 7.2 and Postgres from 14 to 16.