vsite-hr / mentor

Online learning platform.
MIT License
3 stars 2 forks source link

Lecture head unit #11

Closed gkresic closed 7 years ago

gkresic commented 7 years ago

Support assigning one Unit as "representative" unit for this Lecture. For example, its thumbnail will be used as Lectures own thumbnail.

gkresic commented 7 years ago

Db schema upgraded.

IMPORTANT: do not resolve head unit for every lecture. Instead create a separate method LectureManager.getHeadUnit(Lecture) and a separate REST endpoint at URL /lectures/{id}/head

Genato commented 7 years ago

Becauze "lectures/{id}/thumbnail" should serve static "unit.jpg", need to change part where i throw exception and instead exception return empty Unit object.

Genato commented 7 years ago

Covered in commit LectureResource.getHeadUnit() and LectureManager.getHeadUnit(). Finished