Skip to content

Optimisation - Saving openTabs in User Preferences fails on courses with many sections #45

Description

@DocDanouBot

Dear James,

first of all, thank you for you great add on an the time you invested into making the moodle world a little bit better.

Now I am sitting on a moodle, where the editors have been building a course with hundrets of sections and subelements. As every section has a date in the title, I have to assume, that they are going to extend this long list of sections even further. When we use the format_multitopic we run into an error while executing set_user_preference()

error_message

This arrives when moodle tries to save the state of the opened / closed sections due to DB restrictions in the field mdl_user_preferences.value which is a varchar(1333)

m5411_db_struktur

We run format_multitopic on the version: 2023072900
and moodle 4.1 . I know that there is a new version of your plugin available (2024051601) , but as I checked the CHANGES.md, this issues has not yet been tackeled, right? Or am I missing something?

We thought of different ways how this problem could be solved: like saving every open / close seperatly for each section or alternativly splitting the long json object into multiple upfollowing entries that have to be concatted. Where each block does not exceed 1333 chars.

Do you think that you will find time in the near future to adress this issue?
Thanks for your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions