Details des Tickets

Beschreibung,Kommentare und Anhänge

merge request id 126
TitelFeature/ll 119 refactoring scorm structure
BeschreibungUmsetzung der Optimierungen aus beiden anderen Unteraufgaben. Database.trainings.content_id: ist ein Überrest der ersten Implementierung und kommt weg. Database.content_organizations: diese Tabelle bleibt als Informationstabelle erhalten und unberührt. neuer "ShortCut"': Wir geben den ContentItems eine direkte Referenz auf ihren Content. Damit muss nicht immer der Umweg über die Organization gegangen werden Scharfe Trennung ContentItems vs. TrainingsItems: Es soll in den Models und alles anderen nach außen sichtbaren Schnittstellen keine Items mehr geben - es soll immer der konkrete Name (trainingsItem oder contentItem) verwendet werden. Konkretes Beispiel: in \App\Models\Training.php liefert –>items TrainingItem-Objekte und keine (Content-)Item-Objekte. Wird in folgenden Skripten verwendet: TrainingItemController.php, Training.php, UserProgress.php, views/my/trainings/show.blade.php, views/trainings/show.blade.php, ParticipationCertificateTest.php, ContentSessionTest.php, UserProgressTest.php
Statusmerged
Created at 2019-11-19T08:01:31.534Z
Updated at 2019-11-29T12:34:25.071Z
Source branchfeature/LL-119-refactoring-scorm-structure
Target branchdevelop
AuthorGregor Gabriel
AssigneeSascha Immig

Discussion notes

merged Sascha Immig 2019-11-29T12:34:25.129Z

Merge Commits

Title Id Author Created at Message
+ removed content_id from trainings 0a956d7ac5fd6d5c9b8443875e896592adcac1bd TUV\gabrielg 2019-11-18T12:16:41.000Z + removed content_id from trainings + added content_id to content_items
+ renamed class Item to ContentItem 2a9fec56377efed60360326d5a7e8098ec33e3dc TUV\gabrielg 2019-11-18T15:33:42.000Z + renamed class Item to ContentItem
+ replaced method items() in Content and Organization by contentItem() and… c8874b0c437a8305421c124b10ebbb3e9885a402 TUV\gabrielg 2019-11-19T07:59:14.000Z + replaced method items() in Content and Organization by contentItem() and refactored some functions in Content a way that they don't use organization to get contentItems
+ refacroring of Training - method items() renamed to trainingItems() as it… da18f1688def9c13c488a767df6f183a53c00603 TUV\gabrielg 2019-11-18T14:38:39.000Z + refacroring of Training - method items() renamed to trainingItems() as it delivered TrainigItem collection + did some smaller refactorings to clarify function task