Fix pipeline schedules view when owner is nil
What does this MR do and why?
The pipeline schedule Vue refactor in !128913 (merged) caused pipeline schedules not to be rendered when an owner of a pipeline schedule was nil. This can happen if the user is deleted.
Update the GraphQL schema and Vue code to allow for a nil owner.
Relates to #427747 (closed)
How to set up and validate locally
- Choose a project and click on
Build
->Pipeline schedules
. - Create a new pipeline schedule.
- Run
bin/rails console
and update theowner_id
tonil
:Ci::PipelineSchedule.last.update(owner_id: nil)
. - Load the pipeline schedule page again. You should see
There was a problem fetching pipeline schedules.
. - With this branch, reload the page. It should display. If you are an owner of the project, you can also take ownership of this orphaned pipeline schedule.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Stan Hu