Project

General

Profile

Actions

Bug #7106

closed

Notification mails about new users for the group do not seem to go to group admin

Added by Pavel Kácha about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Core
Target version:
Start date:
03/05/2021
Due date:
% Done:

100%

Estimated time:
To be discussed:

Description

Happened 8. 1. 2021 with on mentat-hub, where notification mail haven't reached group managers.

Actions #1

Updated by Jan Mach about 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50
Actions #2

Updated by Jan Mach about 3 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 50 to 90

I have verified (sorry for the spam), that the mailing to group managers works when following conditions are met: group must have self management enabled, user must request group membership during registration. Information about mails being sent in now logged more verbosely into /var/mentat/log/mentat-hawat.py.log file.

We can make the "Requested group memberships:" field required in the registration form to prevent this from happening again, if that is desirable. Also we can remove the "self management enabled" requirement by discarding the managed column from groups table and simply always send information emails in case group has any managers set.

Should I do the aforementioned changes?

Actions #3

Updated by Pavel Kácha about 3 years ago

Jan Mach wrote in #note-2:

I have verified (sorry for the spam), that the mailing to group managers works when following conditions are met: group must have self management enabled, user must request group membership during registration. Information about mails being sent in now logged more verbosely into /var/mentat/log/mentat-hawat.py.log file.

Thanks! On the devel, or deployed on hub also?

We can make the "Requested group memberships:" field required in the registration form to prevent this from happening again, if that is desirable. Also we can remove the "self management enabled" requirement by discarding the managed column from groups table and simply always send information emails in case group has any managers set.

Should I do the aforementioned changes?

I'd NOT go for required field - sometimes it is desirable to have users, which are members of no group (707 developers, students, ...)

Discarding 'managed' column makes sense (if admin does not want to manage group, it does not have to be an admin). However, couldn't there be a clash with Žerdík's changes, which Rajmund is going to integrate (#6239)? If so, I'd wait with it.

Actions #4

Updated by Jan Mach about 3 years ago

  • To be discussed changed from No to Yes

Pavel Kácha wrote in #note-3:

Jan Mach wrote in #note-2:

I have verified (sorry for the spam), that the mailing to group managers works when following conditions are met: group must have self management enabled, user must request group membership during registration. Information about mails being sent in now logged more verbosely into /var/mentat/log/mentat-hawat.py.log file.

Thanks! On the devel, or deployed on hub also?

Only on mentat-alt. There were no major code changes, I have just added some log writes to be able to better verify the code flow. There are no code flow fixes.

We can make the "Requested group memberships:" field required in the registration form to prevent this from happening again, if that is desirable. Also we can remove the "self management enabled" requirement by discarding the managed column from groups table and simply always send information emails in case group has any managers set.

Should I do the aforementioned changes?

I'd NOT go for required field - sometimes it is desirable to have users, which are members of no group (707 developers, students, ...)

OK.

Discarding 'managed' column makes sense (if admin does not want to manage group, it does not have to be an admin). However, couldn't there be a clash with Žerdík's changes, which Rajmund is going to integrate (#6239)? If so, I'd wait with it.

No, there should not be any clashes. Žerdik`s changes are related to reporting settings contained mostly in reporting_settings table. This is a managed column in groups table, unrelated to reporting.

Actions #5

Updated by Jan Mach about 3 years ago

  • To be discussed changed from Yes to No

After the discussion we will proceed to remove managed column from groups table.

Actions #6

Updated by Jan Mach almost 3 years ago

  • Status changed from Feedback to In Progress
Actions #7

Updated by Pavel Kácha almost 3 years ago

  • Target version changed from 2.8 to 2.9
Actions #8

Updated by Jan Mach over 2 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 90 to 100
  • To be discussed changed from No to Yes

I have removed all uses of managed attribute from Group model. Ready to merge to devel branch for testing.

Actions #9

Updated by Rajmund Hruška over 2 years ago

  • Status changed from Feedback to In Review

Merged into devel.

Actions #10

Updated by Jan Mach over 2 years ago

  • Status changed from In Review to Resolved

Marking as resolved. When you think it was tested for enough time, we can close. I have already deleted the branch, in case the fix is needed it will be better to do it directly in devel branch to save some time.

Actions #11

Updated by Pavel Kácha over 2 years ago

  • Status changed from Resolved to In Review

Changing back to in-review as it is at mentat-alt. (See Development_guidelines.)

Actions #12

Updated by Jan Mach over 2 years ago

Pavel Kácha wrote in #note-11:

Changing back to in-review as it is at mentat-alt. (See Development_guidelines.)

Sorry, my bad.

Actions #13

Updated by Rajmund Hruška over 2 years ago

  • Status changed from In Review to Feedback

In 7cdebc18 in the migration c2b4c2af6196_removed_groups_managed.py the managed column is set as not null. But there is no default value, so downgrading results in IntegrityError. I use downgrading quite often so I would appreciate if it was possible to downgrade.

Actions #14

Updated by Rajmund Hruška over 2 years ago

  • Status changed from Feedback to In Review

As it was discussed on 2021-12-01 meeting, I patched the downgrade, pushed the commit to devel and deployed the new version on mentat-alt.

Actions #15

Updated by Pavel Kácha over 2 years ago

  • To be discussed deleted (Yes)
Actions #16

Updated by Pavel Kácha about 2 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF