dzhw / zofar

10 stars 1 forks source link

Calendar: overlap-Function #536

Closed andreaschu closed 1 year ago

andreaschu commented 2 years ago
* [ ]  Überlappung einer Episode mit einem (gefilterten) JSON_ARRAY -> bool
  -> Array filtern
  -> aktuelle Episode ggf. aus dem Array entfernen
  -> Überlappung bestimmen
  -> return true/false
  ==> Kommunikation ans Projekt: bei allen boolschen Funktionen ist "false" der default-Rückgabewerte bei Fehlern etc.
  ~ overlap(JSON_ARRAY, index, [{"type":"NSET", "state":"done"}]) -> bool ~
  ~ overlap(JSON_ARRAY, filter1=[{"type":"NSET", "state":"done"}], filter2=[{"type":"STUD", "state":"done"}]) -> bool ~
  ~-> keine Episode doppelt~
  -> Konzeption und Implementation steht noch aus
  • [ ] implementiert als overlapEpisodeWithArray() --> hier auch Calendar() nutzen, refactoring
  • [x] test cases
  • [ ] code review

Originally posted by @christian-fr in https://github.com/dzhw/zofar/issues/505#issuecomment-1160470983

andreaschu commented 2 years ago

Is integrated in in lhc_methodentest inta014. Could be tested.

andreaschu commented 1 year ago

Scheint zu funktionieren.