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

Autogroup Bug #17

Closed

Conversation

sergei-porfenovich
Copy link

No description provided.

Copy link
Collaborator

@ak4t0sh ak4t0sh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for sharing this fix.
Not tested (ping @emmarichardson could you test it ?) but reading code it should be OK.

Ideally could you :

  • amend your commit and change the message for a more relevant one
  • review my comments and fix them.

* @param int $new_group_id
* @param \moodle_database $db
*/
private function check_forums($user_id, $old_group_id, $new_group_id, \moodle_database $db){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that a stuff like update_forum_group would be a more relevant name. check_forums suggests that this function is a readonly which "only" check forum consistency.

@@ -73,21 +73,23 @@ public function __construct ($group, \moodle_database $db)

/**
* @param int $userid
* @return bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

originally this function return void. If you change it to do conditional return (return true if changes happened and false otherwise) you should detailed it in the PHPDoc.

}

/**
* @param int $userid
* @return bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

originally this function return void. If you change it to do conditional return (return true if changes happened and false otherwise) you should detailed it in the PHPDoc.

@ak4t0sh ak4t0sh mentioned this pull request Oct 28, 2019
@ak4t0sh
Copy link
Collaborator

ak4t0sh commented Oct 28, 2019

closing in favor to #22

@ak4t0sh ak4t0sh closed this Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants