Skip to content

Commit

Permalink
fix(dml_issue_30): minor bug on writting cat_node column
Browse files Browse the repository at this point in the history
  • Loading branch information
danimarinBG committed Jan 16, 2025
1 parent 07c15dc commit 29830a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updates/40/40000/utils/dml_issue_30.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ UPDATE sys_fprocess SET fprocess_name='Null values on closed/broken values for v
WHERE n.state = 1 AND (broken IS NULL OR closed IS NULL)', info_msg='There are not operative valves with null values on closed/broken fields.', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=176;
UPDATE sys_fprocess SET fprocess_name='inlet_x_exploitation with null/wrong values', "source"='core', fprocess_type='Check graph-data', project_type='ws', except_level=3, except_msg='rows with exploitation bad configured on the config_graph_mincut table. Please check your data before continue.', query_text='SELECT * FROM config_graph_mincut cgi INNER JOIN node n ON cgi.node_id = n.node_id WHERE n.expl_id NOT IN
(SELECT expl_id FROM exploitation WHERE active IS TRUE)', info_msg='It seems config_graph_mincut table is well configured. At least, table is filled with nodes from all exploitations. All tanks are defined in config_graph_mincut.', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=177;
UPDATE sys_fprocess SET fprocess_name='dma-nodeparent acording with graphdelimiter', "source"='core', fprocess_type='Check graph-config', project_type='ws', except_level=2, except_msg='nodes with cat_feature_node.graph_delimiter=''DMA'' not configured on the dma table.', query_text='SELECT node_id, nodecat_id, the_geom, a.active, t_node.expl_id FROM t_node JOIN cat_node c ON id=nodecat_id JOIN cat_feature_node n ON n.id=c.nodetype_id
UPDATE sys_fprocess SET fprocess_name='dma-nodeparent acording with graphdelimiter', "source"='core', fprocess_type='Check graph-config', project_type='ws', except_level=2, except_msg='nodes with cat_feature_node.graph_delimiter=''DMA'' not configured on the dma table.', query_text='SELECT node_id, nodecat_id, the_geom, a.active, t_node.expl_id FROM t_node JOIN cat_node c ON id=nodecat_id JOIN cat_feature_node n ON n.id=c.node_type
LEFT JOIN (SELECT node_id, active FROM t_node JOIN (SELECT (json_array_elements_text((graphconfig::json->>''use'')::json))::json->>''nodeParent'' as node_id,
active FROM dma WHERE graphconfig IS NOT NULL )a USING (node_id)) a USING (node_id) WHERE graph_delimiter=''DMA'' AND (a.node_id IS NULL
OR node_id NOT IN (SELECT (json_array_elements_text((graphconfig::json->>''ignore'')::json))::text FROM dma WHERE active IS TRUE)) AND t_node.state > 0 and verified<>''2'' and a.active is false', info_msg='All nodes with cat_feature_node.graphdelimiter=''DMA'' are defined as nodeParent on dma.graphconfig', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=180;
Expand Down

0 comments on commit 29830a2

Please sign in to comment.