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

[17.0][MIG] mail_tracking: Migration to 17.0 #1367

Merged
merged 95 commits into from
Jul 3, 2024

Conversation

chienandalu
Copy link
Member

@chienandalu chienandalu commented May 14, 2024

Ongoing tasks:

  • Refactor webclient
  • Fix server logic
  • TODO: Add more reactivity

This migration is ready for review. 🎉

  • You could still find tiny issues regarding the reactivity of the components, mainly when we set a failed message as reviewed in the search failed panel or in Discuss. We'll work on that.
  • A deep refactor of the webclient code has been made in core and thus a complete refactor of the webclient side for mail_tracking was needed.
  • We've been splitting the funcionality in component that can be esasily used across the core components, so hopefully everything is more modular now.
  • We're sitting on top of some new core features as well. Like a message search component to filter the failed messages.
  • Also regular server logic stuff was necessary, although it wasn't needed such a deep refactor as in the client side. Note that the tests are almost untouched in this part.

image

image

image

cc @Tecnativa TT49060

@pedrobaeza
Copy link
Member

/ocabot migration mail_tracking

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone May 14, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request May 14, 2024
30 tasks
@pedrobaeza
Copy link
Member

Please squash a bit administrative commits.

@chienandalu chienandalu force-pushed the 17.0-mig-mail_tracking branch 4 times, most recently from c462302 to 0f76cde Compare May 21, 2024 12:06
@chienandalu chienandalu force-pushed the 17.0-mig-mail_tracking branch 3 times, most recently from 872dea2 to ace8947 Compare May 23, 2024 08:16
@chienandalu chienandalu force-pushed the 17.0-mig-mail_tracking branch from ace8947 to 51a9d8f Compare May 30, 2024 11:51
antespi and others added 18 commits May 30, 2024 13:53
* [ADD] mail_tracking addon

* Add description icon

* Fixes remarked

* Fix Travis error

* Remarks fixed
…ent events (OCA#82)

[IMP] mail_tracking: Speed installation time, discard concurrent events and other fixes
* Improve tests
* Show trackings even if partner removed
* Disable CSRF protection to webhooks controllers
As regular users can't access this object.
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
filoquin and others added 12 commits June 11, 2024 09:51
The following changes were implemented:

1 - Added Failed Message component and related components to reuse the
    Message component when rendering failed messages. This allows us to
    dispose of the messagefailed JS model altogether, since failed messages
    are now just regular messages that were marked as failed.

2 - Added Owl reactivity to failed message actions so that browser does
    not have to be reloaded each time a message is marked as reviewed or
    resent.

3 - Fixed 'Retry' and 'Set as reviewed' flows for failed messages.

4 - Fixed `Failed sent messages` filter on models by overriding `get_view`
    instead of `_fields_view_get`

5 - Refactored folder structure to more closely resemble the `mail`
    module's folder structure.

6 - Refactored module to utilize `Command` as a means to create, write,
    etc. instead of `[0, ...]`, `[4, ...]`.

7 - Fixed and added unit tests.

8 - Removed dead/unused code from `v15`.
Currently translated at 100.0% (125 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/es/
Currently translated at 27.2% (34 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/it/
Currently translated at 82.4% (103 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/pt_BR/
Currently translated at 29.8% (34 of 114 strings)

Translation: social-15.0/social-15.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking/it/
Currently translated at 100.0% (125 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/fr/
@pedrobaeza pedrobaeza force-pushed the 17.0-mig-mail_tracking branch from a59098b to 3ecb872 Compare June 11, 2024 07:57
mail_tracking/__manifest__.py Outdated Show resolved Hide resolved
mail_tracking/controllers/mailbox.py Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Great new icon! Did you do it? If not, please include the credits.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! 😄

Yes, I took the Odoo mass_mailing icon and a font-awesome glyph and playing with the blending mode in inkscape

@chienandalu chienandalu force-pushed the 17.0-mig-mail_tracking branch from 3ecb872 to fec835d Compare June 11, 2024 08:05
@pedrobaeza pedrobaeza force-pushed the 17.0-mig-mail_tracking branch from fec835d to e981f3c Compare June 11, 2024 08:08
chienandalu added a commit to Tecnativa/social that referenced this pull request Jul 1, 2024
Some improvements/fixes detected in OCA#1367 and brought to  `16.0`:

- Add `mail_tracking_ids` to `_compute_is_failed_message` triggers.
- Handle bounces to avoid flagging recipients which aren't bounced.
- Add a logger.debug to research tracking issues
- Make the links in the trackings respect the breadcrumb actions.
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1367-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit fe54191 into OCA:17.0 Jul 3, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2d458df. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 17.0-mig-mail_tracking branch July 3, 2024 11:05
chienandalu added a commit to Tecnativa/social that referenced this pull request Jul 4, 2024
Some improvements/fixes detected in OCA#1367 and brought to  `16.0`:

- Add `mail_tracking_ids` to `_compute_is_failed_message` triggers.
- Handle bounces to avoid flagging recipients which aren't bounced.
- Add a logger.debug to research tracking issues
- Make the links in the trackings respect the breadcrumb actions.
StephaneMangin pushed a commit to camptocamp/social that referenced this pull request Nov 14, 2024
Some improvements/fixes detected in OCA#1367 and brought to  `16.0`:

- Add `mail_tracking_ids` to `_compute_is_failed_message` triggers.
- Handle bounces to avoid flagging recipients which aren't bounced.
- Add a logger.debug to research tracking issues
- Make the links in the trackings respect the breadcrumb actions.
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.