Self-instance with a valid premium license is using the free plan name
Summary
Self-managed instance with a license shows free
as their actual_plan
object, instead of the default
plan object.
Steps to reproduce
Unknown currently. I'm only aware that the customer that has been affected (internal link) has had the instance for a very long time (~2+ years).
What is the current bug behavior?
Performing any changes to the default
plan object does not work when raising application limits.
What is the expected correct behavior?
Performing changes to the default
plan object should work when raising application limits.
Relevant logs and/or screenshots
irb(main):001:0> project = Project.find_by_full_path("group/project")
=> #<Project id:1234 group/project>>
irb(main):002:0> pp project.actual_plan_name
"free"
The free
plan is returned for all projects and groups, newly created, or existing ones. Expected was the default
plan.
irb(main):003:0> pp Gitlab.com?
false
Workarounds
(Ways to get around the issue)
Application limits can be updated on the free
plan object instead of the default
one.
Reported examples
- https://gitlab.zendesk.com/agent/tickets/196781 (internal link)