neo4j-examples / neo4j-ogm-university

Example Project for Neo4j OGM
53 stars 37 forks source link

No save on checklist UI elements - bug or feature? #15

Closed hjohanns closed 6 years ago

hjohanns commented 6 years ago

I try to understand this great piece of code. It seems to me that none of the checklists (subject taught by teachers, students enrolled into classes, etc.) are saved, in the sense that you will find them back when reloading the object. Sorry for the question, but is the code not working as it should, or it is just incomplete and left as an exercise for the reader? The answer will definitely help me, but also others. Thanks, hj

hjohanns commented 6 years ago
It must be in the angular part, because I can see that the list of subjects on a department are returned by the /department/ call returns a list, for instance: subjects […]
0 {…}
@id 2
teachers []
courses []
id 225
name Mechanical Engineering

But it does not display in the checklists.

hjohanns commented 6 years ago

What I am trying to understand now is the loading of the checklist, where there must be a double loading: all the possible answers (to build the checklist) vs the current item (the ones that are checked). I cannot find where that difference is, in the code or in object argument.

hjohanns commented 6 years ago

I think I found the culprit. See the pull request https://github.com/neo4j-examples/neo4j-ogm-university/pull/16 for proposed code change. I am a beginner, so a review look will be very appreciated! Thanks, hj