-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
[17.0][ADD]mute_notification_user_autosubscribe: Do not send notification to users autosubscribed through user_id field #1460
Conversation
Please avoid plurals in module names, and more in the middle of the name. That's food for constant typos. |
6a9a3d4
to
17dde9e
Compare
@pedrobaeza done |
@manuelregidor Could you adapt the commit and the PR names, considering the correct module name, please? |
17dde9e
to
05d89e0
Compare
@HaraldPanten done |
Let's wait for @luis-ron 's functional review, then. |
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.
Functional review: LGTM 👍🏻
@Tisho99 Could you review, please? |
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.
LGTM. Technical review
This PR has the |
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.
LGTM 👍🏻
@pedrobaeza @etobella your point of view here would be nice. Could you give us a hand? THX |
mute_notification_user_autosubscribe/models/user_autosubscribe_mute.py
Outdated
Show resolved
Hide resolved
05d89e0
to
b7d0a97
Compare
@pedrobaeza Changes applied |
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.
Well, this is replacement one table (the previous one) by another (the followers one). The question is why can't you determine dynamically in the moment of sending the notification if it should be sent or not.
@pedrobaeza We decided to use subtypes to avoid notificactions, so the muting subtype is applied only once, when the user in field user_id is autosubscribed, and after that, notifications will not be sent to this user unless subtypes in the document are changed, with no need of further checks. By doing it this way:
I hope that answers your question. |
As said, I don't think this is the way to go, as if you change any mute rule, all the existing documents won't have such configuration, but if you want to go this way, put it on the ROADMAP and I won't block it. |
The use case is:
Do you know what I mean? I'm not sure about what you mean. Could you give us more details and which would be a better approach for this situation? THX |
As said, if you change any mute rule, all the existing documents won't have such configuration, but it's just a corner case. You can continue putting that case in the ROADMAP. |
…o users autosubscribed through user_id field
b7d0a97
to
8b31c5e
Compare
@pedrobaeza Case included in ROADMAP. |
OK, you can go ahead then. |
@pedrobaeza Could you merge it, please? I'm not PSC of this repository. THX! |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 2299f2d. Thanks a lot for contributing to OCA. ❤️ |
@HaraldPanten @ValentinVinagre
@luis-ron Could you review, please?
T-6499