Skip to content

Fix the case when mirror trigger builds is not set

Vasilii Iakliushin requested to merge 418733_fix_default_state into master

What does this MR do and why?

Contributes to #418733 (closed)

Follow-up fix for !146899 (merged)

Problem

Mirror trigger builds can be nil, in this case to_boolean method returns nil too.

Solution

Use default: false to prevent this case.

Screenshots

Before After
Screenshot_2024-03-21_at_12.19.52 Screenshot_2024-03-21_at_12.19.42

How to set up and validate locally

  1. Create a new group.
  2. Import a repository by URL with Mirror repository checked under the group.

Screenshot_2023-07-17_at_12.40.27

  1. Mirroring should be configured if Mirror repository is checked.
Edited by Vasilii Iakliushin

Merge request reports