Skip to content

Add AwesomeCo AwesomeSoft Demo data and hooks

Dan Davison requested to merge dj-awesomeco into master

What does this MR do and why?

Add AwesomeCo demo data harness and AwesomeSoft company with seeded data.

As part of the Demo and Test Data Working Group, we'd like to go forward with re-using FactoryBot factory definitions to populate demo data within GitLab. This Rake task is not used anywhere, unless explicitly called.

This test data harness re-uses our already existing FactoryBot factories residing within spec/factories/* and ee/spec/factories/* to invoke low-level calls to generate test data.

It does not rely on an API that may change in the future.

It is already being maintained by everyone that makes changes to the GitLab source, thus will always be up-to-date if any model changes.

Screenshots or screen recordings

Screen_Shot_2022-03-24_at_15.57.34 Screen_Shot_2022-03-24_at_15.58.09 Screen_Shot_2022-03-24_at_15.58.31

How to set up and validate locally

You can either use GDK, or follow the Docker Demo instructions. If you follow these instructions, use the container registry.gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/gitlab-ee:8f5b8c5cd038c368e09f0b0c789a8aebb3241fd7 rather than gitlab/gitlab-ee:<tag>.

GDK

$ bundle install
$ gdk start
$ bundle exec rake db:migrate
$ bundle exec rake "gitlab:seed:awesome_co[awesome_co,1]"

Demo data specified in awesome_soft.rb will be populated in the namespace with ID of 1 (root user namespace)

You should see Demo Data populated if you are logged in as the Root user.

MR acceptance checklist

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

Edited by Dan Davison

Merge request reports

Loading