asiliuk / BsuirScheduleApp

A new version of famous Bsuir Schedule app, rewritten in Swift/SwiftUI
https://asiliuk.github.io/BsuirScheduleApp/
33 stars 5 forks source link

Unusual employee's API response #183

Open Archichil opened 3 months ago

Archichil commented 3 months ago

Employee's API comes with "startDate": null, "endDate": null, "startExamsDate": null, "endExamsDate": null, but with actual pairs. (ex. https://iis.bsuir.by/api/v1/employees/schedule/e-shostak) e-shostak.json App doesn't show pairs with this type of response. (I think that these null fields are the issue)

Archichil commented 3 months ago

I can define app's behavior as expected, because without startDate we don't really know from what day should we count. But it's possible to improve the app's behavior by switching to the week schedule view if the actual schedule is not empty. Currently, the app redirects to the exams view, which is empty.

Archichil commented 2 months ago

Instances of empty fields have also been seen in the group schedule.