Skip to content

Supporter cleanup: match junk supporters whatever their author - #257

Merged
mlaetitia merged 1 commit into
developfrom
fix/T51ENG-2307-cleanup-any-author
Nov 13, 2026
Merged

mlaetitia merged 1 commit into
developfrom
fix/T51ENG-2307-cleanup-any-author

Conversation

@mlaetitia

Copy link
Copy Markdown
Collaborator

Related to T51ENG-2307

Proposed changes

  • Stop requiring post_author = 0 in wp osi-supporter-cleanup. A supporter still has to be pending, never saved in the editor (_edit_last), and have no endorsement type, link or logo.

Why are these changes being made?

  • The testing site clone set every supporter's author to 1, while production has 0. The rule matched 2 posts there instead of ~89k, so we couldn't prove it before running it on production.

Testing instructions

  • Deploy to the testing site.
  • wp osi-supporter-cleanup --newest-first --limit=1: lists one post with no type.
  • wp osi-supporter-cleanup: the total should be close to the 89,663 pending supporters, minus the ones with a type.
  • Spot-check a few listed IDs in the admin: no type, link or logo.

🤖 Generated with Claude Code

…hor 0 to 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mlaetitia
mlaetitia merged commit 82a93ca into develop Nov 13, 2026
5 checks passed
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