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

Change DB to SQL #963

Merged
merged 193 commits into from
Oct 22, 2022
Merged

Change DB to SQL #963

merged 193 commits into from
Oct 22, 2022

Conversation

Dudrie
Copy link
Collaborator

@Dudrie Dudrie commented Aug 3, 2021

🎫 Description

Changes the used database from a MongoDB to a MySQL database. More information can be found in #957.

🔒 Closes

🐛 Issues

  • Attendances partially disappear after reloading the site.
  • Assessments: If you enter an assessment for a team and changes it afterwards (before going back to the overview) the server runs into an exception ("Students have different gradings.").
    -> This is only an issues for teams with exactly one student in it.
  • Presentations disappear after reloading the site.
  • Assessments don't get properly deleted if the corresponding hand-in gets deleted.
  • Substitutes: Saving substitutes fails.

Dudrie added 30 commits April 16, 2021 20:12
This one will be adjusted in the future.
This model is close to the current mongo documents. However, it can be changed/adjusted to better fit a sql database.
There is no "!" used anymore in the entities.
Tries to connect to the database when the server starts. If it can't connect, it'll  throw an error. If it can the SQLDatabaseModule ensures that

a) the database exists (if not it gets created).

b) the schema of the database matches the required one (if not it gets safely updated).
Those types are better suited for the job than the EventSubscriber because they allow easier conversion between encrypted string value and actual value stored in the property while using the correct types.
@Dudrie Dudrie marked this pull request as ready for review October 22, 2022 10:00
@nk-coding nk-coding merged commit f313021 into main Oct 22, 2022
@nk-coding nk-coding deleted the issue-957-Change_DB_to_SQL branch October 22, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation 🚀 performance Impacts performance 🗄 server Issue is related to the sever
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change DB to SQL
2 participants