Skip to content

Pipeline schedules fail to load if the "owner" account gets deleted

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Pipeline schedules fail to load if the "owner" account gets deleted

Steps to reproduce

On GitLab.com, or on a self-managed instance with the pipeline_schedules_vue feature flag enabled.

  • Create a pipeline schedule in a project as a regular user.
  • Load the pipeline schedules page. Observe we can see the schedules.
  • Delete the User account.
  • Load the pipeline schedules page. Observe the error There was a problem fetching pipeline schedules.
  • Also look at the graphql query made when loading the pipeline schedules. We should see the following:
"errors": [
    {
        "message": "Cannot return null for non-nullable field PipelineSchedule.owner"
    }
]

What is the current bug behavior?

Unable to view pipeline schedules when the account of an owner of a pipeline is deleted.

What is the expected correct behavior?

Pipeline schedules should be viewable without errors.

Relevant logs and/or screenshots

With `pipeline_schedules_vue` feature flag enabled on 16.1 image
With `pipeline_schedules_vue` feature flag disabled on 16.1 image

Output of checks

This bug happens on GitLab.com -- Feature flag has been enabled on SaaS: [Feature flag] Rollout of `pipeline_schedules_vue` (#375139 - closed)

Workaround

Use the Pipeline schedules API to find the schedules that have a null owner, and delete the schedules using the API or take ownership of the schedule.

Possible fixes

Edited by 🤖 GitLab Bot 🤖