Skip to content

Add helper methods for extending and reactivating trial

Vitaly Slobodin requested to merge vs/reactivate-extend-trial-helper into master

What does this MR do?

This MR is about adding two helper methods that will be used in next merge requests for displaying the button for extending or reactivating the trial:

  1. show_extend_reactivate_trial_button? - for checking if we need to display the button
  2. extend_reactivate_trial_button_data - for returning a Hash with initial data for this Vue.js-based button.

This is the 1st merge request out of 3:

  1. Add helper methods (this one)
  2. Add Vue.js button
  3. Add initialization code and feature tests

See #321577 (closed) for more information.

Screenshots or Screencasts (strongly suggested)

image

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