Skip to content

Reconsider guidelines handling #9553

@nijel

Description

@nijel

Describe the problem

The guidelines are calculated when the page is displayed. This makes it slow, as it looks at the string's contents to see if some flags should be applied. This also makes it impractical to display guidelines in other contexts, as they can be super slow on components with hundreds of components (that's why it was removed from billing in f46a074).

Describe the solution you'd like

Calculate them in the background and store the results in the database, doing the calculation only when necessary.

Describe alternatives you've considered

  • Keep guidelines standalone; just store them in the database.
  • Merge guidelines with alerts and reuse their framework.

Screenshots

No response

Additional context

Alerts are currently for errors, while guidelines are suggestions. This needs to be evaluated to avoid too many annoying alerts.

See also #9497

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for: ImplementationAdded to a milestone, will be resolved according to the milestone timeline.enhancementAdding or requesting a new feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions