unmapped backers: a plain donation is not a member finding
ci/woodpecker/push/woodpecker Pipeline was canceled

A no-tier BACKER is only a member when it predates the tier system
(LEGACY_NO_TIER_BEFORE). Treating every no-tier BACKER as memberish made
the $75 Workers.VC donation mail info@ as a paid contributor with no
account. Mirror fetch_members() exactly; donations stay silent, and only
unattached credit packs keep the hold-and-notify path.
This commit is contained in:
inference-bot committed 2026-11-21 19:42:36 +00:00
1 parent ac39740acb
commit b761136dd9
2 files changed
+35 -7

No files matched your search

+18 -2
View File
@@ -9087,12 +9087,28 @@ UNMAPPED_BACKERS_MARKER = "unmapped_backers_fingerprint"
def _oc_memberish(node: dict) -> bool:
"""Mirror fetch_members()'s member definition (ADMIN, or Membership/legacy tier)."""
"""Mirror fetch_members()'s member definition exactly.
ADMIN, a BACKER on the Membership tier, or a LEGACY no-tier BACKER who
joined before LEGACY_NO_TIER_BEFORE. A no-tier BACKER who joined after that
cutoff is a plain DONATION: OC grants BACKER role for any one-time
contribution, but a donation is not a membership and has no account to
provision. Treating every no-tier BACKER as memberish made a $75 donation
from Workers.vc (2026-11-21) mail info@ as "a paid contributor with no
account" — a notice about a missing account that was never supposed to
exist. Only unattached credit packs keep a hold-and-notify path; a donation
is silent.
"""
role = node.get("role") or ""
if role not in ("BACKER", "ADMIN"):
return False
if role == "ADMIN":
return True
tier = (((node.get("tier") or {}) or {}).get("name") or "").strip()
return role == "ADMIN" or not tier or "membership" in tier.lower()
if "membership" in tier.lower():
return True
joined = (node.get("createdAt") or "")[:10]
return bool(joined) and joined < LEGACY_NO_TIER_BEFORE
async def reconcile_unmapped_backers(notify: bool = True) -> dict: