feat(v2): create DEV data tables, deploy V2 workflow (inactive), record schema introspection
- Fixed 3 remaining "return [...].join(...)" false-positive triggers in logic/message.js (n8n-mcp's static validator flags any inner return-array pattern as if it were the node's own output shape) by extracting each to a named variable before joining. All 3 occurrences of the pattern lived inside buildTopMessage/buildCoordinationDigest, which get fully inlined into both "Code - Montar Mensagem Curta" and "Code - Montar Digest Coordenacao" (whichever function is actually called, the whole module is inlined), so both nodes needed the same fix. - Deployed [DEV] Coordenador GLPI - Chamados Abertos v2 (Shadow) (id y6JFEnp7Z2IJEUe2) to devn8n.gtigrupo.com.br: 36 nodes, inactive, n8n_validate_workflow reports valid:true (0 errors, 1 minor deprecation warning on continueOnFail). - Ran n8n_autofix_workflow: 6 safe typeVersion upgrades applied and mirrored back into n8n/workflow.template.json so future rebuilds stay in sync. - Found and fixed a real safety issue: creating the workflow before the "MySQL GLPI - Coordenador" credential existed caused n8n to silently auto-bind the 3 MySQL nodes to the only other mySql-type credential in the instance (an unrelated Asaas billing credential). Cleared those credential bindings (both live and in the template) rather than leave them pointing at the wrong database. - Created the two Data Tables the pipeline needs: coordenador_glpi_memoria (17 columns) and coordenador_glpi_shadow_runs (6 columns). - Documented the pending schema introspection (glpi_tickettasks.state column name unverified, blocked on the MySQL credential) and an unrelated discovery (two other Data Tables, dev_glpi_v2_insights_memory and dev_glpi_v2_run_history, appeared on the DEV instance mid-session from a source other than this one) in docs/superpowers/notes/. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
a99a25cb1a
commit
af48ea69d8
+12
-12
@@ -13,7 +13,7 @@
|
||||
"id": "schedule-trigger-v2-desligado",
|
||||
"name": "Schedule Trigger - Dias uteis 08h (desligado em DEV)",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"typeVersion": 1.2,
|
||||
"typeVersion": 1.3,
|
||||
"position": [-1600, 900],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
@@ -27,7 +27,7 @@
|
||||
"id": "config-v2",
|
||||
"name": "Config - Coordenador GLPI v2",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"typeVersion": 3.5,
|
||||
"position": [-1360, 0],
|
||||
"parameters": {
|
||||
"assignments": {
|
||||
@@ -63,19 +63,17 @@
|
||||
"id": "mysql-buscar-candidatos",
|
||||
"name": "MySQL - Buscar Candidatos",
|
||||
"type": "n8n-nodes-base.mySql",
|
||||
"typeVersion": 2.4,
|
||||
"typeVersion": 2.5,
|
||||
"position": [-880, -160],
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} },
|
||||
"credentials": { "mySql": { "name": "MySQL GLPI - Coordenador" } }
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} }
|
||||
},
|
||||
{
|
||||
"id": "mysql-legado-top10-shadow",
|
||||
"name": "MySQL - Legado Top 10 (Shadow)",
|
||||
"type": "n8n-nodes-base.mySql",
|
||||
"typeVersion": 2.4,
|
||||
"typeVersion": 2.5,
|
||||
"position": [-880, 900],
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} },
|
||||
"credentials": { "mySql": { "name": "MySQL GLPI - Coordenador" } }
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} }
|
||||
},
|
||||
{
|
||||
"id": "code-normalizar-candidatos-base",
|
||||
@@ -97,10 +95,9 @@
|
||||
"id": "mysql-buscar-contexto",
|
||||
"name": "MySQL - Buscar Contexto",
|
||||
"type": "n8n-nodes-base.mySql",
|
||||
"typeVersion": 2.4,
|
||||
"typeVersion": 2.5,
|
||||
"position": [-160, -160],
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} },
|
||||
"credentials": { "mySql": { "name": "MySQL GLPI - Coordenador" } }
|
||||
"parameters": { "operation": "executeQuery", "query": "={{ $json.query }}", "options": {} }
|
||||
},
|
||||
{
|
||||
"id": "code-mesclar-contexto-hash",
|
||||
@@ -188,7 +185,7 @@
|
||||
"id": "http-openai-classificar",
|
||||
"name": "HTTP - OpenAI Classificar Chamado",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"typeVersion": 4.4,
|
||||
"position": [1520, -400],
|
||||
"continueOnFail": true,
|
||||
"parameters": {
|
||||
@@ -426,6 +423,9 @@
|
||||
"Manual Trigger": {
|
||||
"main": [[{ "node": "Config - Coordenador GLPI v2", "type": "main", "index": 0 }]]
|
||||
},
|
||||
"Schedule Trigger - Dias uteis 08h (desligado em DEV)": {
|
||||
"main": [[{ "node": "Config - Coordenador GLPI v2", "type": "main", "index": 0 }]]
|
||||
},
|
||||
"Config - Coordenador GLPI v2": {
|
||||
"main": [[
|
||||
{ "node": "Code - Montar SQL Candidatos", "type": "main", "index": 0 },
|
||||
|
||||
Reference in New Issue
Block a user