Skip to content

feat: DM-5535: add pending licenses and abandon_pending_license - #93

Draft
elliotsimpson-dm wants to merge 1 commit into
mainfrom
DM-5535-install-a-license-that-requires-activation-as-pending-and-gate-runs-on-it
Draft

elliotsimpson-dm wants to merge 1 commit into
mainfrom
DM-5535-install-a-license-that-requires-activation-as-pending-and-gate-runs-on-it

Conversation

@elliotsimpson-dm

Copy link
Copy Markdown
Collaborator

Summary

Client side of DM-5535. A license that requires activation now installs as pending: the server keeps the previous license masking until the pending one is activated.

  • upload_license_file now returns the uploaded license instead of None. It returns a PendingLicense when the server answers with "status": "pending", and a LicenseInfo otherwise. A server without pending licenses sends no status and always installs the license, so it reads as a LicenseInfo.
  • Add abandon_pending_license, which calls DELETE /api/license/pending/ to remove the pending license. It raises DataMasqueApiError with status 404 when no license is pending, or when the server predates pending licenses.
  • Add requires_activation and is_activated to LicenseInfo. Both are None on a server without license activation.

The matching server change is on the datamasque branch of the same name and has not been merged yet. Activation itself is DM-4906 and DM-4907.

Tests

  • uv run pytest: 823 passed.
  • make lint (ruff, ruff format, mypy): passes.

@elliotsimpson-dm elliotsimpson-dm self-assigned this Dec 1, 2026

This branch has not been deployed

No deployments
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.

1 participant