Skip to content

Update the gitlab-license gem to version 2.2.0

Amparo Luna requested to merge 334317-al-update-gitlab-license-gem into master

What does this MR do and why?

This MR updates the gitlab-license gem to the 2.2.0 version which now requires the expires_at date for licenses. The exception are licenses generated for GitLab owned email addresses.

Some specs needed updates because they relied on an "unlimited" license being created. With the new gem version we need to pass the correct licensee for it to be created correctly.

Relevant change in CustomersDot 👉🏼 https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5071 (internal).

More details in the gitlab-license MR (internal).

Related issue

#334317 (closed)

Screenshots or screen recordings

N/A

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

If you have an unlimited license (without expires_at) for your development environment and the license was generated for a GitLab owned email address, checking out this branch should not present any changes.

If you have an unlimited license (without expires_at) for your development environment and the license was generated for a non GitLab address, checking out this branch should revert to the behavior of not having an active subscription (since the license now should be invalid from the gem).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Amparo Luna

Merge request reports