UI 45579: Automatically opens back exam modal when test password is wrong#10323
UI 45579: Automatically opens back exam modal when test password is wrong#10323thojou merged 1 commit intoILIAS-eLearning:release_10from
Conversation
|
Hello @matheuszych, hello everyone. I'm not entirely sure which parts of the solutions for Mantis 45579 are in which of the two related PRs. (here and #10201) I think a small change is still necessary, but I'm not sure whose area of responsibility this belongs to. In screenshot 3, after entering the wrong password, an “alert-danger” message box with the text “Sie müssen alle erforderlichen Felder ausfüllen!” (dt.) is already displayed behind the modal. After making the change, please reassign it. For a code review in the UI service, I would then hand it over to @thibsy again. Best regards and many thanks,
|
oliversamoila
left a comment
There was a problem hiding this comment.
See previous comment. ;)
|
Hello @matheuszych , Best regards, |
|
Hi @matheuszych is there a timeline? |
|
As I understand it, it's up to you, @thojou and @kergomard . |
|
Hey all, thanks for you contributions. Best Regards, |
thibsy
left a comment
There was a problem hiding this comment.
Hi @thojou,
I'm sorry if @oliversamoila's last comment was misleading, but I did not sign off on these code changes yet. I am also not sure why @kergomard was assigned here, as changes are entirely inside UI.
We normally integrate PR's ourselves, especially because in UI there are sometimes hidden caveats while cherry-picking (not here though). Just so you know for next time.
I think the change of opening the modal in case of an error should be fine. What I am curious about is the use of the try-catch block here. Since you are using the null-safe operator, why would we run into an exception at all here? Isn't this hiding an actual error now? This looks like a code smell to me.
Kind regards,
@thibsy (as UI coordinator)
|
Hey @thibsy, I apologize, I misunderstood @oliversamoila message and did not mean to overstep any boundaries here. To provide the full context: Regarding the try-catch block: it made sense during development, but I'm now unable to locate the specific issue that led us to add it. It's quite possible this is a leftover from the initial bugfix that wasn't needed after extracting the changes into a separate PR. How would you like us to proceed:
Again, I'm truly sorry for this misunderstanding. I thought everything had been discussed and aligned internally based on @oliversamoila's message, and that we were good to move forward. Best regards, |
|
Hello @thojou and hello @thibsy, Please excuse the confusion. |




https://mantis.ilias.de/view.php?id=45579
We kindly request these changes as part of the issue mentioned above.
The modal inside of the launcher component also needs to get the current request when calling
withRequeston the launcher itself. As the modal is an internal property of the launcher there is no other way to pass the current request to it. The request should not be assigned to the modal when callinggetResulton the launcher because it leads to some side effects.Also when the result of a launcher component leads to an error, the modal should be rendered open to display the issue to the user.
If you have any questions regarding the proposed changes please fell free to ask.
These changes are highly related to the following PR.
Best regards
@matheuszych