-
Notifications
You must be signed in to change notification settings - Fork 19
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
New Setting: Preserve manual User assignments. #10
New Setting: Preserve manual User assignments. #10
Conversation
…he autogroup group.
@emmarichardson If this looks good to you, feel free to merge it in. We release this code as public domain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing it seems a really good feature !
I'll try to review and test it properly soon but at first sight I think we should not merge in master as it is because :
- composer has nothing to do with this feature. composer.json should be removed.
- in version.php "release" should not be changed in this PR. This changes should be done by a maintainer. (As this PR add a new function the release number should be bumped to 2.5)
Note for maintainer : Use "Squash and merge" to merge this PR.
Thank you for your review @ak4t0sh I've made the changes. |
So I am confused - if you turn off the groups setting, doesn't this accomplish the same thing? |
If I understand it right, this might solve our problem discussed a while ago with users belonging to more than one group. Eg Groups can have 'permanent' members (teachers) and temporary members (students). As students change group, Autogroup plugin will move them into their new group accordingly, while the teachers remain in these groups. Turning off auto-update setting (presumably this is what you're referring to?) means students will remain in their old group as well as in the new groups. The way to overcome this issue is by deleting all groups every new term/year. Turning on auto-update (currently) only allow teachers to be in 1 group. With this new feature, we could have both the convenience of auto-updating members of a group as well as assigning permanent members to it. |
@senaiboy yup, you've got it. This use case is the exact reason this was developed. It's intuitive because Users who have been manually assigned, remain manual. Users automatically assigned, remain automatic. |
Ok..I will try and get it merged and update moodle.org this weekend ..
…On Fri, Nov 30, 2018, 11:22 AM Nathaniel Sabanski ***@***.*** wrote:
With this new feature, we could have both the convenience of auto-updating
members of a group as well as assigning permanent members to it.
@senaiboy <https://github.com/senaiboy> yup, you've got it. This use case
is the exact reason this was developed.
It's intuitive because Users who have been manually assigned, remain
manual. Users automatically assigned, remain automatic.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB-5mWJdffMH6Y2ZIVU0cTKCVUD7jg5iks5u0XdfgaJpZM4Y4hpu>
.
|
@ak4t0sh Could you review the changes and let me know if it looks good? Then I will merge. |
(Technically) Review OK 👍 Thanks for the changes @gnat Test OK it works as expected. But I think that it can produce inconstencies.
Result : The user is in the 2 groups. I think that an user should not be added more than 1 group from the same group set.
|
I think that the way it works is the intended use case. From what I understand, it is so that they can add teachers to multiple groups, for example. Seeing as it is an optional setting, I see no issue with it as long as we have no concerns about database/code confusion. For example, does the setting automatically uncheck the groups setting that looks for changes in the group and updates if need be...I haven't had time to test it fully. |
@emmarichardson if you are OK with this behaviour you can merge :) |
When Users are manually assigned to a group managed by autogroup, preserve these assignments when autogroups are automatically updated (other Users added, removed).