← Back to Pull requests

[18.0][ADD] mail_gateway_instagram: add DM gateway #1908

Merged
ivs-cetmix merged 18 files (1986 lines) on Sep 03, 2026 10:18 UTC
View on GitHub
ivs-cetmix ivs-cetmix commented on Aug 28, 2026 17:55 UTC
Author

Instagram messages in your chatter.
mail_gateway already routes public webhooks into Discuss channels, but only Telegram and WhatsApp are implemented. This module adds an Instagram Login connector so professional-account DMs become Discuss threads and replies are sent back as Instagram text.

NB: AI assistance was used for development (why not? 😄 ) however the code was checked manually to ensure it meets the OCA code quality standards.

Task 5591

Diff: 1986 lines (+1986 / -0) across 18 files Reviewer: etobella Review duration: 8183m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.72) × (1 − Review Confidence (0.93)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.72 · 1986 lines diff across 18 files
0.72
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 5 substantive comment(s)
0.94
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
92%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
17 items
ivs-cetmix ivs-cetmix commented on Aug 28, 2026 17:57 UTC
Author

@etobella @josep-tecnativa @jelenapoblet (why not 😄 )

etobella etobella approved these changes on Aug 28, 2026 18:45 UTC
Approved Reviewer

Nice work!

I cannot check it functionally, but technically looks Ok. About the limit of 24 hours, something similar applies to whatsapp, so it should make sense to add the functionality on general.

Also, the code is quite similar to whatsapp, it is clear that both of them belong to meta.

ivs-cetmix ivs-cetmix commented on Aug 28, 2026 19:42 UTC
Author

Also, the code is quite similar to whatsapp, it is clear that both of them belong to meta.

Thank you! I was actually thinking about extracting shared method to a special mail_gateway_meta module so it could be used as a shared foundation for all the Meta service implementations. However this is not for now, can be done later.

etobella etobella commented on Aug 29, 2026 09:49 UTC
Contributor

> Also, the code is quite similar to whatsapp, it is clear that both of them belong to meta.

> Thank you! I was actually thinking about extracting shared method to a special mail_gateway_meta module so it could be used as a shared foundation for all the Meta service implementations. However this is not for now, can be done later.

No need to do this for now. I just shared my surprise, but for now, I think that the effort is not necessary.

Aldeigja Aldeigja approved these changes on Aug 30, 2026 08:48 UTC
Approved Reviewer

Functional LGTM.

OCA-git-bot OCA-git-bot commented on Sep 02, 2026 18:00 UTC
Bot

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

ivs-cetmix ivs-cetmix commented on Sep 02, 2026 18:25 UTC
Author

hey @OCA/social-maintainers would appreciate this module review and merge - this will unblock some new features following up 😄

etobella etobella commented on Sep 03, 2026 05:35 UTC
Contributor

/ocabot merge nobump

pedrobaeza pedrobaeza commented on Sep 03, 2026 08:46 UTC
Contributor

/ocabot merge nobump

OCA-git-bot OCA-git-bot commented on Sep 03, 2026 08:46 UTC
Bot

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1908-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Sep 03, 2026 08:54 UTC
Bot

@pedrobaeza The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_mail_gateway_instagram-18.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_mail_gateway_instagram-18.0.1.0.0.2-py3-none-any.whl
WARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

pedrobaeza pedrobaeza commented on Sep 03, 2026 08:58 UTC
Contributor

Uhm, curious that if we didn't push anything new during last day, the rate limit in PyPi is exhausted... @sbidoul can you please reserve the name?

sbidoul sbidoul commented on Sep 03, 2026 10:05 UTC
Contributor

Name reserved.

pedrobaeza pedrobaeza commented on Sep 03, 2026 10:09 UTC
Contributor

/ocabot merge nobump

OCA-git-bot OCA-git-bot commented on Sep 03, 2026 10:09 UTC
Bot

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-1908-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Sep 03, 2026 10:18 UTC
Bot

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

Reviewers
Assignees
ivs-cetmix ivs-cetmix
Labels
risk: low confidence: 92.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 71.5% (HIGH) · Higher = larger blast radius
71.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 92.8% · Lower = rushed or shallow review
92.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 5.2% · Safe to merge
5.2%
Repository