ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

T&A Bugfix #0029216: Test Import Results are being skipped

Open fhelfer opened this issue 1 year ago • 8 comments

https://mantis.ilias.de/view.php?id=29216

Caution when cherry-picking to 8 will do a PR for 8 as well, because not everything can be safely picked

fhelfer avatar Sep 19 '23 13:09 fhelfer

Thank you very much for this PR @fehlfer! I've an additional question on this version of the PR:

  • [ ] Your changes concerning the ZIP file here seem to change the behavior. Before, if there already was a zip-file, the file would have been added to the existing zip, now it looks to me like, the zip-file would be replaced by one only containing the new files. What am I missing?

Thanks and best, @kergomard

Hi @kergomard,

It seemed to me that this would be an incorrect behaviour because you get an infinite loop of zip folders enclosed in each other.

Best, @fhelfer

fhelfer avatar Oct 11 '23 07:10 fhelfer

Hi @fhelfer Sorry, I didn't formulate well: If you have a zip-file containing the files 'bli.txt' and 'bla.txt', before your changes after passing your function you would have a zip-file containing 'bli.txt', 'bla.txt', and 'results.xls', after your changes the file would only contain 'results.xls'. Am I missing something?

Thank you very much and best, @kergomard

kergomard avatar Oct 12 '23 05:10 kergomard

Hi @fhelfer Do you think you could have another look at this?

Thank you very much and best, @kergomard

kergomard avatar Jan 13 '24 16:01 kergomard

Hi @kergomard ! From my point of view, the exports zip file name is generated with the current timestamp. So there should not be any leftover files from other processes in existing zips. I think the process as you describe it, not having bli and bla, appears correct to me.

mbecker-databay avatar Jan 16 '24 09:01 mbecker-databay

Hi @kergomard,

i reverted the changes made to zip, because the bug i noticed earlier in the PR seems to be fixed by now :) So now the PR only contains fixes for the bug mentioned in mantis

Best, @fhelfer

fhelfer avatar Jan 18 '24 12:01 fhelfer

So, @mbecker-databay and @kergomard, who would be the one, who presses the Rebase and merge button? ;-)

dsstrassner avatar Jan 23 '24 06:01 dsstrassner

Thank you very much @fhelfer for this PR: These two lines here led me to believe that there was something fundamentally wrong with the import. The problem is very basic: We are not importing the questions, ...and we are doing so very consciously as we are setting ilQTIPerser::setIgnoreItemsEnabled(true). I will get around to this, but not in the next days. If you want to give it another try, please go ahead. This is also still broken in ILIAS 8.

Thanks again and best, @kergomard

kergomard avatar Jan 25 '24 14:01 kergomard

We discussed this at today's TechSquad Meeting and the import of Tests with Results from Random Questions Tests are broken beyond repair within the framework of reasonable use of resources. We let this open until the JF, where the Abandon of the Feature is discussed and decide afterward, what we will do with this issue.

dsstrassner avatar Feb 08 '24 09:02 dsstrassner