Skip to content

Trigger HIX calculation in background if feature is enabled in region #2335

Description

@timobrembeck

Motivation

When a region was created/cloned without the HIX feature, and then afterwards the checkbox is enabled in the region form, all existing pages continue to have a HIX value of None, meaning they are ready for MT without clear knowledge about the value.

Proposed Solution

When the checkbox is changed from "off" to "on", we could trigger the HIX calculation of all existing pages in the background. (In the foreground it would take too long to render the region form).

Alternatives

Execute the hix_bulk management command in such cases

User Story

As a service team member, I want to enable HIX in a region and immediately (or shortly after) see the correct HIX values of all existing pages.
As a region manager, I want to use the HIX feature immediately (or shortly after) it has been activated.

Additional Context

For an example how background tasks might be executed, have a look at how e.g. the linkcheck library is doing it. We don't have to copy that approach (it might not be the best way), but it is one possibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumShould be doable in <12hreadyThis issue is ready to be worked ontopic:PerformanceIssues related to performance of the CMS

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions