openedx / license-manager

Django backend for managing licenses and subscriptions
GNU Affero General Public License v3.0
30 stars 30 forks source link

feat: Add field to allow auto-apply without SSO #718

Closed brobro10000 closed 1 month ago

brobro10000 commented 1 month ago

Description

Adds a new boolean field to the Customer agreement model labeled enable_auto_applied_subscriptions_with_universal_link. The default value is false.

Learner portal changes associated with new field: https://github.com/openedx/frontend-app-learner-portal-enterprise/pull/1204

Updates SubscriptionPlanShouldAutoApplyLicensesChoices, "Unknown" field to dashs ("------"). Reason being that Unknown is ambiguous to a user what selecting Unknown actually means or does. Opted not to explicitly make it a boolean field due to the allow null parameter on the model field.

Testing considerations

Post-review

Squash commits into discrete sets of changes