Skip to content

Move learn gitlab from index to show for more resourceful routing

Doug Stull requested to merge 387662-move-learn-gitlab-from-index-to-show into master

What does this MR do and why?

What

  • Moves learn gitlab index action to a show action. No path changes.
  • Other minor refactoring and cleanup

Why

  • Makes this a more resourceful route based off of project_id and preps for move of onboarding to this controller in !109243 (merged)

Screenshots or screen recordings

No change

learn_gitlab

How to set up and validate locally

note basically trying to emulate feature spec steps in ee/spec/features/registrations/saas/standard_flow_just_me_creating_project_spec.rb

  1. Setup to simulate SaaS and restart GDK
    • Make sure Admin > Settings > General > Sign Up Restrictions match the below (no admin approval, but hard email confirmation) image
  2. Register as a new user.
  3. Confirm email by finding the confirmation path from last User created in rails console
    • Rails.application.routes.url_helpers.user_confirmation_path(confirmation_token: User.last.confirmation_token)
  4. Visit the path from the previous step.
  5. You should be on the sign in page, log back in.
  6. Select any 'role' and 'Just me' in the welcome form after sign up step.
  7. Choose 'Create a new project'
  8. Click 'Continue'
  9. Fill out fields to create a group and project on the next page.
  10. Click 'Create project'
  11. Verify you get to the onboarding and page refreshes to provide a "Ok, let's go" button.
  12. Click on "Ok, let's go" and verify you are dropped into the learn gitlab project and the celebrate modal pops up with confetti

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 #387662 (closed)

Edited by Doug Stull

Merge request reports

Loading