Skip to content

Conversation

@ValtteriTuni
Copy link

closes #597

What is in this PR:

  1. User clicks "Unsubscribe service"
    -flag is set to True
    -Subscription remains active
    -Message shows: "Service will be unsubscribed on [date] when your paid days run out"
    -Button changes to "Cancel unsubscribe"

  2. User clicks "Cancel unsubscribe"
    -flag is set to false
    -Subscription continues normally
    -Button changes back to "Unsubscribe service"

  3. Subscription expires with disable_on_expiry = true:
    -Subscription is deleted
    -User access ends on exact paid_until date
    -Action is logged

  4. Subscription expires with disable_on_expiry = false (default, unchanged):
    -Subscription goes to overdue state
    -User gets reminders

  5. User makes payment while disable_on_expiry = True
    -Flag is cleared
    -Paid days are aded normally
    -Subscription continues - unsubscribe is cancelled

  6. Admin panel

  • New column shows disable_on_expiry status
  • Filterable by disable_on_expiry
  • editable
  • Visible in ServiceSubscription admin
  1. User profile page
    -Badge shows "Will auto-unsubscribe on expiry" when flag is set
    -User settings shows "Pending unsubscribe"

  2. 3 Test cases

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.

Add way to disable service after currently paid days run out (instead of it going overdue)

1 participant