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.
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_bulkmanagement command in such casesUser 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.