Skip to content

Commit

Permalink
Fixed connector's matching rule in the demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Jul 17, 2024
1 parent 4d5505a commit 1047c8c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions updatedb/003_system_config.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ UPDATE system SET value = 'openldap' WHERE key = 'ldap_servers';
UPDATE system SET value = true WHERE key = 'ldap_on';
UPDATE system SET value = 'STARTTLS' WHERE key = 'ldap_encryption_type';

INSERT INTO processes VALUES (4, 'Ask operator');
INSERT INTO processes_users VALUES (4, 2), (4, 3);
INSERT INTO public.processes (id_process, name) VALUES (4, 'Archive files');
INSERT INTO public.processes_users (id_process, id_user) VALUES (4, 2);
INSERT INTO public.processes_users (id_process, id_user) VALUES (4, 3);

INSERT INTO connectors (id_connector, active, connector_code, connector_label, connector_params, import_freq, max_retries, name)
VALUES (0, true, 'geoshopextract', 'Plugin Geoshop STIN', '{"uploadSize":"","detailsUrl":"","pass":"5%G*1jA^BpJDiEpi","login":"extract","url":"http://geoshop:8000"}', 4, 3, 'Extract')
ON CONFLICT DO NOTHING;

INSERT INTO tasks(id_task, task_code, task_label, task_params, position, id_process)
VALUES(4, 'VALIDATION', 'Validation opérateur', '{"reject_msgs":"","valid_msgs":""}', 1, 4);

INSERT INTO rules VALUES (4, true, 1, '*', 0, 4);
INSERT INTO connectors (id_connector, active, connector_code, connector_label, connector_params, error_count, import_freq, last_import_date, last_import_msg, max_retries, name) VALUES (4, true, 'geoshopextract', 'Plugin Geoshop SITN', '{"uploadSize":"","detailsUrl":"","pass":"5%G*1jA^BpJDiEpi","login":"extract","url":"http://geoshop:8000"}', 0, 5, '2024-07-17 10:25:13.03', '', 3, 'Demo extract connector');
INSERT INTO public.tasks (id_task, task_code, task_label, task_params, "position", id_process) VALUES (7, 'ARCHIVE', 'Archivage fichiers', '{"path":"/tmp/archive.zip"}', 1, 4);
INSERT INTO public.rules (id_rule, active, "position", rule, id_connector, id_process) VALUES (4, true, 1, 'surface > 0', 4, 4);

0 comments on commit 1047c8c

Please sign in to comment.