Skip to content

Add support for cancelled subscription licenses

Amparo Luna requested to merge al-411863 into master

What does this MR do and why?

This MR updates the gitlab-license gem to the latest version and introduces some logic to the License model to allow the processing of a generated_from_cancellation license resulting from the seat link sync to CDot.

  • We create a license using the license_key received from CDot. This new license will be expired so we skip the expired_date validation for online_cloud licenses that have generated_from_cancellation=true
  • Then, when loading the current license we ensure we skip non-expired license versions belonging to a cancelled subscription (by subscription name)

Related issue

https://gitlab.com/gitlab-org/gitlab/-/issues/411863 (internal)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Please refer to this note for screenshots and captures.

How to set up and validate locally

Please refer to this note for local validation steps

Edited by Amparo Luna

Merge request reports