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

Add additional database models and RequirementController #11

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

Dentsor
Copy link
Member

@Dentsor Dentsor commented Dec 18, 2021

Work in progress

@Dentsor Dentsor requested a review from LarsSelbekk December 18, 2021 23:46
@Dentsor
Copy link
Member Author

Dentsor commented Dec 18, 2021

What's missing, that is not controllers? More sample data maybe?

@Dentsor Dentsor linked an issue Dec 19, 2021 that may be closed by this pull request
3 tasks
@Dentsor Dentsor added the API Related to API development label Dec 19, 2021
@Dentsor Dentsor self-assigned this Dec 19, 2021
@Dentsor Dentsor marked this pull request as ready for review December 19, 2021 20:59
Removed test-endpoint in ResourceController
Copy link
Member

@LarsSelbekk LarsSelbekk left a comment

Choose a reason for hiding this comment

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

Excellent. Took some time to understand how ASP.NET/EF Core does this stuff, but I think I get it now. Created #13 for the future. Also noticed that there's no index on the Discriminator-column of Requirements. I'm assuming that won't be a problem for a long long time, but it still irks me. Seems possible to do, but y'know, premature optimization is the root of all evil and whatevs. I think it'd be a composite index (Discriminator, RequirementID) for best searching.

@LarsSelbekk LarsSelbekk merged commit 190a0f9 into master Jan 13, 2022
@LarsSelbekk LarsSelbekk deleted the i1/database-models branch January 13, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to API development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up models, database and ORM
2 participants