CI/CD configuration button in Project/Details does not reflect reality

Summary

In certain scenarios the CI/CD configuration button in the Project/Details screen might be displayed even though repository does not have any .gitlab-ci.yml.

Steps to reproduce

  1. Create repository
  2. You should see Set up CI/CD button in Project/Details
  3. Commit & push .gitlab-ci.yml file
  4. You should see CI/CD configuration button that will take you to respective file
  5. Delete file .gitlab-ci.yml & commit & push
  6. There is still a CI/CD configuration button, that goes to 404 - Page Not Found

Also I have auto-devops enabled on my project, so that might play a role?

Example Project

https://gitlab.com/michal.bryxi/ember-intl-changeset-validations

  • There a CI/CD configuration button, that goes to 404 - Page Not Found even though that the file was deleted

(What actually happens)

  • The button should go back to Set up CI/CD?

Relevant logs and/or screenshots

Screen_Recording_2019-08-01_at_10.12.18

Output of checks

This bug happens on GitLab.com