Skip to content

Commit

Permalink
#0 | Remove form_element_group.display from test/resources sql inserts
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Oct 1, 2024
1 parent bc9ae05 commit 6b7ff69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/test/resources/media-form-element.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ update individual set observations = observations || jsonb_build_object('b181501


-- Encounter
insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (50571, 'Page', 2660, 'c28ba4eb-f159-4b18-a7c1-baf23d6f7259', 0, 10, 'Page', 12, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (50571, 'Page', 2660, 'c28ba4eb-f159-4b18-a7c1-baf23d6f7259', 0, 10, 12, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (50115, 'Media form element', 1, false, '[]', 108001, 50571, '3ae42c9b-136f-40da-bd9b-2ff638e55683', 0, 12, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-04-13 10:51:44.705 +00:00', '2022-04-13 10:51:44.705 +00:00', null);


Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/organisation-group.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ INSERT INTO form (id, name, form_type, uuid, version, organisation_id, audit_id,
insert into form (id, name, form_type, uuid, version, organisation_id, audit_id, is_voided, decision_rule, validation_rule, visit_schedule_rule, checklists_rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, validation_declarative_rule, decision_declarative_rule, visit_schedule_declarative_rule) values (2659, 'Growth Monitoring Encounter Cancellation', 'ProgramEncounterCancellation', 'cca85c24-68d3-470f-9443-95c458470f54', 0, 13, create_audit(), false, null, null, null, null, 1, 1, '2022-03-16 15:49:17.572 +00:00', '2022-03-16 15:49:17.572 +00:00', null, null, null);


insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5569, 'Second page', 2653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 'Second page', 13, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5569, 'Second page', 2653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 13, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);

insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (40102, 'Numeric Question', 1, false, '[]', 107560, 5569, 'b403247c-04e5-48ec-bbd3-1686e7a44f57', 0, 13, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.705 +00:00', '2022-03-16 15:51:44.705 +00:00', null);
insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (40103, 'Text Question', 2, false, '[]', 107561, 5569, '6237715a-7949-4492-abd7-a6f6c5d58e71', 0, 13, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.744 +00:00', '2022-03-16 15:51:44.744 +00:00', null);
Expand Down Expand Up @@ -192,7 +192,7 @@ INSERT INTO form (id, name, form_type, uuid, version, organisation_id, audit_id,
insert into form (id, name, form_type, uuid, version, organisation_id, audit_id, is_voided, decision_rule, validation_rule, visit_schedule_rule, checklists_rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, validation_declarative_rule, decision_declarative_rule, visit_schedule_declarative_rule) values (3659, 'Growth Monitoring Encounter Cancellation', 'ProgramEncounterCancellation', 'cca85c24-68d3-470f-9443-95c458470f54', 0, 14, create_audit(), false, null, null, null, null, 1, 1, '2022-03-16 15:49:17.572 +00:00', '2022-03-16 15:49:17.572 +00:00', null, null, null);


insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (6569, 'Second page', 3653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 'Second page', 14, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (6569, 'Second page', 3653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 14, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);

insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (50102, 'Numeric Question', 1, false, '[]', 207560, 6569, 'b403247c-04e5-48ec-bbd3-1686e7a44f57', 0, 14, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.705 +00:00', '2022-03-16 15:51:44.705 +00:00', null);
insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (50103, 'Text Question', 2, false, '[]', 207561, 6569, '6237715a-7949-4492-abd7-a6f6c5d58e71', 0, 14, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.744 +00:00', '2022-03-16 15:51:44.744 +00:00', null);
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/test-data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ insert into form (id, name, form_type, uuid, version, organisation_id, audit_id,
insert into form (id, name, form_type, uuid, version, organisation_id, audit_id, is_voided, decision_rule, validation_rule, visit_schedule_rule, checklists_rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, validation_declarative_rule, decision_declarative_rule, visit_schedule_declarative_rule) values (2662, 'Location', 'Location', '8cfd7d50-f181-40ce-9774-e4de9aeece10', 0, 12, create_audit(), false, null, null, null, null, 1, 1, '2022-03-17 15:49:17.572 +00:00', '2022-03-17 15:49:17.572 +00:00', null, null, null);


insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5569, 'Second page', 2653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 'Second page', 12, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5570, 'Location', 2662, '621bad57-5f5b-44cd-8312-2bef0e06e622', 0, 1, 'Location', 12, create_audit(), false, null, 1, 1, '2022-03-17 15:51:44.666 +00:00', '2022-03-17 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5569, 'Second page', 2653, '88e57ffb-3d30-4fd5-9b22-7cbc015ee3c3', 0, 1, 12, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.666 +00:00', '2022-03-16 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5570, 'Location', 2662, '621bad57-5f5b-44cd-8312-2bef0e06e622', 0, 1, 12, create_audit(), false, null, 1, 1, '2022-03-17 15:51:44.666 +00:00', '2022-03-17 15:51:44.666 +00:00', null);
-- General Encounter - Repeatable Question Group
insert into form_element_group (id, name, form_id, uuid, version, display_order, display, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5571, 'Assets', 2660, '43bfe7c3-caf8-42fe-a232-02bb4821e32e', 0, 1, 'Assets', 12, create_audit(), false, null, 1, 1, '2022-03-17 15:51:44.666 +00:00', '2022-03-17 15:51:44.666 +00:00', null);
insert into form_element_group (id, name, form_id, uuid, version, display_order, organisation_id, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (5571, 'Assets', 2660, '43bfe7c3-caf8-42fe-a232-02bb4821e32e', 0, 1, 12, create_audit(), false, null, 1, 1, '2022-03-17 15:51:44.666 +00:00', '2022-03-17 15:51:44.666 +00:00', null);

insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (40102, 'Numeric Question', 1, false, '[]', 107560, 5569, 'b403247c-04e5-48ec-bbd3-1686e7a44f57', 0, 12, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.705 +00:00', '2022-03-16 15:51:44.705 +00:00', null);
insert into form_element (id, name, display_order, is_mandatory, key_values, concept_id, form_element_group_id, uuid, version, organisation_id, type, valid_format_regex, valid_format_description_key, audit_id, is_voided, rule, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, declarative_rule) values (40103, 'Text Question', 2, false, '[]', 107561, 5569, '6237715a-7949-4492-abd7-a6f6c5d58e71', 0, 12, 'SingleSelect', null, null, create_audit(), false, null, 1, 1, '2022-03-16 15:51:44.744 +00:00', '2022-03-16 15:51:44.744 +00:00', null);
Expand Down

0 comments on commit 6b7ff69

Please sign in to comment.