Skip to content
Snippets Groups Projects

Refactor trial parameter concerns in saas onboarding

Merged Doug Stull requested to merge 413995-refactor-onboarding-items into master
All threads resolved!

What does this MR do and why?

Refactor some parameter concerns in saas onboarding.

  • some tuning around wether to pass/show trial param.
  • switch from only passing if true to only passing if it was passed and had value

Trial param

  1. trial exist and is true if the user registers through trial_registrations/new path. Otherwise the parameter will not exist(yet). trial_registrations/new is only available on SaaS.
  2. User is redirected to the WelcomeController#show.

old way to pass the trial param to company controller

  1. ee/app/views/registrations/welcome/_setup_for_company.html.haml partial that is part of the WelcomeController#show form submission adds a hidden field of trial that will always be submitted(even if no trial param passed to the show action.
  2. If the user is directed to the company controller next, this trial param is passed, only if it is true.

new way to pass the trial param to company controller

  1. The WelcomeController#show form submission now has the param added on the submission URL for the update only if trial exists in the params and has value.
  2. If the user is directed to the company controller next, this trial param is passed.

How to set up and validate locally

All variations of this can be validated by the feature specs in ee/spec/features/registrations/saas

MR acceptance checklist

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

Related to #422074 (closed)

Edited by Doug Stull

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Doug Stull
  • Doug Stull
  • Doug Stull added 1 commit

    added 1 commit

    • ce4d71c5 - Refactor some parameter concerns in saas onboarding

    Compare with previous version

  • Doug Stull marked this merge request as ready

    marked this merge request as ready

  • Doug Stull marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

    marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

  • Doug Stull changed the description

    changed the description

  • Doug Stull changed the description

    changed the description

  • Doug Stull requested review from @syarynovskyi

    requested review from @syarynovskyi

  • Doug Stull added workflowin review label and removed workflowin dev label

    added workflowin review label and removed workflowin dev label

  • added maintenancerefactor typemaintenance labels and removed typebug label

  • removed missed:16.1 label

  • removed missed:16.2 label

  • Doug Stull changed title from Refactor some parameter concerns in saas onboarding to Refactor trial parameter concerns in saas onboarding

    changed title from Refactor some parameter concerns in saas onboarding to Refactor trial parameter concerns in saas onboarding

  • approved this merge request

  • :wave: @syarynovskyi, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • requested review from @tkuah and removed review request for @syarynovskyi

  • Thong Kuah approved this merge request

    approved this merge request

  • Thong Kuah resolved all threads

    resolved all threads

  • LGTM, thanks for the clear and easy to follow MR description @dstull

  • Thong Kuah enabled an automatic merge when the pipeline for 72ea373e succeeds

    enabled an automatic merge when the pipeline for 72ea373e succeeds

  • merged

  • @tkuah, did you forget to run a pipeline before you merged this work? Based on our code review process, if the latest pipeline was created more than 6 hours ago OR finished more than 2 hours ago, you should:

    1. Ensure the merge request is not in Draft status.
    2. Start a pipeline (especially important for Community contribution merge requests).
    3. Set the merge request to auto-merge.

    This is a guideline, not a rule. Please consider replying to this comment for transparency.

    This message was generated automatically. You're welcome to improve it.

  • Thong Kuah mentioned in commit 7bd07f52

    mentioned in commit 7bd07f52

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading