BYU-ARCLITE / Ayamel-Examples

A site which uses the resource library and provides example of the six levels of video playback.
11 stars 7 forks source link

Annotation button on player doesn't disappear once all the annotation tracks have been deleted #537

Open schyatt opened 9 years ago

schyatt commented 9 years ago

The annotation button on the player doesn't disappear once all the annotation tracks have been deleted. It seems like because videos that never had annotation tracks available don't have this button, videos where all the tracks have been deleted shouldn't have the button either.

d6d3d483559070ab19856fa85923a757

gliese1337 commented 9 years ago

Can you provide a link to the affected video?

schyatt commented 9 years ago

https://ayamel.byu.edu/content/1865

On Fri, Jun 12, 2015 at 11:54 PM, Logan Kearsley notifications@github.com wrote:

Can you provide a link to the affected video?

— Reply to this email directly or view it on GitHub https://github.com/BYU-ARCLITE/Ayamel-Examples/issues/537#issuecomment-111677083 .

Shari Hyatt

gliese1337 commented 9 years ago

This is the result of a data corruption error. The tracks were not disabled before they were deleted, and now that all of the tracks are gone, the configuration controls to turn off "show annotation" are inaccessible. Thus, the content configuration is left in a state where it wants to show annotations, so the button is put on, but there are no annotations actually there. We should add code to ensure that references to annotation & transcript resources in other content objects are deleted when the resources are deleted, and update the configuration UI (as part of #324 and #551) to make it possible to show or hide the button regardless of the presence or absence of any enabled documents.