Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase size of groupslist col #2

Closed
pascal-my opened this issue Apr 1, 2024 · 7 comments
Closed

Increase size of groupslist col #2

pascal-my opened this issue Apr 1, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@pascal-my
Copy link
Contributor

Hello,

camcgee made a pull request on my code : pascal-my/moodle-local_groupautoenrol#1 :

Hi, we have a Moodle install with high enrollment courses and large numbers of groups for course discussions. This plugin has been extremely helpful but due to the number of groups, there's an error where some courses the list of groups is exceeding the column size. We've manually changed the size of the column in our database, but I'm proposing to increase this in the DB install as well.

Maybe, you should considerate change the size of the column in your DB install as well ?

:)

@gemguardian
Copy link
Member

@pascal-my thank you.

Yes we will @luukverhoeven can you cherry-pick this pull request?

@luukverhoeven
Copy link
Collaborator

Hi @gemguardian, I've noticed that these updates will only apply to new installations. There doesn't seem to be anything in upgrade.php that would convert this column for existing installations. How would you like us to proceed with this issue?

Additionally, I suggest considering the text data type for the column to ensure its length never exceeds the limit. Although the patch increases the limit, it might still not be sufficient for all cases.

@gemguardian
Copy link
Member

@luukverhoeven if you can do this within 2 hours I am okay with the suggested changes. If that's not the case then we will leave it open for some other time.

@luukverhoeven
Copy link
Collaborator

@pascal-my, I appreciate the update on the merge and want to express my thanks for the pull request, @camcgee.

@gemguardian, I've implemented the changes within an hour. Please test the functionality on the branch https://github.com/Lesterhuis-Training-en-Consultancy/moodle-tool_groupautoenrol/tree/86by67h5c-increase-size-grouplist to verify if it operates as expected.

@luukverhoeven luukverhoeven added the enhancement New feature or request label Apr 4, 2024
@camcgee
Copy link

camcgee commented Apr 4, 2024

@luukverhoeven thanks very much for addressing this! I've tested this on our testing Moodle install:

  • Uninstalled plugin
  • Verified that table mdl_tool_groupautoenrol was removed in uninstall
  • Installed plugin from branch 86by67h5c-increase-size-grouplist
  • Verified that new table mdl_tool_groupautoenrol existed
  • Added 250 groups to a Moodle course
  • Turned on plugin for the course and selected "Enable automatic enrolment in groups for this course" and "Enrol users in selected groups only", selecting all 250 groups
  • Added new enrollments
  • Confirmed new enrollments were added to selected groups

@gemguardian
Copy link
Member

@camcgee thank you for testing this. @luukverhoeven with this outcome it seems to operated as espected, please push to Main and release on Moodle.org

@luukverhoeven
Copy link
Collaborator

Merged to master branch. Published as 4.2.1 version on Moodle.org https://moodle.org/plugins/tool_groupautoenrol/versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants