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

[IMP] mass_mailing_custom_unsubscribe: GDPR compliance #267

Merged

Conversation

yajo
Copy link
Member

@yajo yajo commented Apr 27, 2018

  • Record resubscriptions too.
  • Record action metadata.

@Tecnativa

- Record resubscriptions too.
- Record action metadata.
@yajo yajo force-pushed the 10.0-mass_mailing_custom_unsubscribe-gdpr branch from 1a8c0f1 to a3aa4c6 Compare April 27, 2018 07:58
@yajo yajo changed the title [IMP] mass_mailing_custom_unsubscribe: GPDR compliance [IMP] mass_mailing_custom_unsubscribe: GDPR compliance Apr 27, 2018
@yajo yajo self-assigned this Apr 27, 2018
@yajo yajo added this to the 10.0 milestone Apr 27, 2018
'category': 'Marketing',
'version': '10.0.1.0.0',
'version': '10.0.1.1.0',
Copy link
Member

Choose a reason for hiding this comment

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

This deserves 10.0.2.0.0

@rafaelbn
Copy link
Member

rafaelbn commented May 5, 2018

@yajo I cannot tested in runbot because (see screenshot)

2018-05-05_8-58-38

@yajo
Copy link
Member Author

yajo commented May 7, 2018

Lol, that seems like a misconfiguration in runbot's nginx... I'll test locally.

- Never require details in frontend if unsubscription form is hidden.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
@yajo
Copy link
Member Author

yajo commented May 7, 2018

I double-checked this works fine, and added some UX enhacements too.

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Testing locally:

  • I tried to unsubscribe with no reason set, and nothing stopped me from it.
  • I unsubscribed and then subscribed again. Then unsubscribing seemed to be not possible from here

- Do not store duplicated (un)subscriptions.
- Require reasons for unsubscriptions only.
- Pivot & graph views.
@yajo
Copy link
Member Author

yajo commented May 8, 2018

The new commit fixes the problems you detected, and besides it adds graph and pivot views for unsubscriptions.

@rafaelbn
Copy link
Member

rafaelbn commented May 8, 2018

@yajo travis is 🔴

@yajo
Copy link
Member Author

yajo commented May 8, 2018

It should go 💚 now

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Just a little flaw now:

  • Given a contact in two lists:
    1. Unsubscribe from list1
    2. Unsubscribe from list2and resubscribe to list1

Everything goes fine except the resubscription log to list1 gets the unsubscription from list2reason.

@yajo
Copy link
Member Author

yajo commented May 8, 2018

Good catch, it should be fixed now.

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Now it won't let me unsubscribe: Your changes have not been saved, try again later

@chienandalu
Copy link
Member

chienandalu commented May 8, 2018

A trace here:

odoo_1  | 2018-05-08 12:17:59,655 45 ERROR test odoo.http: Exception during JSON request handling.
odoo_1  | Traceback (most recent call last):
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 641, in _handle_exception
odoo_1  |     return super(JsonRequest, self)._handle_exception(exception)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 683, in dispatch
odoo_1  |     result = self._call_function(**self.params)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 333, in _call_function
odoo_1  |     return checked_call(self.db, *args, **kwargs)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 101, in wrapper
odoo_1  |     return f(dbname, *args, **kwargs)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 326, in checked_call
odoo_1  |     result = self.endpoint(*a, **kw)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 941, in __call__
odoo_1  |     return self.method(*args, **kw)
odoo_1  |   File "/opt/odoo/custom/src/odoo/odoo/http.py", line 506, in response_wrap
odoo_1  |     response = f(*args, **kw)
odoo_1  |   File "/opt/odoo/auto/addons/mass_mailing_custom_unsubscribe/controllers/main.py", line 113, in unsubscribe
odoo_1  |     mailing._unsubscribe_token(res_id, token)
odoo_1  |   File "/opt/odoo/auto/addons/mass_mailing_custom_unsubscribe/models/mail_mass_mailing.py", line 34, in _unsubscribe_token
odoo_1  |     key = (self.env.cr.dbname, self.id, int(res_id))
odoo_1  | TypeError: int() argument must be a string or a number, not 'NoneType'

@yajo
Copy link
Member Author

yajo commented May 8, 2018

That's not supposed to happen. It's like you're using a wrong URL to unsubscribe. Are you testing the right way?

@chienandalu
Copy link
Member

I'm testing the same way as before:

  • create a new mass mailing
  • send this mass_mailing to a contact in two lists
  • open the link in incognito window
  • try to unsubscribe

@yajo
Copy link
Member Author

yajo commented May 10, 2018

Make sure you test with real emails, not with test emails. Test email unsubscription shouldn't work.

@pedrobaeza pedrobaeza deleted the 10.0-mass_mailing_custom_unsubscribe-gdpr branch May 10, 2018 10:17
chienandalu pushed a commit to Tecnativa/social that referenced this pull request May 24, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
chienandalu pushed a commit to Tecnativa/social that referenced this pull request May 24, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
chienandalu added a commit to Tecnativa/social that referenced this pull request May 25, 2018
chienandalu pushed a commit to Tecnativa/social that referenced this pull request May 25, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
chienandalu pushed a commit to Tecnativa/social that referenced this pull request May 25, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
chienandalu added a commit to Tecnativa/social that referenced this pull request May 29, 2018
chienandalu added a commit to Tecnativa/social that referenced this pull request Jun 4, 2018
chienandalu added a commit to Tecnativa/social that referenced this pull request Jun 4, 2018
chienandalu pushed a commit to Tecnativa/social that referenced this pull request Jun 11, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
yajo pushed a commit to Tecnativa/social that referenced this pull request Jun 12, 2018
yajo pushed a commit that referenced this pull request Jun 13, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance (#267)

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
ghost pushed a commit to camptocamp/social that referenced this pull request Aug 21, 2018
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
ernestotejeda pushed a commit to Tecnativa/social that referenced this pull request Jun 24, 2019
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
OCA-git-bot pushed a commit that referenced this pull request Jul 22, 2019
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
jaag93 pushed a commit to QubiQ/social that referenced this pull request May 18, 2020
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
CarlosRoca13 pushed a commit to Tecnativa/social that referenced this pull request Aug 26, 2020
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
ernestotejeda pushed a commit to Tecnativa/social that referenced this pull request Jul 23, 2021
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
ernestotejeda pushed a commit to Tecnativa/social that referenced this pull request Jul 23, 2021
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
sergio-teruel pushed a commit to Tecnativa/social that referenced this pull request Dec 7, 2022
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
ernestotejeda pushed a commit to Tecnativa/social that referenced this pull request Dec 19, 2022
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
FernandoRomera pushed a commit to MallorcaSoft/social that referenced this pull request Dec 20, 2022
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
FernandoRomera pushed a commit to MallorcaSoft/social that referenced this pull request Dec 20, 2022
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
sergio-teruel pushed a commit to Tecnativa/social that referenced this pull request Feb 1, 2023
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
carolinafernandez-tecnativa pushed a commit to Tecnativa/social that referenced this pull request Feb 26, 2024
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
carolinafernandez-tecnativa pushed a commit to Tecnativa/social that referenced this pull request Feb 26, 2024
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
pilarvargas-tecnativa pushed a commit to Tecnativa/social that referenced this pull request Mar 1, 2024
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
chienandalu pushed a commit to Tecnativa/social that referenced this pull request Jul 15, 2024
* [IMP] mass_mailing_custom_unsubscribe: GDPR compliance

- Record resubscriptions too.
- Record action metadata.
- Make ESLint happy.
- Quick color-based action distinction in tree view.
- Add useful quick groupings.
- Display (un)subscription metadata.
- Pivot & graph views.
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.

4 participants