Feature Wiki
Tabs
IRSS: Decouple DataCollection from ilObjFile (and use IRSS)
Page Overview
[Hide]This Feature-Request is part of the larger strategy to move all user-uploaded files to the ILIAS Resource Storage Service (see Project: ILIAS Resource Storage Service (IRSS)). Feature requests like this are spin-offs from IRSS: General Overview of Components to Migrate (ongoing) and are basically already approved, we just like to keep track of these.
There are two different approaches:
- Some components used ilObjFile in the past to store files. With ILIAS 7, Files from ilObjFile have been migrated and components using them communicate through a wrapper. These component now must be decoupled from ilObjFile and use the IRSS directly.
- Some components stored their files on their own in the iliasdata or data Directory. These component should migrate their files to the IRSS using a Setup - Add migrate Command.
1 Initial Problem
Up to and including ILIAS 7, the DataCollection uses the ilObjFile to store files uploaded via a "File Upload" field.
This should now be separated and the uploaded files should be stored directly in the IRSS. Files that have already been uploaded from earlier are also taken into account.
2 Conceptual Summary
All files uploaded in old versions will be migrated with ILIAS 7. Therefore, a ResourceIdentification already exists for each file. This must be saved within the DataCollection. I.e. the ResourceIndetification is now stored directly in il_dcl_stloc2_value, previously the Obj-ID of the ilObjFile was stored here. Existing entries are adjusted via a DB update.
3 User Interface Modifications
3.1 List of Affected Views
none
3.2 User Interface Details
none
3.3 New User Interface Concepts
none
4 Technical Information
See above (update values of il_dcl_stloc2_value for existing records and save the ResourceIdentification here for new records.). This can be done with a database update, migration is not required. In addition, the processing of new uploads must be adapted so that they are stored directly in the IRSS.
5 Privacy Information
none
6 Security Implications
none
7 Contact
- Author of the Request: Schmid, Fabian [fschmid]
- Maintainer: Seeland, Per Pascal [PerPascalSeeland]
- Implementation of the feature is done by: Schmid, Fabian [fschmid] / Zehnder, Lukas [lzehnder] / Fuhrer, Thibeau [tfuhrer]
8 Funding
If you are interest in funding this feature, please add your name and institution to this list.
9 Discussion
JourFixe, ILIAS [jourfixe], 08 FEB 2021: We highly appreciate this suggestion and schedule the feature for ILIAS 8.
10 Implementation
the Migration has been published in ILIAS 9. You can run it with:
> php setup/cli.php migrate --run datacollection.ilDataCollectionStorageMigration
Test Cases
No testcases available for Migrations
Approval
Approved at unknown by Schmid, Fabian [fschmid].
Last edited: 16. Jul 2024, 07:49, Schmid, Fabian [fschmid]