Skip to content

Conversation

@simahawk
Copy link

This module allows users/partners to:

  • select "digest" mode in their notification settings
  • with digest mode on select a frequency: "daily" or "weekly"
  • configure specific rules per message subtype (enabled/disabled)

and receive or not receive any email notification for a given subtype.

This module is needed by its CMS integration module cms_notifications

@simahawk
Copy link
Author

TODO: check / fix failing tests w/ other social modules.

@simahawk
Copy link
Author

@antespi @pedrobaeza I'm checking failing tests. I see

2017-03-24 08:42:43,626 5399 ERROR openerp_test openerp.addons.mail_tracking_mailgun.models.mail_tracking_email: Mailgun: Database 'bad_db' is not the current database
[...]
2017-03-24 08:42:44,481 5399 ERROR openerp_test openerp.addons.mail_tracking_mailgun.models.mail_tracking_email: Mailgun: event type 'bad_event' not supported

and other similar errors, both on travis and on my local setup (with just mail_tracking tests running).

Actually I found the same errors in the original PR https://travis-ci.org/OCA/social/jobs/161414564

Is there any particular setting to run tests for mail_tracking or can I just ignore them?

@pedrobaeza
Copy link
Member

AFAIK, these are the intended behavior of the tests, proving a wrong DB in them to see if it fails, so this is not problem for the status (and indeed Travis is green).

@simahawk
Copy link
Author

simahawk commented Mar 29, 2017

@pedrobaeza is green since I fixed my stuff :) I wanted to make sure I didn't break anything else before debugging. Tnx anyway.

@rafaelbn rafaelbn added this to the 9.0 milestone Apr 21, 2017
message_sudo = message.sudo()
if not message_sudo.message_type == 'email':
return
# TODO: what to do when a partner updates frequency?
Copy link
Member

@dreispt dreispt Apr 26, 2017

Choose a reason for hiding this comment

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

what to do when a partner updates frequency?

Frequency tells how often we will try to send a digest to the Partner.
Whenever we hit that time, all unsent messages will be collected into that digest, and marked as sent.
It you look at it this way, the answer is trivial.
With this design, the frequency is irrelevant for the mail.digest queue; it only matters for the digest mail process.

Copy link
Author

Choose a reason for hiding this comment

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

yep, you are right here. In your opinion, is there any other place where this should be taken into account?

Copy link
Member

Choose a reason for hiding this comment

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

Can't remember any. Frequency should only be relevant to trigger the "cron job".

@simahawk
Copy link
Author

@pedrobaeza @dreispt anything else to do here but rebase?

@simahawk
Copy link
Author

rebased!

@simahawk
Copy link
Author

simahawk commented Jun 8, 2017

@pedrobaeza @rafaelbn @dreispt any stopper here?

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Little changes

],
'data': [
'data/ir_cron.xml',
# TODO: fix permissions (only admin now)
Copy link
Member

Choose a reason for hiding this comment

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

Is still this TODO?

* with digest mode on select a frequency: "daily" or "weekly"
* configure specific rules per message subtype (enabled/disabled)

to receive or not receive any email notification for a given subtype.
Copy link
Member

Choose a reason for hiding this comment

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

"to receive or to not receive"

@simahawk
Copy link
Author

@pedrobaeza updated. Should be ready for merge ;)

@pedrobaeza pedrobaeza merged commit 63b5006 into OCA:9.0 Jun 19, 2017
SiesslPhillip pushed a commit to grueneerde/OCA-social that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/social (11.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants