cal-itp / benefits

Transit benefits enrollment, minus the paperwork.
https://docs.calitp.org/benefits
GNU Affero General Public License v3.0
26 stars 9 forks source link

Refactor enrollment check to lookup groups for funding source #2041

Closed thekaveman closed 4 months ago

thekaveman commented 4 months ago

This is blocked until cal-itp/littlepay#60 is released.

Right now we lookup all funding sources for a given group, and check if the current user's funding source is in that list.

This change will invert the lookup -- we'll get the groups for the current user's funding source, which is likely a much smaller list to check.

Acceptance Criteria

thekaveman commented 4 months ago

Oops, I opened #2068 forgetting that I had already opened this one. I like the description in that one better, closing this as a dupe.