Skip to content

🧹 Remove duplicated 'Good example' text from figures after prefix migration #11741

@KostaMadorsky

Description

@KostaMadorsky

Requested by: @KostaMadorsky via YakShaver.ai 🦬
cc: @KostaMadorsky, @adamcogan, @tiagov8

Hi Team!

  🟥  Watch the video (1 min 28 sec)

  Url from screen share: https://www.ssw.com.au/rules/admin-ui/rules/generate-interfaces-for-your-dtos

Pain

After the migration to figure prefixes in Rules (Content), many figures now display duplicated text such as a green tick prefix with 'Good example - Good example - '. Previously, the 'Good example -' text was part of the figure content, but it is now automatically added via the figure prefix. This results in duplicated labels across many existing rules. Perform a bulk cleanup to remove the redundant 'Good example -' text from figure content where the figure prefix already provides it.

Acceptance Criteria

  1. Figures using the 'Good example' figure prefix no longer display duplicated 'Good example -' text in the figure content.
  2. The green tick prefix with a single 'Good example' label is displayed consistently across all affected rules.
  3. Bulk update is applied to existing rules created or edited prior to the prefix migration.
  4. No valid non-duplicated figure content is removed or altered.
  5. Randomly sampled rules (including older rules ~1 year old) confirm the issue is resolved.

Screenshot

Screenshot
Figure: Duplicated “Good example” label caused by figure prefix and text both including it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions