Skip to content

Fix images for pipeline empty state experiment

What does this MR do?

The experiment to show a list of CI templates on the pipelines empty state has a bug that I found in staging, where it didn't properly render the images, since they didn't go through the asset pipeline. This is fixing it now by supplying the list of CI templates from the backend instead using the image_path helper.

Previous MRs:

Issue: gitlab-org/growth/team-tasks#310 (closed)

Note: I wasn't able to test this on the review app unfortunately, although I set the feature flag. There is probably some caching going on that prevented me from rendering the experiment state.

Screenshots (strongly suggested)

Before (on staging) After
Screen_Shot_2021-04-08_at_20.12.00 Screen_Shot_2021-04-12_at_17.08.52

How to test locally

Note: If the following does not work, try to restart the gdk to make sure no feature flag was cached.

  • echo 'Feature.enable(:pipeline_empty_state_templates)' | bin/rails c
  • Create or go to a project without a .gitlab-ci.yml
  • Disabled "Default to Auto DevOps pipeline" in the CI/CD settings of your project (http://localhost:3000/<group_name>/<project_name>/-/settings/ci_cd
  • Go to CI/CD -> Pipelines (http://localhost:3000/<group_name>/<project_name>/-/pipelines

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • 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 Nicolas Dular

Merge request reports

Loading