Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46739

Allow to store long user preferences

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_500_STABLE
    • MDL-46739_main
    • Hide
      1. Set Site admin > Courses > Course default settings > Course format > Maximum number of sections to 350.
      2. Add a new Course
      3. Under "Course format" set "Number of sections" to 350.
      4. Click "Save and Display"
      5. Click Collapse all.
      6. Verify no error is given.
      7. Reload the page
      8. Verify that the sections remain collapsed.
      9. Check the user_preferences table and verify that there is a user preference for the current user that is longer than 1333 characters.

       

      Show
      Set Site admin > Courses > Course default settings > Course format > Maximum number of sections to 350. Add a new Course Under "Course format" set "Number of sections" to 350. Click "Save and Display" Click Collapse all. Verify no error is given. Reload the page Verify that the sections remain collapsed. Check the user_preferences table and verify that there is a user preference for the current user that is longer than 1333 characters.  

      Even though IT IS NOT RECOMMENDED TO STORE LARGE AMOUNT OF DATA IN USER PREFERECES, we tend to run out of space (see MDL-43739 and MDL-30668), which results in fatal errors. The solution to split the user preference into smaller chunks (for example in MDL-30668 we now store one value per course) only increases the session size. We need to be able to store larger user preferences.

            marxjohnson Mark Johnson
            marina Marina Glancy
            CMR CMR
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            14 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 21 minutes
                7h 21m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.