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

Extend model relationships and validations #2705

Open
MrSerth opened this issue Dec 13, 2024 · 0 comments
Open

Extend model relationships and validations #2705

MrSerth opened this issue Dec 13, 2024 · 0 comments
Labels
bug ruby Pull requests that update Ruby code

Comments

@MrSerth
Copy link
Member

MrSerth commented Dec 13, 2024

Currently, the different models are not linked as good as possible. Some lack a respective belongs_to or has_many relationship, which would ease accessing the different related objects. Also, some model validations can be enhanced. We should do that.

Next, some enums (like the cause for submissions and testruns) are missing. So far, we've only added them as enums to Rails (rather than SQL), but even this step is missing.

Furthermore, there might also be some situations where extended validations (like foreign key constraints) can be added to the database. Historically, those were missing.

Once the missing foreign key constrains have been identified, one should clear the production database from invalid entries (in a migration).

@MrSerth MrSerth added bug ruby Pull requests that update Ruby code labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ruby Pull requests that update Ruby code
Projects
None yet
Development

No branches or pull requests

1 participant