Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Keel - LDH Middleware Keel - LDH Middleware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • libertyliberty
  • hosthost
  • Keel - LDH MiddlewareKeel - LDH Middleware
  • Merge requests
  • !177

Add bundlechange App that takes care of customers upgrades and downgrades

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Birin Sanchez requested to merge birin.sanchez/ldh_middleware:29_upgrade_free2complete_config_way into master Jun 12, 2019
  • Overview 4
  • Commits 3
  • Pipelines 3
  • Changes 24

Things to consider:

  • This commit adds a new Model, so migration is needed.
  • 3 new configuration options are needed, if not added ldh_middleware will crash.
  • When upgrading/downgrading from/to 'Family pack' forced_update does not take care of the invitees accounts. Upgrading from/to Family pack can be disable through the YAML file pointed by WOO_BUNDLES_INFO_FILE.

Changes:

limitmonitor.common module:

  • Add billing_period to parse_subscription
  • Add order_paid, cancel_subscription, get_user_external_credit, get_available_bundles and get_user_upgrade_choices

limitmonitor.task_resources.subscription:

  • Process pending_regs in reverse order
  • Add upgrade_user_subscription and process_bundle_changes

limitmonitor.views:

  • Add can_upgrade control

middleware.settings:

  • Add BundleChange app
  • Add new config variable for BundleChange

purist:

  • Rename DeleteAcccountForm for reuse
  • Add display names to AccountType
  • Move spinner animation into a single template in purist module for reuse

3 new config options:

  • WOO_PARENT_PROD_ID
  • WOO_UPGRADE_PAY_URL
  • WOO_BUNDLES_INFO_FILE
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 29_upgrade_free2complete_config_way