You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Governance: shrink the public surface to tier lookup and drop backwards references #2381
Peter's direction from the Governance section review (PR #2378), recorded so the work can be planned. The goal of each item is to drop a cross-section reference, not just move code.
Governance's public surface shrinks to "is this person in the association?" IGovernanceService.GetMembershipTierAsync / GetMembershipTiersAsync stay public. Everything else about applications is Governance-internal:
Users stops reading applications.GetUserApplicationsAsync is called by Users (profile and admin detail). Nothing outside Governance needs to know whether someone applied; the application history belongs on Governance's own pages.
Consent's review queue stops reading applications.GetUserIdsWithPendingApplicationAsync and GetSubmittedApplicationForUserAsync are called by Consent's review queue. Consent review asks "is this person a problem?", which is decided on the person's name alone; whether they applied to the association does not matter.
Notifications stops pulling the unvoted-application count.NotificationMeterProvider calls IGovernanceService.GetUnvotedApplicationCountAsync for the Board meter. Notifications never pulls from a section; Governance pushes a notification when something needs the Board. Governance's own nav pill keeps the count internally, so the method leaves the public interface.
Teams stops reading tiers; the Colaboradores and Asociados system teams move out of Teams. Teams calls GetActiveApprovedTierUserIdsAsync / HasActiveApprovedTierAsync to sync those two system teams. "System team" is an overloaded concept from the association's early days, and Teams is about to be reorganized. Governance should own those two groups itself, with what they are used for (Google Group email lists, Drive access) driven by fan-outs Governance feeds, such as an email-group fan-out and a drive-access fan-out. First step: audit where the two system teams are used today.
Governance's backwards references go.
Governance references Issues (it implements IIssueQueueOwner), Consent and Onboarding (resource markers). All three point the wrong way. References to Email, Notifications and Users are fine.
Related, handled elsewhere: whether IMembershipCalculator should exist at all (separate thread).
Issue drain 2026-11-13: vetted against origin/main, still true. Every call site named here exists (Users ProfileController/UsersAdminController, Consent ConsentReviewQueueService, Notifications NotificationMeterProvider, Teams SystemTeamSyncJob), and Humans.Governance.csproj still references Issues, Consent and Onboarding. No open PR covers it.
It is five separate changes, not one small fix, and item 4 depends on the "System teams out of Teams" design that is waiting on your answers.
Question: split this into one issue per item and work them as separate PRs, starting with item 2 (Consent's review queue stops reading applications, the smallest and self-contained), with item 4 parked behind the system-teams design?
Recommended: yes. Item 3 also needs a push-notification shape for the Board meter, so it should come after 1 and 2.
Peter answered on 2026-12-02 (project thread "Work through questions waiting on Peter"): size never needs his sign-off. "If you can build it, you can build it." The only gate on big work is whether the ask is well defined, and this one is. Build the unblocked items as separate PRs; item 4 waits on the system-teams design.
Activity
peterdrier commentedon Nov 13, 2026
Issue drain 2026-11-13: vetted against
origin/main, still true. Every call site named here exists (UsersProfileController/UsersAdminController, ConsentConsentReviewQueueService, NotificationsNotificationMeterProvider, TeamsSystemTeamSyncJob), andHumans.Governance.csprojstill references Issues, Consent and Onboarding. No open PR covers it.It is five separate changes, not one small fix, and item 4 depends on the "System teams out of Teams" design that is waiting on your answers.
Question: split this into one issue per item and work them as separate PRs, starting with item 2 (Consent's review queue stops reading applications, the smallest and self-contained), with item 4 parked behind the system-teams design?
Recommended: yes. Item 3 also needs a push-notification shape for the Board meter, so it should come after 1 and 2.
Generated by Claude Code
Move consent to-dos and alert from Governance to Consent (#2673)
peterdrier commentedon Dec 2, 2026
Peter answered on 2026-12-02 (project thread "Work through questions waiting on Peter"): size never needs his sign-off. "If you can build it, you can build it." The only gate on big work is whether the ask is well defined, and this one is. Build the unblocked items as separate PRs; item 4 waits on the system-teams design.
Generated by Claude Code
Governance: other sections show the membership pill instead of readin…