fix(demography): verify D01-D06 in isolated QA with INE traceability

This commit is contained in:
2026-11-20 20:07:16 +02:00
parent 558c11ef17
commit 3f66201cbe
17 changed files with 570 additions and 89 deletions
+4 -2
View File
@@ -198,7 +198,7 @@ final class SectorContentAnalysis
* @param list<string> $ids
* @return list<array<string,mixed>>
*/
public function forTerritories(array $ids): array
public function forTerritories(array $ids, string $sector = 'general'): array
{
if (! app(LegacyContent::class)->available() || $ids === []) {
return [];
@@ -213,7 +213,9 @@ final class SectorContentAnalysis
}
$result = [];
foreach (config('legacy_content.articles', []) as $slug => $identity) {
if ($identity['group'] !== 'turismo') {
// Provincial articles currently cover tourism only. Never substitute
// those ideas for another economic intention or infer missing offers.
if ($sector !== 'tourism' || $identity['group'] !== 'turismo') {
continue;
}
preg_match('/post-(\d+)-/', $identity['external_id'], $match);