-
Notifications
You must be signed in to change notification settings - Fork 22
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
Reimplement "School" entity, list and details view #42
Comments
what exactly should the school details feature look like? just a list of childs visiting this school? or more details of the school itself? |
Also, a list of the students studying in that school queried from the database would be good |
I figured out a design for the connection between schools and children:
|
Sounds good. For the displaying and navigation between Child and School you can use the But if you are saving the link on school as well as child side, isn't that redundant and in danger of becoming inconsistent when an edit is not properly implemented (or simply disturbed by connectivity problems)? In the long run I would like a history of schools a child has attended (i.e. 2015: class 9 at School X; 2016: class 10 at School X; 2017: class 11 at School Y). But for now let's keep it simple for the first implementation. |
I was also thinking about implementing it on just one side. But ist'nt it a kind of slow when you always have to look through every child in every school object to find the school a child is visting, when you just save the child ID's in the school object. |
Yeah, might be slow, especially with many child records in the db. But saving redundant information is a big anti-pattern. To improve performance we could set up an index in pouchdb if necessary (Although the search, which is doing that, seems really slow as well on the pilot site). Maybe we should go for the desired endresult right away:
|
Any work happening on this? Let's keep the student link/lookup as it is, for the time being. Once we look further into modeling school enrollment, this can be refined. I would like to release a proper UI for SchoolDetails, including some basic fields (see #42 (comment)) |
Reimplement the School module of the existing prototype for the HELGO project.
The text was updated successfully, but these errors were encountered: