Skip to content

fix: key WP All Import's feed copies on the site, not the files - #33

Merged
oxyc merged 1 commit into
mainfrom
fix/wpai-feed-copies-stable-id
Dec 2, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/wpai-feed-copies-stable-id

Conversation

@oxyc

@oxyc oxyc commented Dec 2, 2026

Copy link
Copy Markdown
Member

A WP All Import URL import downloads its feed to a new random folder under wpallimport/uploads/ on every run (<32 hex>/<unix time>.xml, plus a .tmp pair while converting). The plugin-folder flag's id covered every file in the folder, so it changed after each import and an accept never held.

While WP All Import (or Pro) is active on that site, those downloaded copies are now one review flag per site, keyed on its wpallimport/uploads alone (same approach as the Gravity Forms logs in #31). The message asks to check each URL import reads public data, like a job or product feed.

Unchanged:

  • uploaded import files keep their own names (contacts.csv), so they don't match and stay urgent when served;
  • feed copies with the plugin inactive are leftovers and stay urgent.

Tests: TestExposedWPAllImportFeedCopies covers the review flag, an uploaded file next to it staying urgent, a subsite without the plugin staying urgent, and the id holding after the next run's new file and folder. go test ./..., gofmt and vet pass.

🤖 Generated with Claude Code

A URL import downloads its feed to a new random folder under
wpallimport/uploads on every run, so the plugin-folder flag's id changed
with each import and no accept held. While WP All Import is active, the
downloaded copies (named by unix time) are one review flag per site, keyed
on its wpallimport/uploads alone. Uploaded import files keep their own
names and are judged as before, and so are copies once the plugin is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc merged commit 837e8df into main Dec 2, 2026
2 checks passed
@oxyc
oxyc deleted the fix/wpai-feed-copies-stable-id branch December 2, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant