Display license ID retrieved from CustomersDot
What does this MR do and why?
Part of #344898 (closed)
Prior to this changes, the displayed license ID was the one from GitLab's license database table instead of the one retrieved from CustomersDot. While the right logic was supposed to be used, the global_id
logic used the license's id instead of the License#license_id
method as used in the graphql resolvers.
This change will fix the issue with the global id logic by overriding the id method in the resolver with a custom global id logic that uses the License#license_id
method.
Screenshots or screen recordings
Note the change in the displayed ID:
before | after |
---|---|
How to set up and validate locally
- Open the rails console for you GitLab instance.
- Load the current license:
license = License.current
. - Check the license's ID:
license.id
. - Check the license's license ID (included in the encrypted license key):
license.license_id
. - Check the subscription details box on
/admin/subscription
, the displayed ID should match the one in step 4.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Corinna Gogolok