Visibility groups don't remove existing visibility rules

Created on 3 June 2022, over 2 years ago
Updated 26 February 2023, almost 2 years ago

Problem/Motivation

Enabling a visibility group on a block, and having the "Allow other Conditions on blocks" option disabled on that group (the default), does not remove any existing visibility rules on the block so it won't work as expected

Steps to reproduce

Create a block.
Add visibility rules to the block.
Add a visibility group, ensure that "Allow other Conditions on blocks" is not selected.
Edit the block, select the visibility group, click "save".
Export the block.

Expected results: the only visibility rule in the configuration export will be the visibility group.

What actually happens: the existing visibility rules will still be in the export.

Proposed resolution

When a visibility group is enabled for a block, and "Allow other Conditions on blocks" is disabled for that visibility rule, all existing rules will be removed.

Remaining tasks

Work out the best approach to resolving this problem.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024