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 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • 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
  • libertyliberty
  • hosthost
  • Keel - LDH MiddlewareKeel - LDH Middleware
  • Merge requests
  • !176

WIP: Add bundlechange App that takes care of customers upgrades and downgrades.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Birin Sanchez requested to merge birin.sanchez/ldh_middleware:29_upgrade_free2complete into master Jun 06, 2019
  • Overview 3
  • Commits 1
  • Pipelines 1
  • Changes 26

Changes included in this commit:

limitmonitor.common module:

  • Add billing_period to parse_subscription
  • Add get_variation, order_paid and cancel_subscription

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

I have tested this in my test environment and is working but it will need thorough test in sandbox before going to production.

Things to consider:

  • This commit adds a new Model, so migration is needed.
  • 2 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.

Giving it a WIP title in case we want to wait and add forced_update code for taking care of 'Family pack'.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 29_upgrade_free2complete