Skip to content
Snippets Groups Projects
Commit 46b67001 authored by Julian's avatar Julian
Browse files

Rename notes property of participations

parent 1adc29e7
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
......@@ -32,6 +32,16 @@ mutation touchDocumentation($documentationId: ID!) {
name
shortName
}
notesWithExtraMark {
id
extraMark {
id
}
}
notesWithNote {
id
note
}
isOptimistic
}
}
......
......@@ -81,6 +81,16 @@ query documentationsForCoursebook(
name
shortName
}
notesWithExtraMark {
id
extraMark {
id
}
}
notesWithNote {
id
note
}
isOptimistic
}
topic
......
......@@ -27,18 +27,18 @@ class ParticipationStatusType(
"base_absence",
)
extra_mark_notes = graphene.List(PersonalNoteType)
note_notes = graphene.List(PersonalNoteType)
notes_with_extra_mark = graphene.List(PersonalNoteType)
notes_with_note = graphene.List(PersonalNoteType)
@staticmethod
def resolve_extra_mark_notes(root: ParticipationStatus, info, **kwargs):
def resolve_notes_with_extra_mark(root: ParticipationStatus, info, **kwargs):
return NewPersonalNote.objects.filter(
person=root.person,
documentation=root.related_documentation,
extra_mark__isnull=False,
)
@staticmethod
def resolve_note_notes(root: ParticipationStatus, info, **kwargs):
def resolve_notes_with_note(root: ParticipationStatus, info, **kwargs):
return NewPersonalNote.objects.filter(
person=root.person,
documentation=root.related_documentation,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment