Newly created project finds pipelines from previously existing project with the same name

Summary

Newly created project achieves pipelines from previously existing project with the same name

Steps to reproduce

  1. Create new project.
  2. Setup any CI/CD pipeline.
  3. Trigger pipeline.
  4. Remove project clicking Remove project in General -> Settings -> Advanced, during pipeline execution.
  5. Agree to remove project.
  6. Create new project with the same group and name.
  7. Go to CI/CD -> Pipelines.
  8. Observe pipelines from removed project.
  9. Click on any of pipeline stages leads to Something went wrong on our end.

What is the current bug behavior?

Pipelines from previous project are shown.

What is the expected correct behavior?

Empty pipeline list is expected.

Relevant logs and/or screenshots

The screen after clicking on any of pipeline stages: image

Stage details HTTP request:

Request URL: https://gitlab.com/inayelle/<project>/pipelines/132867130/stage.json?stage=build%2Fany
Request Method: GET
Status Code: 404 
Remote Address: 172.65.251.78:443
Referrer Policy: origin-when-cross-origin

Output of checks

This bug happens on GitLab.com

Edited by Jason Yavorsky