1. 07 May, 2021 3 commits
    • Andrew Fontaine's avatar
      Add Experiment Surrounding Environment Guidance · 868a9a67
      Andrew Fontaine authored
      We want to be able to limit the amount of users who can see this alert
      as a slow rollout to see if it is useful.
      
      This experiment is only enabled for projects that don't have existing
      environments, and we currently only track if the user clicks on the
      Learn More link embedded in the alert.
      
      As with all experiments, this is only applicable to GitLab.com
      868a9a67
    • Andrew Fontaine's avatar
      Display File-Based Alerts on the WebIDE · 4cf8a898
      Andrew Fontaine authored
      Provides a way to display alerts attached to files within the WebIDE.
      
      The first alert shows guidance to users who are editing their CI
      configuration about environments, if we are reasonably certain they
      don't know about environments.
      
      We need to request the parsed CI configuration while the user edits it,
      and accomplish this by watching the content. This watcher is
      conditionally created and destroyed when the config file is active.
      4cf8a898
    • Andrew Fontaine's avatar
      Add Store Configuration for Environment Guidance · 78375ddc
      Andrew Fontaine authored
      The getAlert function searches through all available alerts (added
      previously), returning the first alert where its show function returns
      true, or null if none is found.
      
      Actions to fetch the CI configuration for its given current
      content (when it is being edited), as well as to dismiss the callout for
      environment guidance are added here.
      
      We parse the CI configuration during the mutation to only retain whether
      or not we have:
      
      - sucessfully parsed the CI config, and
      - found an environment within the config.
      78375ddc
  2. 06 May, 2021 37 commits