Automattic / Automattic/jetpack

Deactivate notifications during import

Open
#31,502 1 comment 1 reaction 0 assignees View on GitHub
[Package] Import [Pri] Low [Status] Stale Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

During a Unified Importer import, comment creation notifications (and potentially others) must be deactivated. A comment created using either:

- `jetpack/v4/import/comments`
- `/wp/v2/comments`

Generate a notification if the post already exists and notifications are on. This will generate multiple unwanted notifications.

Steps to reproduce:

1. If you have 2FA ensure to be logged in https://wordpress.com/me and to have the comments notifications on
2. Create a JN site and export the default xml (it has a default comment)
3. On an empty atomic site, import the xml
4. Import it again

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Unified Importer handling for `jetpack/v4/import/comments` and `/wp/v2/comments`, then reproduce the XML import twice on an empty atomic site with comment notifications enabled. Done means imports no longer generate unwanted comment-creation notifications while the reported existing-post notification behavior remains covered by tests or reproduction steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.