Commit 0d7f74b
authored
[backport core/1.48] fix(workspace): let ended subscriptions resubscribe to the same plan (#14610)
Manual backport of #14607 — the auto-backport workflow failed.
Cherry-pick of `10c56a1` applied cleanly; no changes beyond the original
PR.
## Why this is manual
The backport run
([30839173649](https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/30839173649))
hit a conflict on `core/1.47` only. That failed the whole "Backport
commits" step, which skipped "Create PR for each successful backport"
for the targets that *did* apply cleanly, and the cleanup step then
deleted their branches. Filed as a follow-up on the workflow.
## Original fix
After a Stripe-side cancellation, access is revoked but Plans & Pricing
still showed the lost plan as a disabled "Current Plan", so the user
could not resubscribe to it. An ended subscription still reports its
`plan_slug` and `subscription_tier`, and the pricing table only treated
a cancel-scheduled plan as re-buyable. `subscription_status: 'ended'`
now counts as holding no current plan.
## Verification
Unit tests pass on this branch; CI covers the rest.1 parent c2a749f commit 0d7f74b
2 files changed
Lines changed: 74 additions & 4 deletions
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
124 | 158 | | |
125 | 159 | | |
126 | 160 | | |
| |||
166 | 200 | | |
167 | 201 | | |
168 | 202 | | |
| 203 | + | |
169 | 204 | | |
170 | 205 | | |
171 | 206 | | |
| |||
266 | 301 | | |
267 | 302 | | |
268 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
269 | 324 | | |
270 | 325 | | |
271 | 326 | | |
| |||
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| 618 | + | |
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| |||
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
643 | 648 | | |
644 | 649 | | |
645 | 650 | | |
| |||
676 | 681 | | |
677 | 682 | | |
678 | 683 | | |
679 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
680 | 687 | | |
681 | 688 | | |
682 | 689 | | |
| |||
780 | 787 | | |
781 | 788 | | |
782 | 789 | | |
783 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
784 | 793 | | |
785 | 794 | | |
786 | 795 | | |
787 | 796 | | |
788 | 797 | | |
789 | 798 | | |
790 | 799 | | |
| 800 | + | |
791 | 801 | | |
792 | 802 | | |
793 | 803 | | |
| |||
881 | 891 | | |
882 | 892 | | |
883 | 893 | | |
884 | | - | |
885 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
886 | 901 | | |
887 | 902 | | |
888 | 903 | | |
| |||
0 commit comments