Alert content type - Page visibility validation issue

Created on 22 August 2024, 29 days ago
Updated 19 September 2024, about 8 hours ago

Problem/Motivation

On Alert (Content Type) setting up Page visibility condition failed validation on the first line and doesn't continue to the next url for validation

Steps to reproduce

Create/Update an Alert (Content Type)
Test 1:
------
Set Page Visibility
/page1
/page1/*

Navigate to the page /page1 - Alert will not show.

Test 2:
------
Set Page Visibility
/page1/*
/page1

Navigate to the page /page1 - Alert will show on page1 page.

Proposed resolution

Validate all Page visibility url(s) to find the first valid (true) validation.
Don't break the loop when finding the first false
Break the loop on the first true validation (as you don't need to continue)

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

1.8

Component

Code

Created by

🇿🇦South Africa kobusvw

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

Comments & Activities

Production build 0.71.5 2024