openHPI / codeharbor

Exchange of Programming Exercises acrossdiverse Code Assessment Systems through CodeHarbor
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

TaskFiles: Cannot be referenced multiple times #1371

Closed kkoehn closed 2 weeks ago

kkoehn commented 3 months ago

In ProFormA files can be referenced to multiple times. This is currently not possible, since the relation of TaskFile to fileable is one-to-one relation.

The relation would have to be change to one-to-many. The UI-Elements (esp. Editors) have to support this.

successor of #1249

kkoehn commented 2 months ago

A temporary solution for the import has been implemented in #1370. Instead of referencing multiple times, the files involved get duplicated.

MrSerth commented 2 months ago

A temporary solution for the import has been implemented in #1370. Instead of referencing multiple times, the files involved get duplicated.

Thanks! I found another edge case in our temporary solution, requiring some further adjustments. See https://github.com/openHPI/codeharbor/pull/1370#issuecomment-2132142921.

MrSerth commented 1 month ago

This issue should be resolved with #1426, I assume. Can we close it, @kkoehn?

kkoehn commented 2 weeks ago

Yes, it should be fixed now