Skip to content

Add trial suffix to can_extend and can_reactivate methods in the Namespace class

What does this MR do?

There are two methods in the Namespace class that we use for checking if the trial can be extended or reactivated. They are named as can_extend? and can_reactivate?. Seeing these methods in the code base might be misleading due to their names:

if namespace.can_extened?
# or 
if namespace.can_reactivate?

Let's add suffix trial to both of them to resolve that:

if namespace.can_extend_trial?
# or 
if namespace.can_reactivate_trial?

Closes #335965 (closed)

Screenshots or Screencasts (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Vitaly Slobodin

Merge request reports