feat(v2): candidate pool SQL (admin exclusion preserved, no hard LIMIT 10) + verbatim legacy SQL for shadow mode
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
60015c0972
commit
00bb89f4f4
@@ -0,0 +1,13 @@
|
||||
// @requires config.js
|
||||
const config = parseConfig($env);
|
||||
const glpiBaseUrl = String($('Config - Coordenador GLPI v2').first().json.glpi_base_url || '').replace(/\/$/, '').replace(/'/g, "''");
|
||||
|
||||
const queryTemplate = /* __SQL_CANDIDATOS_V2__ */;
|
||||
|
||||
const query = queryTemplate
|
||||
.replaceAll('{DIAS_SEM_INTERACAO_ALERTA}', String(config.diasSemInteracaoAlerta))
|
||||
.replaceAll('{HORAS_SLA_RISCO}', String(config.horasSlaRisco))
|
||||
.replaceAll('{GLPI_BASE_URL}', glpiBaseUrl)
|
||||
.replaceAll('{CANDIDATE_POOL_SIZE}', String(config.candidatePoolSize));
|
||||
|
||||
return [{ json: { query, config } }];
|
||||
Reference in New Issue
Block a user