From 6a94a7fb92801556227778a80cd3112528e550ee Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 09:45:47 -0500 Subject: [PATCH 01/13] Update the schema to add a default user group per logbook. --- db/sql/create_logr_tables.sql | 5 ++++- db/sql/updates/updateTo2026.3.sql | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/db/sql/create_logr_tables.sql b/db/sql/create_logr_tables.sql index c58d5340e..6c7fc7fdd 100644 --- a/db/sql/create_logr_tables.sql +++ b/db/sql/create_logr_tables.sql @@ -611,14 +611,17 @@ CREATE TABLE `entity_type` ( `custom_list_url` varchar(64) DEFAULT NULL, `parent_entity_type_id` int(11) unsigned DEFAULT NULL, `primary_template_item_id` int(11) unsigned DEFAULT NULL, + `default_owner_user_group_id` int(11) unsigned DEFAULT NULL, `sort_order` float(10,2) unsigned DEFAULT NULL, `is_internal` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `entity_type_u1` (`name`), KEY `primary_template_item_entity_type_k1` (`primary_template_item_id`), KEY `parent_entity_type_id_k2` (`parent_entity_type_id`), + KEY `default_owner_user_group_entity_type_k3` (`default_owner_user_group_id`), CONSTRAINT `parent_entity_type_id_fk2` FOREIGN KEY (`parent_entity_type_id`) REFERENCES `entity_type` (`id`) ON UPDATE CASCADE, - CONSTRAINT `primary_template_item_entity_type_fk1` FOREIGN KEY (`primary_template_item_id`) REFERENCES `item` (`id`) ON UPDATE CASCADE + CONSTRAINT `primary_template_item_entity_type_fk1` FOREIGN KEY (`primary_template_item_id`) REFERENCES `item` (`id`) ON UPDATE CASCADE, + CONSTRAINT `default_owner_user_group_entity_type_fk3` FOREIGN KEY (`default_owner_user_group_id`) REFERENCES `user_group` (`id`) ON UPDATE CASCADE ON DELETE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; -- diff --git a/db/sql/updates/updateTo2026.3.sql b/db/sql/updates/updateTo2026.3.sql index b2fb13e58..cf60f28a6 100644 --- a/db/sql/updates/updateTo2026.3.sql +++ b/db/sql/updates/updateTo2026.3.sql @@ -388,4 +388,12 @@ BEGIN deallocate prepare stmt; END // -delimiter ; \ No newline at end of file +delimiter ; + +-- +-- Default owner user group per logbook type (entity_type) +-- + +ALTER TABLE entity_type ADD column `default_owner_user_group_id` int(11) unsigned DEFAULT NULL AFTER primary_template_item_id; +ALTER TABLE entity_type ADD KEY `default_owner_user_group_entity_type_k3` (`default_owner_user_group_id`); +ALTER TABLE entity_type ADD CONSTRAINT `default_owner_user_group_entity_type_fk3` FOREIGN KEY (`default_owner_user_group_id`) REFERENCES `user_group` (`id`) ON UPDATE CASCADE ON DELETE SET NULL; From fdef36587f777423d8f9dd33914304ffe94c0e8d Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 09:59:10 -0500 Subject: [PATCH 02/13] Update clean-db defs --- db/sql/clean/populate_allowed_entity_type.sql | 2 +- .../populate_allowed_entity_type_domain.sql | 5 + .../populate_allowed_property_domain.sql | 2 +- ...pulate_allowed_property_metadata_value.sql | 2 +- .../clean/populate_allowed_property_value.sql | 6 +- db/sql/clean/populate_attachment.sql | 2 +- db/sql/clean/populate_connector_property.sql | 2 +- db/sql/clean/populate_connector_type.sql | 2 +- db/sql/clean/populate_domain.sql | 12 +- db/sql/clean/populate_entity_info.sql | 2 +- db/sql/clean/populate_entity_type.sql | 35 +- db/sql/clean/populate_item.sql | 2 +- db/sql/clean/populate_item_category.sql | 4 +- .../populate_item_category_item_type.sql | 4 +- db/sql/clean/populate_item_connector.sql | 2 +- .../populate_item_connector_property.sql | 2 +- db/sql/clean/populate_item_element.sql | 2 +- .../clean/populate_item_element_history.sql | 2 +- db/sql/clean/populate_item_element_list.sql | 2 +- db/sql/clean/populate_item_element_log.sql | 2 +- .../clean/populate_item_element_property.sql | 2 +- .../populate_item_element_relationship.sql | 2 +- ...late_item_element_relationship_history.sql | 2 +- ...ate_item_element_relationship_property.sql | 2 +- db/sql/clean/populate_item_entity_type.sql | 2 +- db/sql/clean/populate_item_item_category.sql | 2 +- db/sql/clean/populate_item_item_project.sql | 2 +- db/sql/clean/populate_item_item_type.sql | 2 +- db/sql/clean/populate_item_project.sql | 2 +- db/sql/clean/populate_item_resource.sql | 2 +- db/sql/clean/populate_item_source.sql | 2 +- db/sql/clean/populate_item_type.sql | 11 +- db/sql/clean/populate_list.sql | 2 +- db/sql/clean/populate_log.sql | 2 +- db/sql/clean/populate_log_attachment.sql | 2 +- db/sql/clean/populate_log_level.sql | 2 +- db/sql/clean/populate_log_reaction.sql | 2 +- db/sql/clean/populate_log_topic.sql | 2 +- .../populate_notification_configuration.sql | 9 + ...fication_configuration_handler_setting.sql | 9 + ...ate_notification_configuration_setting.sql | 9 + ...pulate_notification_handler_config_key.sql | 16 + .../clean/populate_notification_provider.sql | 11 + ...ulate_notification_provider_config_key.sql | 9 + db/sql/clean/populate_property_metadata.sql | 2 +- .../populate_property_metadata_history.sql | 7 +- db/sql/clean/populate_property_type.sql | 8 +- .../clean/populate_property_type_category.sql | 2 +- .../clean/populate_property_type_handler.sql | 4 +- .../clean/populate_property_type_metadata.sql | 2 +- db/sql/clean/populate_property_value.sql | 2 +- .../clean/populate_property_value_history.sql | 2 +- db/sql/clean/populate_reaction.sql | 12 +- db/sql/clean/populate_relationship_type.sql | 9 +- .../populate_relationship_type_handler.sql | 4 +- db/sql/clean/populate_resource_type.sql | 2 +- .../clean/populate_resource_type_category.sql | 2 +- db/sql/clean/populate_role_type.sql | 2 +- db/sql/clean/populate_setting_type.sql | 420 ++---------------- db/sql/clean/populate_source.sql | 2 +- db/sql/clean/populate_system_log.sql | 2 +- db/sql/clean/populate_user_group.sql | 4 +- db/sql/clean/populate_user_group_list.sql | 2 +- db/sql/clean/populate_user_group_setting.sql | 2 +- db/sql/clean/populate_user_info.sql | 2 +- db/sql/clean/populate_user_list.sql | 2 +- db/sql/clean/populate_user_role.sql | 2 +- db/sql/clean/populate_user_session.sql | 2 +- db/sql/clean/populate_user_setting.sql | 2 +- db/sql/clean/populate_user_user_group.sql | 2 +- 70 files changed, 187 insertions(+), 519 deletions(-) create mode 100644 db/sql/clean/populate_notification_configuration.sql create mode 100644 db/sql/clean/populate_notification_configuration_handler_setting.sql create mode 100644 db/sql/clean/populate_notification_configuration_setting.sql create mode 100644 db/sql/clean/populate_notification_handler_config_key.sql create mode 100644 db/sql/clean/populate_notification_provider.sql create mode 100644 db/sql/clean/populate_notification_provider_config_key.sql diff --git a/db/sql/clean/populate_allowed_entity_type.sql b/db/sql/clean/populate_allowed_entity_type.sql index 31941ee47..231c307dd 100644 --- a/db/sql/clean/populate_allowed_entity_type.sql +++ b/db/sql/clean/populate_allowed_entity_type.sql @@ -6,4 +6,4 @@ LOCK TABLES `allowed_entity_type` WRITE; /*!40000 ALTER TABLE `allowed_entity_type` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_entity_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_allowed_entity_type_domain.sql b/db/sql/clean/populate_allowed_entity_type_domain.sql index 411b03c19..783c8f6ac 100644 --- a/db/sql/clean/populate_allowed_entity_type_domain.sql +++ b/db/sql/clean/populate_allowed_entity_type_domain.sql @@ -1,3 +1,8 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_entity_type_domain` WRITE; /*!40000 ALTER TABLE `allowed_entity_type_domain` DISABLE KEYS */; INSERT INTO `allowed_entity_type_domain` VALUES diff --git a/db/sql/clean/populate_allowed_property_domain.sql b/db/sql/clean/populate_allowed_property_domain.sql index 7f45a2e20..f14fd148d 100644 --- a/db/sql/clean/populate_allowed_property_domain.sql +++ b/db/sql/clean/populate_allowed_property_domain.sql @@ -6,4 +6,4 @@ LOCK TABLES `allowed_property_domain` WRITE; /*!40000 ALTER TABLE `allowed_property_domain` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_property_domain` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_allowed_property_metadata_value.sql b/db/sql/clean/populate_allowed_property_metadata_value.sql index 5b9807004..f1f8f5da1 100644 --- a/db/sql/clean/populate_allowed_property_metadata_value.sql +++ b/db/sql/clean/populate_allowed_property_metadata_value.sql @@ -6,4 +6,4 @@ LOCK TABLES `allowed_property_metadata_value` WRITE; /*!40000 ALTER TABLE `allowed_property_metadata_value` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_property_metadata_value` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_allowed_property_value.sql b/db/sql/clean/populate_allowed_property_value.sql index aedf2d02f..fb3945d2d 100644 --- a/db/sql/clean/populate_allowed_property_value.sql +++ b/db/sql/clean/populate_allowed_property_value.sql @@ -3,9 +3,7 @@ -- See LICENSE file. -- --- LOCK TABLES `allowed_property_value` WRITE; +LOCK TABLES `allowed_property_value` WRITE; /*!40000 ALTER TABLE `allowed_property_value` DISABLE KEYS */; --- INSERT INTO `allowed_property_value` VALUES --- (10,9,'Direct Connection','','',0.00); /*!40000 ALTER TABLE `allowed_property_value` ENABLE KEYS */; --- UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_attachment.sql b/db/sql/clean/populate_attachment.sql index faa858203..da279aff5 100644 --- a/db/sql/clean/populate_attachment.sql +++ b/db/sql/clean/populate_attachment.sql @@ -6,4 +6,4 @@ LOCK TABLES `attachment` WRITE; /*!40000 ALTER TABLE `attachment` DISABLE KEYS */; /*!40000 ALTER TABLE `attachment` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_connector_property.sql b/db/sql/clean/populate_connector_property.sql index e04abb328..ae1f13f42 100644 --- a/db/sql/clean/populate_connector_property.sql +++ b/db/sql/clean/populate_connector_property.sql @@ -6,4 +6,4 @@ LOCK TABLES `connector_property` WRITE; /*!40000 ALTER TABLE `connector_property` DISABLE KEYS */; /*!40000 ALTER TABLE `connector_property` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_connector_type.sql b/db/sql/clean/populate_connector_type.sql index b557c9c22..98a0dedf4 100644 --- a/db/sql/clean/populate_connector_type.sql +++ b/db/sql/clean/populate_connector_type.sql @@ -6,4 +6,4 @@ LOCK TABLES `connector_type` WRITE; /*!40000 ALTER TABLE `connector_type` DISABLE KEYS */; /*!40000 ALTER TABLE `connector_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_domain.sql b/db/sql/clean/populate_domain.sql index d6f05ad61..40a9def39 100644 --- a/db/sql/clean/populate_domain.sql +++ b/db/sql/clean/populate_domain.sql @@ -6,14 +6,6 @@ LOCK TABLES `domain` WRITE; /*!40000 ALTER TABLE `domain` DISABLE KEYS */; INSERT INTO `domain` VALUES -(1,'Location','Item Domain for managing locations.',NULL,NULL,'Type',NULL), -(2,'Catalog','Item domain for managing catalog items.','Model Number','Alternate Name','Function','Technical System'), -(3,'Inventory','Item domain for managing inventory items','Serial Number',NULL,NULL,NULL), -(4,'Cable','Item domain for managing cable items',NULL,NULL,NULL,NULL), -(5,'MAARC','Item domain for managing measurement archive items',NULL,NULL,NULL,NULL), -(6,'Machine Design','Item domain for managing the design of machines','Alternate Name','UUID',NULL,NULL), -(7,'Cable Catalog','Item domain for managing the cable catalog items','Part Number','Alternate Name',NULL,'Technical System'), -(8,'Cable Inventory','Item domain for managing cable inventory items',NULL,NULL,NULL,NULL), -(9,'Cable Design','Item domain for managing cable design items','Alternate Name','UUID',NULL,'Technical System'); +(1,'Logbook','Item domain to maintain logbooks.',NULL,'UID','System',NULL); /*!40000 ALTER TABLE `domain` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_entity_info.sql b/db/sql/clean/populate_entity_info.sql index b67caf222..17ca95013 100644 --- a/db/sql/clean/populate_entity_info.sql +++ b/db/sql/clean/populate_entity_info.sql @@ -6,4 +6,4 @@ LOCK TABLES `entity_info` WRITE; /*!40000 ALTER TABLE `entity_info` DISABLE KEYS */; /*!40000 ALTER TABLE `entity_info` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_entity_type.sql b/db/sql/clean/populate_entity_type.sql index 638c0d875..a5bef84eb 100644 --- a/db/sql/clean/populate_entity_type.sql +++ b/db/sql/clean/populate_entity_type.sql @@ -1,19 +1,24 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `entity_type` WRITE; /*!40000 ALTER TABLE `entity_type` DISABLE KEYS */; INSERT INTO `entity_type` VALUES -(1,'Template','Template',NULL,'classification for template items',NULL,NULL,NULL,NULL,1), -(2,'studies','Machine Studies',NULL,'.',NULL,NULL,NULL,1.00,0), -(3,'maintenance','Maintenance',NULL,'.',NULL,NULL,NULL,2.00,0), -(4,'ops','Operations','','.','opsList',NULL,NULL,3.00,0), -(5,'sandbox','Sandbox','','entity type for playing around and testing features of logr.',NULL,NULL,NULL,999.00,0), -(6,'ctl','Controls',NULL,'',NULL,3,NULL,NULL,0), -(7,'studies-sr','SR','SR Studies','','studiesList',2,NULL,NULL,0), -(8,'injector','Injector','Injector Studies','','studiesList',2,NULL,NULL,0), -(9,'vacuum','Vacuum','','',NULL,3,NULL,NULL,0), -(10,'power','Power Systems','','',NULL,3,NULL,NULL,0), -(11,'diag','Diagnostics','','',NULL,3,NULL,NULL,0), -(12,'aop-apps','Physics Applications','','',NULL,3,NULL,NULL,0), -(13,'id','Insertion Devices','','',NULL,3,NULL,NULL,0), -(14,'rf','RF','','',NULL,3,NULL,NULL,0); +(1,'Template','Template',NULL,'classification for template items',NULL,NULL,NULL,NULL,NULL,1), +(2,'studies','Machine Studies',NULL,'.',NULL,NULL,NULL,NULL,1.00,0), +(3,'maintenance','Maintenance',NULL,'.',NULL,NULL,NULL,NULL,2.00,0), +(4,'ops','Operations','','.','opsList',NULL,NULL,NULL,3.00,0), +(5,'sandbox','Sandbox','','entity type for playing around and testing features of logr.',NULL,NULL,NULL,NULL,999.00,0), +(6,'ctl','Controls',NULL,'',NULL,3,NULL,NULL,NULL,0), +(7,'studies-sr','SR','SR Studies','','studiesList',2,NULL,NULL,NULL,0), +(8,'injector','Injector','Injector Studies','','studiesList',2,NULL,NULL,NULL,0), +(9,'vacuum','Vacuum','','',NULL,3,NULL,NULL,NULL,0), +(10,'power','Power Systems','','',NULL,3,NULL,NULL,NULL,0), +(11,'diag','Diagnostics','','',NULL,3,NULL,NULL,NULL,0), +(12,'aop-apps','Physics Applications','','',NULL,3,NULL,NULL,NULL,0), +(13,'id','Insertion Devices','','',NULL,3,NULL,NULL,NULL,0), +(14,'rf','RF','','',NULL,3,NULL,NULL,NULL,0); /*!40000 ALTER TABLE `entity_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item.sql b/db/sql/clean/populate_item.sql index ff8b8cca5..3b5a17d4a 100644 --- a/db/sql/clean/populate_item.sql +++ b/db/sql/clean/populate_item.sql @@ -6,4 +6,4 @@ LOCK TABLES `item` WRITE; /*!40000 ALTER TABLE `item` DISABLE KEYS */; /*!40000 ALTER TABLE `item` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_category.sql b/db/sql/clean/populate_item_category.sql index fcec210e6..3288dfe0c 100644 --- a/db/sql/clean/populate_item_category.sql +++ b/db/sql/clean/populate_item_category.sql @@ -5,7 +5,5 @@ LOCK TABLES `item_category` WRITE; /*!40000 ALTER TABLE `item_category` DISABLE KEYS */; --- INSERT INTO `item_category` VALUES --- (1,'Other',NULL,2, 0); /*!40000 ALTER TABLE `item_category` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_category_item_type.sql b/db/sql/clean/populate_item_category_item_type.sql index 337b7a71f..8043d2f0e 100644 --- a/db/sql/clean/populate_item_category_item_type.sql +++ b/db/sql/clean/populate_item_category_item_type.sql @@ -5,7 +5,5 @@ LOCK TABLES `item_category_item_type` WRITE; /*!40000 ALTER TABLE `item_category_item_type` DISABLE KEYS */; --- INSERT INTO `item_category_item_type` VALUES --- (1,8); /*!40000 ALTER TABLE `item_category_item_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_connector.sql b/db/sql/clean/populate_item_connector.sql index 5a433c4c9..224735f6b 100644 --- a/db/sql/clean/populate_item_connector.sql +++ b/db/sql/clean/populate_item_connector.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_connector` WRITE; /*!40000 ALTER TABLE `item_connector` DISABLE KEYS */; /*!40000 ALTER TABLE `item_connector` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_connector_property.sql b/db/sql/clean/populate_item_connector_property.sql index 6143d03f2..c7ceb7905 100644 --- a/db/sql/clean/populate_item_connector_property.sql +++ b/db/sql/clean/populate_item_connector_property.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_connector_property` WRITE; /*!40000 ALTER TABLE `item_connector_property` DISABLE KEYS */; /*!40000 ALTER TABLE `item_connector_property` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element.sql b/db/sql/clean/populate_item_element.sql index cc57791cb..430a28faa 100644 --- a/db/sql/clean/populate_item_element.sql +++ b/db/sql/clean/populate_item_element.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element` WRITE; /*!40000 ALTER TABLE `item_element` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_history.sql b/db/sql/clean/populate_item_element_history.sql index d82d4b238..11064f42d 100644 --- a/db/sql/clean/populate_item_element_history.sql +++ b/db/sql/clean/populate_item_element_history.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_history` WRITE; /*!40000 ALTER TABLE `item_element_history` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_history` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_list.sql b/db/sql/clean/populate_item_element_list.sql index 89e2a51c4..c1bf7523c 100644 --- a/db/sql/clean/populate_item_element_list.sql +++ b/db/sql/clean/populate_item_element_list.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_list` WRITE; /*!40000 ALTER TABLE `item_element_list` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_list` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_log.sql b/db/sql/clean/populate_item_element_log.sql index e67e69ffd..2412a01e8 100644 --- a/db/sql/clean/populate_item_element_log.sql +++ b/db/sql/clean/populate_item_element_log.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_log` WRITE; /*!40000 ALTER TABLE `item_element_log` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_log` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_property.sql b/db/sql/clean/populate_item_element_property.sql index 694b7130d..1267ac9ca 100644 --- a/db/sql/clean/populate_item_element_property.sql +++ b/db/sql/clean/populate_item_element_property.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_property` WRITE; /*!40000 ALTER TABLE `item_element_property` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_property` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_relationship.sql b/db/sql/clean/populate_item_element_relationship.sql index b383743fa..ef57beab9 100644 --- a/db/sql/clean/populate_item_element_relationship.sql +++ b/db/sql/clean/populate_item_element_relationship.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_relationship` WRITE; /*!40000 ALTER TABLE `item_element_relationship` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_relationship_history.sql b/db/sql/clean/populate_item_element_relationship_history.sql index 0a734ff18..54767fb57 100644 --- a/db/sql/clean/populate_item_element_relationship_history.sql +++ b/db/sql/clean/populate_item_element_relationship_history.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_relationship_history` WRITE; /*!40000 ALTER TABLE `item_element_relationship_history` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship_history` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_element_relationship_property.sql b/db/sql/clean/populate_item_element_relationship_property.sql index 3f0cddd01..42cf1863a 100644 --- a/db/sql/clean/populate_item_element_relationship_property.sql +++ b/db/sql/clean/populate_item_element_relationship_property.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_element_relationship_property` WRITE; /*!40000 ALTER TABLE `item_element_relationship_property` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship_property` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_entity_type.sql b/db/sql/clean/populate_item_entity_type.sql index 894492d80..2b18ed46f 100644 --- a/db/sql/clean/populate_item_entity_type.sql +++ b/db/sql/clean/populate_item_entity_type.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_entity_type` WRITE; /*!40000 ALTER TABLE `item_entity_type` DISABLE KEYS */; /*!40000 ALTER TABLE `item_entity_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_item_category.sql b/db/sql/clean/populate_item_item_category.sql index 8afc4d550..073c2a32e 100644 --- a/db/sql/clean/populate_item_item_category.sql +++ b/db/sql/clean/populate_item_item_category.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_item_category` WRITE; /*!40000 ALTER TABLE `item_item_category` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_category` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_item_project.sql b/db/sql/clean/populate_item_item_project.sql index 5129b7a54..c3fce2bbf 100644 --- a/db/sql/clean/populate_item_item_project.sql +++ b/db/sql/clean/populate_item_item_project.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_item_project` WRITE; /*!40000 ALTER TABLE `item_item_project` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_project` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_item_type.sql b/db/sql/clean/populate_item_item_type.sql index c4a70fd63..62cd2f58b 100644 --- a/db/sql/clean/populate_item_item_type.sql +++ b/db/sql/clean/populate_item_item_type.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_item_type` WRITE; /*!40000 ALTER TABLE `item_item_type` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_project.sql b/db/sql/clean/populate_item_project.sql index 7e00a4248..bd7c4104c 100644 --- a/db/sql/clean/populate_item_project.sql +++ b/db/sql/clean/populate_item_project.sql @@ -8,4 +8,4 @@ LOCK TABLES `item_project` WRITE; INSERT INTO `item_project` VALUES (1,'Sample',NULL); /*!40000 ALTER TABLE `item_project` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_resource.sql b/db/sql/clean/populate_item_resource.sql index c8e4b027a..90699fb37 100644 --- a/db/sql/clean/populate_item_resource.sql +++ b/db/sql/clean/populate_item_resource.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_resource` WRITE; /*!40000 ALTER TABLE `item_resource` DISABLE KEYS */; /*!40000 ALTER TABLE `item_resource` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_source.sql b/db/sql/clean/populate_item_source.sql index 8f56f434d..2d27d60b5 100644 --- a/db/sql/clean/populate_item_source.sql +++ b/db/sql/clean/populate_item_source.sql @@ -6,4 +6,4 @@ LOCK TABLES `item_source` WRITE; /*!40000 ALTER TABLE `item_source` DISABLE KEYS */; /*!40000 ALTER TABLE `item_source` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_item_type.sql b/db/sql/clean/populate_item_type.sql index fa74f37c5..c4b6271f0 100644 --- a/db/sql/clean/populate_item_type.sql +++ b/db/sql/clean/populate_item_type.sql @@ -5,14 +5,5 @@ LOCK TABLES `item_type` WRITE; /*!40000 ALTER TABLE `item_type` DISABLE KEYS */; --- INSERT INTO `item_type` VALUES --- (1,'Building',NULL,1, 0), --- (2,'Area',NULL,1, 0), --- (3,'Room',NULL,1, 0), --- (4,'Table',NULL,1, 0), --- (5,'Cabinet',NULL,1, 0), --- (6,'Rack',NULL,1, 0), --- (7,'Shelf',NULL,1, 0), --- (8,'Other',NULL,2, 0); /*!40000 ALTER TABLE `item_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_list.sql b/db/sql/clean/populate_list.sql index b94fdc1fb..f89541aa1 100644 --- a/db/sql/clean/populate_list.sql +++ b/db/sql/clean/populate_list.sql @@ -6,4 +6,4 @@ LOCK TABLES `list` WRITE; /*!40000 ALTER TABLE `list` DISABLE KEYS */; /*!40000 ALTER TABLE `list` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_log.sql b/db/sql/clean/populate_log.sql index 197375511..0fa7762d2 100644 --- a/db/sql/clean/populate_log.sql +++ b/db/sql/clean/populate_log.sql @@ -6,4 +6,4 @@ LOCK TABLES `log` WRITE; /*!40000 ALTER TABLE `log` DISABLE KEYS */; /*!40000 ALTER TABLE `log` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_log_attachment.sql b/db/sql/clean/populate_log_attachment.sql index 13987ee80..1c1e43d01 100644 --- a/db/sql/clean/populate_log_attachment.sql +++ b/db/sql/clean/populate_log_attachment.sql @@ -6,4 +6,4 @@ LOCK TABLES `log_attachment` WRITE; /*!40000 ALTER TABLE `log_attachment` DISABLE KEYS */; /*!40000 ALTER TABLE `log_attachment` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_log_level.sql b/db/sql/clean/populate_log_level.sql index e7156f5ba..94ff9ba8e 100644 --- a/db/sql/clean/populate_log_level.sql +++ b/db/sql/clean/populate_log_level.sql @@ -11,4 +11,4 @@ INSERT INTO `log_level` VALUES (3,'loginInfo',NULL), (4,'cdbEntityInfo',NULL); /*!40000 ALTER TABLE `log_level` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_log_reaction.sql b/db/sql/clean/populate_log_reaction.sql index c10fcfafa..801ddb3a0 100644 --- a/db/sql/clean/populate_log_reaction.sql +++ b/db/sql/clean/populate_log_reaction.sql @@ -6,4 +6,4 @@ LOCK TABLES `log_reaction` WRITE; /*!40000 ALTER TABLE `log_reaction` DISABLE KEYS */; /*!40000 ALTER TABLE `log_reaction` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_log_topic.sql b/db/sql/clean/populate_log_topic.sql index 42686c019..af311477e 100644 --- a/db/sql/clean/populate_log_topic.sql +++ b/db/sql/clean/populate_log_topic.sql @@ -8,4 +8,4 @@ LOCK TABLES `log_topic` WRITE; INSERT INTO `log_topic` VALUES (1,'General',NULL); /*!40000 ALTER TABLE `log_topic` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_configuration.sql b/db/sql/clean/populate_notification_configuration.sql new file mode 100644 index 000000000..dcf911193 --- /dev/null +++ b/db/sql/clean/populate_notification_configuration.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration` WRITE; +/*!40000 ALTER TABLE `notification_configuration` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_configuration_handler_setting.sql b/db/sql/clean/populate_notification_configuration_handler_setting.sql new file mode 100644 index 000000000..6318939c7 --- /dev/null +++ b/db/sql/clean/populate_notification_configuration_handler_setting.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration_handler_setting` WRITE; +/*!40000 ALTER TABLE `notification_configuration_handler_setting` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration_handler_setting` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_configuration_setting.sql b/db/sql/clean/populate_notification_configuration_setting.sql new file mode 100644 index 000000000..50d1f7727 --- /dev/null +++ b/db/sql/clean/populate_notification_configuration_setting.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration_setting` WRITE; +/*!40000 ALTER TABLE `notification_configuration_setting` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration_setting` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_handler_config_key.sql b/db/sql/clean/populate_notification_handler_config_key.sql new file mode 100644 index 000000000..9eae1ff9a --- /dev/null +++ b/db/sql/clean/populate_notification_handler_config_key.sql @@ -0,0 +1,16 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_handler_config_key` WRITE; +/*!40000 ALTER TABLE `notification_handler_config_key` DISABLE KEYS */; +INSERT INTO `notification_handler_config_key` VALUES +(1,'entry_updates','Entry Updates','Notify document owner when log entries in their document are updated or deleted by others','boolean','true',1), +(2,'entry_replies','Replies to My Entries','Notify original entry creator when someone replies to their log entry, or when replies are updated/deleted on their entry','boolean','true',2), +(3,'new_entries','New Entries','Notify document owner when new log entries are created in their document (excluding entries they create themselves)','boolean','true',3), +(4,'document_replies','All Document Replies','Notify document owner when replies are added, updated, or deleted anywhere in their document','boolean','true',4), +(5,'reactions','Entry Reactions','Notify entry creator when someone adds or removes a reaction (like emoji) to their entry','boolean','true',5), +(6,'own_entry_edits','Edits to My Entries','Notify users when their own entries (or replies they created) are edited or deleted by someone else','boolean','true',6); +/*!40000 ALTER TABLE `notification_handler_config_key` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_provider.sql b/db/sql/clean/populate_notification_provider.sql new file mode 100644 index 000000000..502af45ca --- /dev/null +++ b/db/sql/clean/populate_notification_provider.sql @@ -0,0 +1,11 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_provider` WRITE; +/*!40000 ALTER TABLE `notification_provider` DISABLE KEYS */; +INSERT INTO `notification_provider` VALUES +(1,'apprise','Sends notifications to email, Discord, Slack, Teams, and more.','# Notification URL Examples\n\n## Email (SMTP)\n\n```\nmailto://user@gmail.com\n```\n\n## Microsoft Teams\n\n```\nmsteams://TokenA/TokenB/TokenC\n```\n\n## Slack\n\n```\nslack://TokenA/TokenB/TokenC/#channel\n```\n\n## Custom Webhooks\n\n```\njson://hostname/path\n```\n\nFor the full list of supported services, see the [Apprise Services Page](https://appriseit.com/services).\n\n---\n\n**Note:** Notifications are powered by [Apprise](https://github.com/caronc/apprise), an open-source notification library hosted locally.'); +/*!40000 ALTER TABLE `notification_provider` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_notification_provider_config_key.sql b/db/sql/clean/populate_notification_provider_config_key.sql new file mode 100644 index 000000000..2020cf96d --- /dev/null +++ b/db/sql/clean/populate_notification_provider_config_key.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_provider_config_key` WRITE; +/*!40000 ALTER TABLE `notification_provider_config_key` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_provider_config_key` ENABLE KEYS */; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_metadata.sql b/db/sql/clean/populate_property_metadata.sql index d2bb43843..72a1f9550 100644 --- a/db/sql/clean/populate_property_metadata.sql +++ b/db/sql/clean/populate_property_metadata.sql @@ -6,4 +6,4 @@ LOCK TABLES `property_metadata` WRITE; /*!40000 ALTER TABLE `property_metadata` DISABLE KEYS */; /*!40000 ALTER TABLE `property_metadata` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_metadata_history.sql b/db/sql/clean/populate_property_metadata_history.sql index 7c619f596..62b87dfa4 100644 --- a/db/sql/clean/populate_property_metadata_history.sql +++ b/db/sql/clean/populate_property_metadata_history.sql @@ -1,4 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_metadata_history` WRITE; /*!40000 ALTER TABLE `property_metadata_history` DISABLE KEYS */; /*!40000 ALTER TABLE `property_metadata_history` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_type.sql b/db/sql/clean/populate_property_type.sql index 45794c430..612d2c2f9 100644 --- a/db/sql/clean/populate_property_type.sql +++ b/db/sql/clean/populate_property_type.sql @@ -8,11 +8,5 @@ LOCK TABLES `property_type` WRITE; INSERT INTO `property_type` VALUES (1,'Image',NULL,NULL,1,2,NULL,NULL,0,0,0,1,1), (2,'Document (Upload)','',NULL,1,1,'','',0,0,0,1,1); --- (3,'Traveler Template (Electronic)','Allows integration of traveler templates from traveler application.',NULL,2,7,'','',0,0,1,1,1), --- (4,'Traveler Instance (Electronic)','Allows integration of traveler instances from traveler application.',NULL,2,8,'','',0,0,1,1,1), --- (5,'Item Element Row Color','',NULL,4,NULL,'','',0,0,0,1,1), --- (6,'Spare Parts Configuration','',NULL,3,NULL,'','',0,0,1,1,1), --- (8,'Component Instance Status','','',3,NULL,'','',0,0,1,1,1), --- (9,'Control Interface','Describes the interface to parent in the control hierarchy','',NULL,NULL,'','',0,0,1,1,NULL); /*!40000 ALTER TABLE `property_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_type_category.sql b/db/sql/clean/populate_property_type_category.sql index 52e98b7c5..a8ff51afc 100644 --- a/db/sql/clean/populate_property_type_category.sql +++ b/db/sql/clean/populate_property_type_category.sql @@ -11,4 +11,4 @@ INSERT INTO `property_type_category` VALUES (3,'Physical',NULL), (4,'Other',NULL); /*!40000 ALTER TABLE `property_type_category` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_type_handler.sql b/db/sql/clean/populate_property_type_handler.sql index 7e2fe52e9..e09530dee 100644 --- a/db/sql/clean/populate_property_type_handler.sql +++ b/db/sql/clean/populate_property_type_handler.sql @@ -12,7 +12,5 @@ INSERT INTO `property_type_handler` VALUES (4,'Currency','Handler for monetary values.'), (5,'Boolean','Handler for boolean values.'), (6,'Date','Handler for date values.'); --- (7,'Traveler Template','Handler used for creating/viewing traveler templates in the traveler system.'), --- (8,'Traveler Instance','Handler used for creating/viewing traveler instances in the traveler system.'); /*!40000 ALTER TABLE `property_type_handler` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_type_metadata.sql b/db/sql/clean/populate_property_type_metadata.sql index 39ea1680e..47e7a8fcf 100644 --- a/db/sql/clean/populate_property_type_metadata.sql +++ b/db/sql/clean/populate_property_type_metadata.sql @@ -6,4 +6,4 @@ LOCK TABLES `property_type_metadata` WRITE; /*!40000 ALTER TABLE `property_type_metadata` DISABLE KEYS */; /*!40000 ALTER TABLE `property_type_metadata` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_value.sql b/db/sql/clean/populate_property_value.sql index 25b192001..8f5437738 100644 --- a/db/sql/clean/populate_property_value.sql +++ b/db/sql/clean/populate_property_value.sql @@ -6,4 +6,4 @@ LOCK TABLES `property_value` WRITE; /*!40000 ALTER TABLE `property_value` DISABLE KEYS */; /*!40000 ALTER TABLE `property_value` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_property_value_history.sql b/db/sql/clean/populate_property_value_history.sql index 642bb9445..2d5ed1e4b 100644 --- a/db/sql/clean/populate_property_value_history.sql +++ b/db/sql/clean/populate_property_value_history.sql @@ -6,4 +6,4 @@ LOCK TABLES `property_value_history` WRITE; /*!40000 ALTER TABLE `property_value_history` DISABLE KEYS */; /*!40000 ALTER TABLE `property_value_history` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_reaction.sql b/db/sql/clean/populate_reaction.sql index 1a3814b82..ddf7b350a 100644 --- a/db/sql/clean/populate_reaction.sql +++ b/db/sql/clean/populate_reaction.sql @@ -6,10 +6,10 @@ LOCK TABLES `reaction` WRITE; /*!40000 ALTER TABLE `reaction` DISABLE KEYS */; INSERT INTO `reaction` VALUES -(1,'Like',128077,NULL,1.0), -(2,'Thinking',129300,NULL,2.0), -(3,'Great Job!',128175,NULL,3.0), -(4,'Laugh',128516,NULL,4.0), -(5,"Celebrate",127881,NULL,5.0); +(1,'Like',128077,NULL,1.00), +(2,'Thinking',129300,NULL,2.00), +(3,'Great Job!',128175,NULL,3.00), +(4,'Laugh',128516,NULL,4.00), +(5,'Celebrate',127881,NULL,5.00); /*!40000 ALTER TABLE `reaction` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_relationship_type.sql b/db/sql/clean/populate_relationship_type.sql index 5c10c980a..d4596efee 100644 --- a/db/sql/clean/populate_relationship_type.sql +++ b/db/sql/clean/populate_relationship_type.sql @@ -6,11 +6,6 @@ LOCK TABLES `relationship_type` WRITE; /*!40000 ALTER TABLE `relationship_type` DISABLE KEYS */; INSERT INTO `relationship_type` VALUES -(1,'Location','Location Relationship',1), -(2,'MAARC Connection','MAARC connection relationship to inventory items.',NULL), -(3,'Created From Template','',NULL), -(4,'Cable Connection',NULL,NULL), -(5,'Controlled By','Defines how a machine element is controlled',NULL), -(6,'Powered By','Defines how a machine element is powered',NULL); +(1,'Created From Template','',NULL); /*!40000 ALTER TABLE `relationship_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_relationship_type_handler.sql b/db/sql/clean/populate_relationship_type_handler.sql index c5389497a..7272f96f0 100644 --- a/db/sql/clean/populate_relationship_type_handler.sql +++ b/db/sql/clean/populate_relationship_type_handler.sql @@ -5,7 +5,5 @@ LOCK TABLES `relationship_type_handler` WRITE; /*!40000 ALTER TABLE `relationship_type_handler` DISABLE KEYS */; -INSERT INTO `relationship_type_handler` VALUES -(1,'Location','Handler for location type relationships'); /*!40000 ALTER TABLE `relationship_type_handler` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_resource_type.sql b/db/sql/clean/populate_resource_type.sql index afb2e0856..f5f485d6d 100644 --- a/db/sql/clean/populate_resource_type.sql +++ b/db/sql/clean/populate_resource_type.sql @@ -6,4 +6,4 @@ LOCK TABLES `resource_type` WRITE; /*!40000 ALTER TABLE `resource_type` DISABLE KEYS */; /*!40000 ALTER TABLE `resource_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_resource_type_category.sql b/db/sql/clean/populate_resource_type_category.sql index 87547c060..df40b01e2 100644 --- a/db/sql/clean/populate_resource_type_category.sql +++ b/db/sql/clean/populate_resource_type_category.sql @@ -6,4 +6,4 @@ LOCK TABLES `resource_type_category` WRITE; /*!40000 ALTER TABLE `resource_type_category` DISABLE KEYS */; /*!40000 ALTER TABLE `resource_type_category` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_role_type.sql b/db/sql/clean/populate_role_type.sql index 6d09a0088..0d99f52e6 100644 --- a/db/sql/clean/populate_role_type.sql +++ b/db/sql/clean/populate_role_type.sql @@ -8,4 +8,4 @@ LOCK TABLES `role_type` WRITE; INSERT INTO `role_type` VALUES (1,'group_settings_admin','Ability to edit view settings for a particular group.'); /*!40000 ALTER TABLE `role_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_setting_type.sql b/db/sql/clean/populate_setting_type.sql index dec7b41cf..1d513821a 100644 --- a/db/sql/clean/populate_setting_type.sql +++ b/db/sql/clean/populate_setting_type.sql @@ -6,7 +6,25 @@ LOCK TABLES `setting_type` WRITE; /*!40000 ALTER TABLE `setting_type` DISABLE KEYS */; INSERT INTO `setting_type` VALUES -(1,'DomainEntity.Detail.Display.GalleryViewableDocuments','Display viewable documents in the gallery.','true'), +(1,'ItemDomainLogbook.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), +(2,'ItemDomainLogbook.List.Display.Id','Display id.','false'), +(3,'ItemDomainLogbook.List.Display.Description','Display description.','false'), +(4,'ItemDomainLogbook.List.Display.ItemType','Display item type(system).','true'), +(5,'ItemDomainLogbook.List.Display.OwnerUser','Display owner user.','false'), +(6,'ItemDomainLogbook.List.Display.OwnerGroup','Display owner group.','false'), +(7,'ItemDomainLogbook.List.Display.CreatedUser','Display created user.','false'), +(8,'ItemDomainLogbook.List.Display.CreatedTime','Display creation time.','true'), +(9,'ItemDomainLogbook.List.Display.ModifiedByUser','Display modified by user.','true'), +(10,'ItemDomainLogbook.List.Display.ModifiedTime','Display last modified time.','true'), +(11,'ItemDomainLogbook.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), +(12,'ItemDomainLogbook.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), +(13,'ItemDomainLogbook.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), +(14,'ItemDomainLogbook.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), +(15,'ItemDomainLogbook.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), +(16,'ItemDomainLogbook.Home.EntityTypeId1','1st entityType Id to show up on the home page.',''), +(17,'ItemDomainLogbook.Home.EntityTypeId2','2nd entityType Id to show up on the home page.',''), +(18,'ItemDomainLogbook.Home.EntityTypeId3','3rd entityType Id to show up on the home page.',''), +(999,'DomainEntity.Detail.Display.GalleryViewableDocuments','Display viewable documents in the gallery.','true'), (1000,'AllowedPropertyValue.List.Display.Description','Display allowed property value description.','false'), (1001,'AllowedPropertyValue.List.Display.Id','Display allowed property value id.','false'), (1002,'AllowedPropertyValue.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), @@ -16,113 +34,6 @@ INSERT INTO `setting_type` VALUES (1006,'AllowedPropertyValue.List.FilterBy.SortOrder','Filter for allowed property value class sort order.',NULL), (1007,'AllowedPropertyValue.List.FilterBy.Units','Filter for allowed property value units.',NULL), (1008,'AllowedPropertyValue.List.FilterBy.Value','Filter for allowed property value.',NULL), -(2000,'ItemDomainCatalog.List.AutoLoad.FilterBy.Properties','Automatically load component list with display properties for filtering.','true'), -(2001,'ItemDomainCatalog.List.Display.Category','Display catalog item category.','true'), -(2002,'ItemDomainCatalog.List.Display.CreatedByUser','Display created by username.','false'), -(2003,'ItemDomainCatalog.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(2004,'ItemDomainCatalog.List.Display.Description','Display component description.','true'), -(2005,'ItemDomainCatalog.List.Display.Id','Display component id.','false'), -(2006,'ItemDomainCatalog.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(2007,'ItemDomainCatalog.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(2008,'ItemDomainCatalog.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(2009,'ItemDomainCatalog.List.Display.ModelNumber','Display component model number.','true'), -(2010,'ItemDomainCatalog.List.Display.OwnerUser','Display owner username.','false'), -(2011,'ItemDomainCatalog.List.Display.OwnerGroup','Display owner group name.','false'), -(2012,'ItemDomainCatalog.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(2013,'ItemDomainCatalog.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(2014,'ItemDomainCatalog.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(2015,'ItemDomainCatalog.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(2016,'ItemDomainCatalog.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(2017,'ItemDomainCatalog.List.Display.Sources','Display component sources.','false'), -(2018,'ItemDomainCatalog.List.Display.Type','Display component type.','true'), -(2019,'ItemDomainCatalog.List.Display.RowExpansion','Display row expansion.','true'), -(2020,'ItemDomainCatalog.List.Display.ComponentInstance.RowExpansion','Display Component Instance row expansion.','true'), -(2021,'ItemDomainCatalog.List.Display.AlternateName','Display Alternate Name','false'), -(2022,'ItemDomainCatalog.List.Display.Project','Display Item Project','false'), -(2023,'ItemDomainCatalog.List.Display.EntityTypes','Display Item Entity Types','true'), -(2024,'ItemDomainCatalog.List.Load.RowExpansionPropertyValue','Load property values for row expansions.','false'), -(2025,'ItemDomainCatalog.List.Load.ComponentInstance.RowExpansionPropertyValue','Load property values for component instance row expansions.','false'), -(2026,'ItemDomainCatalog.List.FilterBy.Category','Filter for components by type category.',NULL), -(2027,'ItemDomainCatalog.List.FilterBy.CreatedByUser','Filter for components that were created by username.',NULL), -(2028,'ItemDomainCatalog.List.FilterBy.CreatedOnDateTime','Filter for components that were created on date/time.',NULL), -(2029,'ItemDomainCatalog.List.FilterBy.Description','Filter for components by description.',NULL), -(2030,'ItemDomainCatalog.List.FilterBy.LastModifiedByUser','Filter for components that were last modified by username.',NULL), -(2031,'ItemDomainCatalog.List.FilterBy.LastModifiedOnDateTime','Filter for components that were last modified on date/time.',NULL), -(2032,'ItemDomainCatalog.List.FilterBy.ModelNumber','Filter for component model number.',NULL), -(2033,'ItemDomainCatalog.List.FilterBy.PropertyValue1','Filter for property value with displayed property type id #1.',''), -(2034,'ItemDomainCatalog.List.FilterBy.PropertyValue2','Filter for property value with displayed property type id #2.',''), -(2035,'ItemDomainCatalog.List.FilterBy.PropertyValue3','Filter for property value with displayed property type id #3.',''), -(2036,'ItemDomainCatalog.List.FilterBy.PropertyValue4','Filter for property value with displayed property type id #4.',''), -(2037,'ItemDomainCatalog.List.FilterBy.PropertyValue5','Filter for property value with displayed property type id #5.',''), -(2038,'ItemDomainCatalog.List.FilterBy.Name','Filter for components by name.',NULL), -(2039,'ItemDomainCatalog.List.FilterBy.OwnerUser','Filter for components by owner username.',NULL), -(2040,'ItemDomainCatalog.List.FilterBy.OwnerGroup','Filter for components by owner group name.',NULL), -(2041,'ItemDomainCatalog.List.FilterBy.Sources','Filter for components by sources.',NULL), -(2042,'ItemDomainCatalog.List.FilterBy.Type','Filter for components by type.',NULL), -(2043,'ItemDomainCatalog.Help.ListPage.Display.Fragment','Display Help guide to the user on the main list page of the Component entity.','true'), -(2044,'ItemDomainCatalog.List.Scope.Display','Show list page with a scope applied.','All'), -(2045,'ItemDomainCatalog.List.Scope.Display.PropertyTypeId','Setting used along side a display scope of property type.',NULL), -(2046,'ItemDomainCatalog.ItemElementList.Display.ItemIdentifier1','Display column for item identifier 1 in the item elements list.','true'), -(2047,'ItemDomainCatalog.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(2048,'ItemDomainCatalog.ItemElementList.Display.ItemIdentifier2','Display column for item identifier 2 in the item elements list.','false'), -(2049,'ItemDomainCatalog.ItemElementList.Display.ItemType','Display column for item type in the item elements list.','false'), -(2050,'ItemDomainCatalog.ItemElementList.Display.ItemCategory','Display column for item category in the item elements list.','false'), -(2051,'ItemDomainCatalog.ItemElementList.Display.Source','Display column for source in the item elements list.','false'), -(2052,'ItemDomainCatalog.ItemElementList.Display.Project','Display column for project in the item elements list.','false'), -(2053,'ItemDomainCatalog.ItemElementList.Display.Description','Display column for description in the item elements list.','false'), -(3000,'ItemDomainInventory.List.AutoLoad.FilterBy.Properties','Automatically load component instance list with display properties for filtering.','true'), -(3001,'ItemDomainInventory.List.Display.CreatedByUser','Display created by username.','false'), -(3002,'ItemDomainInventory.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(3003,'ItemDomainInventory.List.Display.Description','Display component instance description.','true'), -(3004,'ItemDomainInventory.List.Display.Id','Display component instance id.','false'), -(3005,'ItemDomainInventory.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(3006,'ItemDomainInventory.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(3007,'ItemDomainInventory.List.Display.Location','Display inventory item location.','true'), -(3008,'ItemDomainInventory.List.Display.LocationDetails','Display component instance location details.','false'), -(3009,'ItemDomainInventory.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(3010,'ItemDomainInventory.List.Display.OwnerUser','Display owner username.','false'), -(3011,'ItemDomainInventory.List.Display.OwnerGroup','Display owner group name.','false'), -(3012,'ItemDomainInventory.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(3013,'ItemDomainInventory.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(3014,'ItemDomainInventory.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(3015,'ItemDomainInventory.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(3016,'ItemDomainInventory.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(3017,'ItemDomainInventory.List.Display.QrId','Display component instance QR id.','true'), -(3018,'ItemDomainInventory.List.Display.SerialNumber','Display component instance serial number.','true'), -(3019,'ItemDomainInventory.List.Display.Project','Display Inventory Item project.','false'), -(3020,'ItemDomainInventory.List.Display.EntityTypes','Display Inventory Item Entity Type.','true'), -(3021,'ItemDomainInventory.List.Display.RowExpansion','Display row expansion.','true'), -(3022,'ItemDomainInventory.List.Load.RowExpansionPropertyValue','Load property values for row expansions.','false'), -(3023,'ItemDomainInventory.List.FilterBy.Component','Filter for component instance component.',NULL), -(3024,'ItemDomainInventory.List.FilterBy.CreatedByUser','Filter for components that were created by username.',NULL), -(3025,'ItemDomainInventory.List.FilterBy.CreatedOnDateTime','Filter for components that were created on date/time.',NULL), -(3026,'ItemDomainInventory.List.FilterBy.Description','Filter for components by description.',NULL), -(3027,'ItemDomainInventory.List.FilterBy.LastModifiedByUser','Filter for components that were last modified by username.',NULL), -(3028,'ItemDomainInventory.List.FilterBy.LastModifiedOnDateTime','Filter for components that were last modified on date/time.',NULL), -(3029,'ItemDomainInventory.List.FilterBy.Location','Filter for component instance location.',NULL), -(3030,'ItemDomainInventory.List.FilterBy.LocationDetails','Filter for component instance location details.',NULL), -(3031,'ItemDomainInventory.List.FilterBy.OwnerUser','Filter for component instances by owner username.',NULL), -(3032,'ItemDomainInventory.List.FilterBy.OwnerGroup','Filter for component instances by owner group name.',NULL), -(3033,'ItemDomainInventory.List.FilterBy.PropertyValue1','Filter for property value with displayed property type id #1.',''), -(3034,'ItemDomainInventory.List.FilterBy.PropertyValue2','Filter for property value with displayed property type id #2.',''), -(3035,'ItemDomainInventory.List.FilterBy.PropertyValue3','Filter for property value with displayed property type id #3.',''), -(3036,'ItemDomainInventory.List.FilterBy.PropertyValue4','Filter for property value with displayed property type id #4.',''), -(3037,'ItemDomainInventory.List.FilterBy.PropertyValue5','Filter for property value with displayed property type id #5.',''), -(3038,'ItemDomainInventory.List.FilterBy.QrId','Filter for component instance QR id.',NULL), -(3039,'ItemDomainInventory.List.FilterBy.SerialNumber','Filter for component instance serial number.',NULL), -(3040,'ItemDomainInventory.List.FilterBy.Tag','Filter for component instance tag.',NULL), -(3041,'ItemDomainInventory.Help.ListPage.Display.Fragment','Display Help guide to the user on the main list page of the Component Instance entity.','true'), -(3042,'ItemDomainInventory.List.Scope.Display','Show list page with a scope applied.','All'), -(3043,'ItemDomainInventory.List.Scope.Display.PropertyTypeId','Setting used along side a display scope of property type.',NULL), -(3044,'ItemDomainInventory.ItemElementList.Display.ItemIdentifier1','Display column for item identifier 1 in the item elements list.','true'), -(3045,'ItemDomainInventory.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(3046,'ItemDomainInventory.ItemElementList.Display.Project','Display column for project in the item elements list.','false'), -(3047,'ItemDomainInventory.ItemElementList.Display.Description','Display column for description in the item elements list.','false'), -(3048,'ItemDomainInventory.ItemElementList.Display.QrId','Display column for qrid in the item elements list.','false'), -(3049,'ItemDomainInventory.List.Display.Domain','Display column for domain in the item list.','false'), -(3050,'ItemDomainInventory.List.FilterBy.Domain','Filter for domain in the item list.',''), -(3051,'ItemDomainInventory.List.FilterBy.Status','Filter for components by status.',NULL), -(3052,'ItemDomainInventory.List.Display.Status','Display column for status in inventory list.','true'), (4000,'ItemSource.List.Display.ContactInfo','Display component source contact info.','false'), (4001,'ItemSource.List.Display.Cost','Display component cost.','true'), (4002,'ItemSource.List.Display.Description','Display component source description.','true'), @@ -285,6 +196,10 @@ INSERT INTO `setting_type` VALUES (15011,'Search.Display.Users','Display search result for users.','false'), (15012,'Search.Display.UserGroups','Display search result for user groups.','false'), (15013,'Search.DisplayItemDomainMachineDesign','Display search result for machine design items','true'), +(15014,'Search.Display.ItemDomainCableCatalog','Display search result for cable catalog items.','true'), +(15015,'Search.Display.ItemDomainCableInventory','Display search result for cable inventory items.','true'), +(15016,'Search.Display.ItemDomainCableDesign','Display search result for cable design items.','true'), +(15017,'Search.Display.ItemDomainMAARC','Display search result for MAARC items','false'), (16000,'Source.List.Display.ContactInfo','Display source contact info.','true'), (16001,'Source.List.Display.Description','Display source description.','true'), (16002,'Source.List.Display.Url','Display source URL.','true'), @@ -315,291 +230,6 @@ INSERT INTO `setting_type` VALUES (18003,'UserGroup.List.FilterBy.Description','Filter for user group description.',NULL), (18004,'UserGroup.List.FilterBy.Name','Filter for user group name.',NULL), (19000,'UserSetting.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(20000,'ItemProject.System.ItemProjectId','Default item project to be used in the system',NULL), -(21000,'ItemDomainMachineDesign.List.Display.CreatedByUser','Display created by username.','false'), -(21001,'ItemDomainMachineDesign.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(21002,'ItemDomainMachineDesign.List.Display.OwnerUser','Display owner username.','false'), -(21003,'ItemDomainMachineDesign.List.Display.OwnerGroup','Display owner group name.','false'), -(21004,'ItemDomainMachineDesign.List.Display.Description','Display component description.','true'), -(21005,'ItemDomainMachineDesign.List.Display.Id','Display component id.','false'), -(21006,'ItemDomainMachineDesign.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(21007,'ItemDomainMachineDesign.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(21008,'ItemDomainMachineDesign.List.Display.Location','Display column for location in machine design list.','true'), -(21009,'ItemDomainMachineDesign.List.Display.LocationDetails','Display column for location details in machine design list.','false'), -(21010,'ItemDomainMachineDesign.List.Display.ItemProject','Display column for project in machine design list.','false'), -(21011,'ItemDomainMachineDesign.List.Display.AlternateName','Display column for alternate name in machine design list.','false'), -(21012,'ItemDomainMachineDesign.List.Display.InstalledQrId','Display column for installed qrid in machine design list.','true'), -(21013,'ItemDomainMachineDesign.List.Display.QrId','Display column for qrid in machine design list.','false'), -(21014,'ItemDomainMachineDesign.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(21015,'ItemDomainMachineDesign.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(21016,'ItemDomainMachineDesign.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(21017,'ItemDomainMachineDesign.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(21018,'ItemDomainMachineDesign.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(21200,'ItemDomainMachineDesignInventory.List.Display.CreatedByUser','Display created by username.','false'), -(21201,'ItemDomainMachineDesignInventory.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(21202,'ItemDomainMachineDesignInventory.List.Display.OwnerUser','Display owner username.','false'), -(21203,'ItemDomainMachineDesignInventory.List.Display.OwnerGroup','Display owner group name.','false'), -(21204,'ItemDomainMachineDesignInventory.List.Display.Description','Display component description.','true'), -(21205,'ItemDomainMachineDesignInventory.List.Display.Id','Display component id.','false'), -(21206,'ItemDomainMachineDesignInventory.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(21207,'ItemDomainMachineDesignInventory.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(21208,'ItemDomainMachineDesignInventory.List.Display.Location','Display column for location in machine design list.','true'), -(21209,'ItemDomainMachineDesignInventory.List.Display.LocationDetails','Display column for location details in machine design list.','false'), -(21210,'ItemDomainMachineDesignInventory.List.Display.ItemProject','Display column for project in machine design list.','false'), -(21211,'ItemDomainMachineDesignInventory.List.Display.AlternateName','Display column for alternate name in machine design list.','false'), -(21212,'ItemDomainMachineDesignInventory.List.Display.QrId','Display column for QrId in machine design list.','true'), -(21213,'ItemDomainMachineDesignInventory.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(21214,'ItemDomainMachineDesignInventory.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(21215,'ItemDomainMachineDesignInventory.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(21216,'ItemDomainMachineDesignInventory.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(21217,'ItemDomainMachineDesignInventory.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(21218,'ItemDomainMachineDesignInventory.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(21300,'ItemDomainMachineDesignDeletedItems.List.Display.CreatedByUser','Display created by username.','false'), -(21301,'ItemDomainMachineDesignDeletedItems.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(21302,'ItemDomainMachineDesignDeletedItems.List.Display.OwnerUser','Display owner username.','false'), -(21303,'ItemDomainMachineDesignDeletedItems.List.Display.OwnerGroup','Display owner group name.','false'), -(21304,'ItemDomainMachineDesignDeletedItems.List.Display.Description','Display component description.','true'), -(21305,'ItemDomainMachineDesignDeletedItems.List.Display.Id','Display component id.','false'), -(21306,'ItemDomainMachineDesignDeletedItems.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(21307,'ItemDomainMachineDesignDeletedItems.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(21308,'ItemDomainMachineDesignDeletedItems.List.Display.Location','Display column for location in machine design list.','true'), -(21309,'ItemDomainMachineDesignDeletedItems.List.Display.LocationDetails','Display column for location details in machine design list.','false'), -(21310,'ItemDomainMachineDesignDeletedItems.List.Display.ItemProject','Display column for project in machine design list.','false'), -(21311,'ItemDomainMachineDesignDeletedItems.List.Display.AlternateName','Display column for alternate name in machine design list.','false'), -(21312,'ItemDomainMachineDesignDeletedItems.List.Display.QrId','Display column for QrId in machine design list.','true'), -(21313,'ItemDomainMachineDesignDeletedItems.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(22000,'ItemDomainMAARC.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(22001,'ItemDomainMAARC.List.Display.Id','Display component id.','false'), -(22002,'ItemDomainMAARC.List.Display.EntityTypes','Display Item Entity Types','true'), -(22003,'ItemDomainMAARC.List.Display.Description','Filter for components by description.',NULL), -(22004,'ItemDomainMAARC.List.Display.OwnerUser','Display owner username.','false'), -(22005,'ItemDomainMAARC.List.Display.OwnerGroup','Display owner group name.','false'), -(22006,'ItemDomainMAARC.List.Display.CreatedByUser','Display created by username.','false'), -(22007,'ItemDomainMAARC.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(22008,'ItemDomainMAARC.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(22009,'ItemDomainMAARC.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(22010,'ItemDomainMAARC.List.AutoLoad.FilterBy.Properties','Automatically load component instance list with display properties for filtering.','true'), -(22011,'ItemDomainMAARC.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(22012,'ItemDomainMAARC.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(22013,'ItemDomainMAARC.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(22014,'ItemDomainMAARC.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(22015,'ItemDomainMAARC.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(22016,'ItemDomainMAARC.List.Display.RowExpansion','Display row expansion.','false'), -(22017,'ItemDomainMAARC.List.Load.RowExpansionPropertyValue','Load property values for row expansions.','false'), -(22018,'ItemDomainMAARC.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(22019,'ItemDomainMAARC.List.FilterBy.Name','Filter for components by name.',NULL), -(22020,'ItemDomainMAARC.List.FilterBy.Description','Filter for components by description.',NULL), -(22021,'ItemDomainMAARC.List.FilterBy.OwnerUser','Filter for components by owner username.',NULL), -(22022,'ItemDomainMAARC.List.FilterBy.OwnerGroup','Filter for components by owner group name.',NULL), -(22023,'ItemDomainMAARC.List.FilterBy.CreatedByUser','Filter for components that were created by username.',NULL), -(22024,'ItemDomainMAARC.List.FilterBy.CreatedOnDateTime','Filter for components that were created on date/time.',NULL), -(22025,'ItemDomainMAARC.List.FilterBy.LastModifiedByUser','Filter for components that were last modified by username.',NULL), -(22026,'ItemDomainMAARC.List.FilterBy.LastModifiedOnDateTime','Filter for components that were last modified on date/time.',NULL), -(22027,'ItemDomainMAARC.List.FilterBy.PropertyValue1','Filter for property value with displayed property type id #1.',''), -(22028,'ItemDomainMAARC.List.FilterBy.PropertyValue2','Filter for property value with displayed property type id #2.',''), -(22029,'ItemDomainMAARC.List.FilterBy.PropertyValue3','Filter for property value with displayed property type id #3.',''), -(22030,'ItemDomainMAARC.List.FilterBy.PropertyValue4','Filter for property value with displayed property type id #4.',''), -(22031,'ItemDomainMAARC.List.FilterBy.PropertyValue5','Filter for property value with displayed property type id #5.',''), -(22032,'ItemDomainMAARC.ItemElementList.Display.NumberOfItemsPerPage','Display specified number of items per page for elements.','10'), -(22033,'ItemDomainMAARC.List.FilterBy.ItemEntityType','Filter for item entity type for items.','Measurement Data'), -(23000,'ItemDomainCableDesign.List.Display.CreatedByUser','Display created by username.','false'), -(23001,'ItemDomainCableDesign.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(23002,'ItemDomainCableDesign.List.Display.OwnerUser','Display owner username.','false'), -(23003,'ItemDomainCableDesign.List.Display.OwnerGroup','Display owner group name.','false'), -(23004,'ItemDomainCableDesign.List.Display.Description','Display component description.','true'), -(23005,'ItemDomainCableDesign.List.Display.Id','Display component id.','false'), -(23006,'ItemDomainCableDesign.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(23007,'ItemDomainCableDesign.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(23008,'ItemDomainCableDesign.List.Display.Location','Display column for location in machine design list.','true'), -(23009,'ItemDomainCableDesign.List.Display.LocationDetails','Display column for location details in machine design list.','false'), -(23010,'ItemDomainCableDesign.List.Display.ItemProject','Display column for project in machine design list.','false'), -(23011,'ItemDomainCableDesign.List.Display.ItemIdentifier1','Display column for alternate name in machine design list.','false'), -(23012,'ItemDomainCableDesign.List.Display.Endpoints','Display column for endpoints in cable design list.','true'), -(23013,'ItemDomainCableDesign.List.Display.CatalogItem','Display column for assigned catalog item in cable design list.','true'), -(23014,'ItemDomainCableDesign.List.Display.Laying','Display column for laying in cable design list.','false'), -(23015,'ItemDomainCableDesign.List.Display.Voltage','Display column for voltage in cable design list.','false'), -(23016,'ItemDomainCableDesign.List.FilterBy.Endpoints','Filter for components by endpoints.',NULL), -(23017,'ItemDomainCableDesign.List.FilterBy.CatalogItem','Filter for components by catalog item.',NULL), -(23018,'ItemDomainCableDesign.List.FilterBy.Laying','Filter for components by laying.',NULL), -(23019,'ItemDomainCableDesign.List.FilterBy.Voltage','Filter for components by voltage.',NULL), -(23020,'ItemDomainCableDesign.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(23021,'ItemDomainCableDesign.List.Display.ItemCategory','Display column for technical system in cable design list.','true'), -(23022,'ItemDomainCableDesign.List.Display.ExternalCableName','Display external cable name.','false'), -(23023,'ItemDomainCableDesign.List.FilterBy.ExternalCableName','FilterBy external cable name.',''), -(23024,'ItemDomainCableDesign.List.Display.ImportCableId','Display import cable id.','false'), -(23025,'ItemDomainCableDesign.List.FilterBy.ImportCableId','FilterBy import cable id.',''), -(23026,'ItemDomainCableDesign.List.Display.AlternateCableId','Display alternate cable id.','false'), -(23027,'ItemDomainCableDesign.List.FilterBy.AlternateCableId','FilterBy alternate cable id.',''), -(23028,'ItemDomainCableDesign.List.Display.DescriptionEndpoint1','Display DescriptionEndpoint1.','false'), -(23029,'ItemDomainCableDesign.List.FilterBy.DescriptionEndpoint1','FilterBy DescriptionEndpoint1.',''), -(23030,'ItemDomainCableDesign.List.Display.DescriptionEndpoint2','Display DescriptionEndpoint2.','false'), -(23031,'ItemDomainCableDesign.List.FilterBy.DescriptionEndpoint2','FilterBy DescriptionEndpoint2.',''), -(23032,'ItemDomainCableDesign.List.Display.LegacyQrId','Display legacy QR id.','false'), -(23033,'ItemDomainCableDesign.List.FilterBy.LegacyQrId','FilterBy legacy QR id.',''), -(23034,'ItemDomainCableDesign.List.Display.RouteEndpoint1','Display RouteEndpoint1.','false'), -(23035,'ItemDomainCableDesign.List.FilterBy.RouteEndpoint1','FilterBy RouteEndpoint1.',''), -(23036,'ItemDomainCableDesign.List.Display.RouteEndpoint2','Display RouteEndpoint2.','false'), -(23037,'ItemDomainCableDesign.List.FilterBy.RouteEndpoint2','FilterBy RouteEndpoint2.',''), -(23038,'ItemDomainCableDesign.List.Display.RoutedLength','Display routed length.','false'), -(23039,'ItemDomainCableDesign.List.FilterBy.RoutedLength','FilterBy routed length.',''), -(23040,'ItemDomainCableDesign.List.Display.Route','Display route.','false'), -(23041,'ItemDomainCableDesign.List.FilterBy.Route','FilterBy route.',''), -(23042,'ItemDomainCableDesign.List.Display.Notes','Display notes.','false'), -(23043,'ItemDomainCableDesign.List.FilterBy.Notes','FilterBy notes.',''), -(23044,'ItemDomainCableDesign.List.Display.EndLengthEndpoint1','Display EndLengthEndpoint1.','false'), -(23045,'ItemDomainCableDesign.List.FilterBy.EndLengthEndpoint1','FilterBy EndLengthEndpoint1.',''), -(23046,'ItemDomainCableDesign.List.Display.TerminationEndpoint1','Display TerminationEndpoint1.','false'), -(23047,'ItemDomainCableDesign.List.FilterBy.TerminationEndpoint1','FilterBy TerminationEndpoint1.',''), -(23048,'ItemDomainCableDesign.List.Display.PinlistEndpoint1','Display PinlistEndpoint1.','false'), -(23049,'ItemDomainCableDesign.List.FilterBy.PinlistEndpoint1','FilterBy PinlistEndpoint1.',''), -(23050,'ItemDomainCableDesign.List.Display.NotesEndpoint1','Display NotesEndpoint1.','false'), -(23051,'ItemDomainCableDesign.List.FilterBy.NotesEndpoint1','FilterBy NotesEndpoint1.',''), -(23052,'ItemDomainCableDesign.List.Display.DrawingEndpoint1','Display DrawingEndpoint1.','false'), -(23053,'ItemDomainCableDesign.List.FilterBy.DrawingEndpoint1','FilterBy DrawingEndpoint1.',''), -(23054,'ItemDomainCableDesign.List.Display.EndLengthEndpoint2','Display EndLengthEndpoint2.','false'), -(23055,'ItemDomainCableDesign.List.FilterBy.EndLengthEndpoint2','FilterBy EndLengthEndpoint2.',''), -(23056,'ItemDomainCableDesign.List.Display.TerminationEndpoint2','Display TerminationEndpoint2.','false'), -(23057,'ItemDomainCableDesign.List.FilterBy.TerminationEndpoint2','FilterBy TerminationEndpoint2.',''), -(23058,'ItemDomainCableDesign.List.Display.PinlistEndpoint2','Display PinlistEndpoint2.','false'), -(23059,'ItemDomainCableDesign.List.FilterBy.PinlistEndpoint2','FilterBy PinlistEndpoint2.',''), -(23060,'ItemDomainCableDesign.List.Display.NotesEndpoint2','Display NotesEndpoint2.','false'), -(23061,'ItemDomainCableDesign.List.FilterBy.NotesEndpoint2','FilterBy NotesEndpoint2.',''), -(23062,'ItemDomainCableDesign.List.Display.DrawingEndpoint2','Display DrawingEndpoint2.','false'), -(23063,'ItemDomainCableDesign.List.FilterBy.DrawingEndpoint2','FilterBy DrawingEndpoint2.',''), -(23064,'ItemDomainCableDesign.List.Display.DeviceEndpoint1','Display DeviceEndpoint1.','false'), -(23065,'ItemDomainCableDesign.List.FilterBy.DeviceEndpoint1','FilterBy DeviceEndpoint1.',''), -(23066,'ItemDomainCableDesign.List.Display.PortEndpoint1','Display PortEndpoint1.','false'), -(23067,'ItemDomainCableDesign.List.FilterBy.PortEndpoint1','FilterBy PortEndpoint1.',''), -(23068,'ItemDomainCableDesign.List.Display.ConnectorEndpoint1','Display ConnectorEndpoint1.','false'), -(23069,'ItemDomainCableDesign.List.FilterBy.ConnectorEndpoint1','FilterBy ConnectorEndpoint1.',''), -(23070,'ItemDomainCableDesign.List.Display.DeviceEndpoint2','Display DeviceEndpoint2.','false'), -(23071,'ItemDomainCableDesign.List.FilterBy.DeviceEndpoint2','FilterBy DeviceEndpoint2.',''), -(23072,'ItemDomainCableDesign.List.Display.PortEndpoint2','Display PortEndpoint2.','false'), -(23073,'ItemDomainCableDesign.List.FilterBy.PortEndpoint2','FilterBy PortEndpoint2.',''), -(23074,'ItemDomainCableDesign.List.Display.ConnectorEndpoint2','Display ConnectorEndpoint2.','false'), -(23075,'ItemDomainCableDesign.List.FilterBy.ConnectorEndpoint2','FilterBy ConnectorEndpoint2.',''), -(23076,'ItemDomainCableDesign.List.Display.ConnectedDevicesEndpoint1','Display ConnectedDevicesEndpoint1.','false'), -(23077,'ItemDomainCableDesign.List.FilterBy.ConnectedDevicesEndpoint1','FilterBy ConnectedDevicesEndpoint1.',''), -(23078,'ItemDomainCableDesign.List.Display.ConnectedDevicesEndpoint2','Display ConnectedDevicesEndpoint2.','false'), -(23079,'ItemDomainCableDesign.List.FilterBy.ConnectedDevicesEndpoint2','FilterBy ConnectedDevicesEndpoint2.',''), -(24000,'ItemDomainCableCatalog.List.AutoLoad.FilterBy.Properties','Automatically load component list with display properties for filtering.','true'), -(24001,'ItemDomainCableCatalog.List.Display.ItemCategory','Display catalog item category.','true'), -(24002,'ItemDomainCableCatalog.List.Display.CreatedByUser','Display created by username.','false'), -(24003,'ItemDomainCableCatalog.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(24004,'ItemDomainCableCatalog.List.Display.Description','Display component description.','true'), -(24005,'ItemDomainCableCatalog.List.Display.Id','Display component id.','false'), -(24006,'ItemDomainCableCatalog.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(24007,'ItemDomainCableCatalog.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(24008,'ItemDomainCableCatalog.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(24009,'ItemDomainCableCatalog.List.Display.ItemIdentifier1','Display component model number.','true'), -(24010,'ItemDomainCableCatalog.List.Display.OwnerUser','Display owner username.','false'), -(24011,'ItemDomainCableCatalog.List.Display.OwnerGroup','Display owner group name.','false'), -(24012,'ItemDomainCableCatalog.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(24013,'ItemDomainCableCatalog.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(24014,'ItemDomainCableCatalog.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(24015,'ItemDomainCableCatalog.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(24016,'ItemDomainCableCatalog.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(24017,'ItemDomainCableCatalog.List.Display.Sources','Display component sources.','false'), -(24022,'ItemDomainCableCatalog.List.Display.Project','Display Item Project','false'), -(24026,'ItemDomainCableCatalog.List.FilterBy.ItemCategory','Filter for components by type category.',NULL), -(24027,'ItemDomainCableCatalog.List.FilterBy.CreatedByUser','Filter for components that were created by username.',NULL), -(24028,'ItemDomainCableCatalog.List.FilterBy.CreatedOnDateTime','Filter for components that were created on date/time.',NULL), -(24029,'ItemDomainCableCatalog.List.FilterBy.Description','Filter for components by description.',NULL), -(24030,'ItemDomainCableCatalog.List.FilterBy.LastModifiedByUser','Filter for components that were last modified by username.',NULL), -(24031,'ItemDomainCableCatalog.List.FilterBy.LastModifiedOnDateTime','Filter for components that were last modified on date/time.',NULL), -(24032,'ItemDomainCableCatalog.List.FilterBy.ItemIdentifier1','Filter for component model number.',NULL), -(24033,'ItemDomainCableCatalog.List.FilterBy.PropertyValue1','Filter for property value with displayed property type id #1.',''), -(24034,'ItemDomainCableCatalog.List.FilterBy.PropertyValue2','Filter for property value with displayed property type id #2.',''), -(24035,'ItemDomainCableCatalog.List.FilterBy.PropertyValue3','Filter for property value with displayed property type id #3.',''), -(24036,'ItemDomainCableCatalog.List.FilterBy.PropertyValue4','Filter for property value with displayed property type id #4.',''), -(24037,'ItemDomainCableCatalog.List.FilterBy.PropertyValue5','Filter for property value with displayed property type id #5.',''), -(24038,'ItemDomainCableCatalog.List.FilterBy.Name','Filter for components by name.',NULL), -(24039,'ItemDomainCableCatalog.List.FilterBy.OwnerUser','Filter for components by owner username.',NULL), -(24040,'ItemDomainCableCatalog.List.FilterBy.OwnerGroup','Filter for components by owner group name.',NULL), -(24041,'ItemDomainCableCatalog.List.FilterBy.Sources','Filter for components by sources.',NULL), -(24047,'ItemDomainCableCatalog.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(24048,'ItemDomainCableCatalog.List.Display.HeatLimit','Display component heat limit.','false'), -(24049,'ItemDomainCableCatalog.List.Display.Insulation','Display component insulation.','false'), -(24050,'ItemDomainCableCatalog.List.Display.JacketColor','Display component jacket color.','false'), -(24051,'ItemDomainCableCatalog.List.Display.Weight','Display component weight.','false'), -(24052,'ItemDomainCableCatalog.List.Display.Diameter','Display component diameter.','false'), -(24053,'ItemDomainCableCatalog.List.Display.Url','Display component Url.','false'), -(24054,'ItemDomainCableCatalog.List.Display.BendRadius','Display component bend radius.','false'), -(24055,'ItemDomainCableCatalog.List.Display.RadiationTolerance','Display component radiation tolerance.','false'), -(24056,'ItemDomainCableCatalog.List.Display.Conductors','Display component conductors.','false'), -(24057,'ItemDomainCableCatalog.List.Display.ImageUrl','Display component image url.','false'), -(24058,'ItemDomainCableCatalog.List.Display.FireLoad','Display component fire load.','false'), -(24059,'ItemDomainCableCatalog.List.Display.VoltageRating','Display component voltage rating.','false'), -(24060,'ItemDomainCableCatalog.List.FilterBy.HeatLimit','FilterBy component heat limit.',''), -(24061,'ItemDomainCableCatalog.List.FilterBy.Insulation','FilterBy component insulation.',''), -(24062,'ItemDomainCableCatalog.List.FilterBy.JacketColor','FilterBy component jacket color.',''), -(24063,'ItemDomainCableCatalog.List.FilterBy.Weight','FilterBy component weight.',''), -(24064,'ItemDomainCableCatalog.List.FilterBy.Diameter','FilterBy component diameter.',''), -(24065,'ItemDomainCableCatalog.List.FilterBy.Url','FilterBy component Url.',''), -(24066,'ItemDomainCableCatalog.List.FilterBy.BendRadius','FilterBy component bend radius.',''), -(24067,'ItemDomainCableCatalog.List.FilterBy.RadiationTolerance','FilterBy component radiation tolerance.',''), -(24068,'ItemDomainCableCatalog.List.FilterBy.Conductors','FilterBy component conductors.',''), -(24069,'ItemDomainCableCatalog.List.FilterBy.ImageUrl','FilterBy component image url.',''), -(24070,'ItemDomainCableCatalog.List.FilterBy.FireLoad','FilterBy component fire load.',''), -(24071,'ItemDomainCableCatalog.List.FilterBy.VoltageRating','FilterBy component voltage rating.',''), -(24072,'ItemDomainCableCatalog.List.Display.AltPartNumber','Display alt part number.','false'), -(24073,'ItemDomainCableCatalog.List.FilterBy.AltPartNumber','FilterBy alt part number.',''), -(24074,'ItemDomainCableCatalog.List.Display.TotalLength','Display component total length.','false'), -(24075,'ItemDomainCableCatalog.List.FilterBy.TotalLength','FilterBy component total length.',''), -(24076,'ItemDomainCableCatalog.List.Display.ReelLength','Display component reel length.','false'), -(24077,'ItemDomainCableCatalog.List.FilterBy.ReelLength','FilterBy component reel length.',''), -(24078,'ItemDomainCableCatalog.List.Display.ReelQuantity','Display component reel quantity.','false'), -(24079,'ItemDomainCableCatalog.List.FilterBy.ReelQuantity','FilterBy component reel quantity.',''), -(24080,'ItemDomainCableCatalog.List.Display.LeadTime','Display component lead time.','false'), -(24081,'ItemDomainCableCatalog.List.FilterBy.LeadTime','FilterBy component lead time.',''), -(24082,'ItemDomainCableCatalog.List.Display.ProcurementStatus','Display component procurement status.','false'), -(24083,'ItemDomainCableCatalog.List.FilterBy.ProcurementStatus','FilterBy component procurement status.',''), -(25000,'ItemDomainCableInventory.List.AutoLoad.FilterBy.Properties','Automatically load component instance list with display properties for filtering.','true'), -(25001,'ItemDomainCableInventory.List.Display.CreatedByUser','Display created by username.','false'), -(25002,'ItemDomainCableInventory.List.Display.CreatedOnDateTime','Display created on date/time.','false'), -(25003,'ItemDomainCableInventory.List.Display.Description','Display component instance description.','false'), -(25004,'ItemDomainCableInventory.List.Display.Id','Display component instance id.','false'), -(25005,'ItemDomainCableInventory.List.Display.LastModifiedByUser','Display last modified by username.','false'), -(25006,'ItemDomainCableInventory.List.Display.LastModifiedOnDateTime','Display last modified on date/time.','false'), -(25007,'ItemDomainCableInventory.List.Display.Location','Display inventory item location.','true'), -(25008,'ItemDomainCableInventory.List.Display.LocationDetails','Display component instance location details.','false'), -(25009,'ItemDomainCableInventory.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), -(25010,'ItemDomainCableInventory.List.Display.OwnerUser','Display owner username.','false'), -(25011,'ItemDomainCableInventory.List.Display.OwnerGroup','Display owner group name.','false'), -(25012,'ItemDomainCableInventory.List.Display.PropertyTypeId1','Display property value for property type id #1.',''), -(25013,'ItemDomainCableInventory.List.Display.PropertyTypeId2','Display property value for property type id #2.',''), -(25014,'ItemDomainCableInventory.List.Display.PropertyTypeId3','Display property value for property type id #3.',''), -(25015,'ItemDomainCableInventory.List.Display.PropertyTypeId4','Display property value for property type id #4.',''), -(25016,'ItemDomainCableInventory.List.Display.PropertyTypeId5','Display property value for property type id #5.',''), -(25017,'ItemDomainCableInventory.List.Display.QrId','Display component instance QR id.','true'), -(25018,'ItemDomainCableInventory.List.Display.SerialNumber','Display component instance serial number.','false'), -(25019,'ItemDomainCableInventory.List.Display.Project','Display Inventory Item project.','false'), -(25021,'ItemDomainCableInventory.List.Display.RowExpansion','Display row expansion.','true'), -(25022,'ItemDomainCableInventory.List.Load.RowExpansionPropertyValue','Load property values for row expansions.','false'), -(25024,'ItemDomainCableInventory.List.FilterBy.CreatedByUser','Filter for components that were created by username.',NULL), -(25025,'ItemDomainCableInventory.List.FilterBy.CreatedOnDateTime','Filter for components that were created on date/time.',NULL), -(25026,'ItemDomainCableInventory.List.FilterBy.Description','Filter for components by description.',NULL), -(25027,'ItemDomainCableInventory.List.FilterBy.LastModifiedByUser','Filter for components that were last modified by username.',NULL), -(25028,'ItemDomainCableInventory.List.FilterBy.LastModifiedOnDateTime','Filter for components that were last modified on date/time.',NULL), -(25029,'ItemDomainCableInventory.List.FilterBy.Location','Filter for component instance location.',NULL), -(25030,'ItemDomainCableInventory.List.FilterBy.LocationDetails','Filter for component instance location details.',NULL), -(25031,'ItemDomainCableInventory.List.FilterBy.OwnerUser','Filter for component instances by owner username.',NULL), -(25032,'ItemDomainCableInventory.List.FilterBy.OwnerGroup','Filter for component instances by owner group name.',NULL), -(25033,'ItemDomainCableInventory.List.FilterBy.PropertyValue1','Filter for property value with displayed property type id #1.',''), -(25034,'ItemDomainCableInventory.List.FilterBy.PropertyValue2','Filter for property value with displayed property type id #2.',''), -(25035,'ItemDomainCableInventory.List.FilterBy.PropertyValue3','Filter for property value with displayed property type id #3.',''), -(25036,'ItemDomainCableInventory.List.FilterBy.PropertyValue4','Filter for property value with displayed property type id #4.',''), -(25037,'ItemDomainCableInventory.List.FilterBy.PropertyValue5','Filter for property value with displayed property type id #5.',''), -(25038,'ItemDomainCableInventory.List.FilterBy.QrId','Filter for component instance QR id.',NULL), -(25039,'ItemDomainCableInventory.List.FilterBy.SerialNumber','Filter for component instance serial number.',NULL), -(25040,'ItemDomainCableInventory.List.FilterBy.Tag','Filter for component instance tag.',NULL), -(25041,'ItemDomainCableInventory.Help.ListPage.Display.Fragment','Display Help guide to the user on the main list page of the Component Instance entity.','true'), -(25042,'ItemDomainCableInventory.List.Scope.Display','Show list page with a scope applied.','All'), -(25043,'ItemDomainCableInventory.List.Scope.Display.PropertyTypeId','Setting used along side a display scope of property type.',NULL), -(25045,'ItemDomainCableInventory.List.Load.FilterDataTable','Automatically load list filter values in data table on page load.','true'), -(25046,'ItemDomainCableInventory.List.Display.Length','Display column for length in cable inventory list.','true'), -(25047,'ItemDomainCableInventory.List.FilterBy.Length','Filter for components by length.',NULL), -(25048,'ItemDomainCableInventory.List.FilterBy.Status','Filter for components by status.',NULL), -(25049,'ItemDomainCableInventory.List.Display.Status','Display column for status in cable inventory list.','true'); +(20000,'ItemProject.System.ItemProjectId','Default item project to be used in the system',NULL); /*!40000 ALTER TABLE `setting_type` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_source.sql b/db/sql/clean/populate_source.sql index e08143d57..1f0977ce6 100644 --- a/db/sql/clean/populate_source.sql +++ b/db/sql/clean/populate_source.sql @@ -6,4 +6,4 @@ LOCK TABLES `source` WRITE; /*!40000 ALTER TABLE `source` DISABLE KEYS */; /*!40000 ALTER TABLE `source` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_system_log.sql b/db/sql/clean/populate_system_log.sql index 5188687c4..6a0823b4d 100644 --- a/db/sql/clean/populate_system_log.sql +++ b/db/sql/clean/populate_system_log.sql @@ -6,4 +6,4 @@ LOCK TABLES `system_log` WRITE; /*!40000 ALTER TABLE `system_log` DISABLE KEYS */; /*!40000 ALTER TABLE `system_log` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_group.sql b/db/sql/clean/populate_user_group.sql index c18b9d183..21b0a102e 100644 --- a/db/sql/clean/populate_user_group.sql +++ b/db/sql/clean/populate_user_group.sql @@ -7,7 +7,5 @@ LOCK TABLES `user_group` WRITE; /*!40000 ALTER TABLE `user_group` DISABLE KEYS */; INSERT INTO `user_group` VALUES (1,'LOGR_ADMIN','System Admin Group'); --- (2,'CDB_MAINTAINER', 'System Maintainer Group'), --- (3,'CDB_ADVANCED', 'System Advanced Group'); /*!40000 ALTER TABLE `user_group` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_group_list.sql b/db/sql/clean/populate_user_group_list.sql index e0cb0e721..7da5f8a66 100644 --- a/db/sql/clean/populate_user_group_list.sql +++ b/db/sql/clean/populate_user_group_list.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_group_list` WRITE; /*!40000 ALTER TABLE `user_group_list` DISABLE KEYS */; /*!40000 ALTER TABLE `user_group_list` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_group_setting.sql b/db/sql/clean/populate_user_group_setting.sql index 70b13f65d..d3dbe38a7 100644 --- a/db/sql/clean/populate_user_group_setting.sql +++ b/db/sql/clean/populate_user_group_setting.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_group_setting` WRITE; /*!40000 ALTER TABLE `user_group_setting` DISABLE KEYS */; /*!40000 ALTER TABLE `user_group_setting` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_info.sql b/db/sql/clean/populate_user_info.sql index d4cf45949..78ed9d819 100644 --- a/db/sql/clean/populate_user_info.sql +++ b/db/sql/clean/populate_user_info.sql @@ -8,4 +8,4 @@ LOCK TABLES `user_info` WRITE; INSERT INTO `user_info` VALUES (1,'logr','LOGR','System Account',NULL,'logr@aps.anl.gov',NULL,NULL); /*!40000 ALTER TABLE `user_info` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_list.sql b/db/sql/clean/populate_user_list.sql index 8929359f9..f199a2cb2 100644 --- a/db/sql/clean/populate_user_list.sql +++ b/db/sql/clean/populate_user_list.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_list` WRITE; /*!40000 ALTER TABLE `user_list` DISABLE KEYS */; /*!40000 ALTER TABLE `user_list` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_role.sql b/db/sql/clean/populate_user_role.sql index 69239390f..14680c68e 100644 --- a/db/sql/clean/populate_user_role.sql +++ b/db/sql/clean/populate_user_role.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_role` WRITE; /*!40000 ALTER TABLE `user_role` DISABLE KEYS */; /*!40000 ALTER TABLE `user_role` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_session.sql b/db/sql/clean/populate_user_session.sql index 1c194924f..52465d039 100644 --- a/db/sql/clean/populate_user_session.sql +++ b/db/sql/clean/populate_user_session.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_session` WRITE; /*!40000 ALTER TABLE `user_session` DISABLE KEYS */; /*!40000 ALTER TABLE `user_session` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_setting.sql b/db/sql/clean/populate_user_setting.sql index 25e9ab225..0082b30c9 100644 --- a/db/sql/clean/populate_user_setting.sql +++ b/db/sql/clean/populate_user_setting.sql @@ -6,4 +6,4 @@ LOCK TABLES `user_setting` WRITE; /*!40000 ALTER TABLE `user_setting` DISABLE KEYS */; /*!40000 ALTER TABLE `user_setting` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file diff --git a/db/sql/clean/populate_user_user_group.sql b/db/sql/clean/populate_user_user_group.sql index c619bd791..c89ff1046 100644 --- a/db/sql/clean/populate_user_user_group.sql +++ b/db/sql/clean/populate_user_user_group.sql @@ -8,4 +8,4 @@ LOCK TABLES `user_user_group` WRITE; INSERT INTO `user_user_group` VALUES (1,1); /*!40000 ALTER TABLE `user_user_group` ENABLE KEYS */; -UNLOCK TABLES; +UNLOCK TABLES; \ No newline at end of file From 33b65807b7f7ab0a2f7aac965a519e3d3af94793 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 10:00:13 -0500 Subject: [PATCH 03/13] updated test db --- .../populate_allowed_child_entity_type.sql | 6 +- db/sql/test/populate_allowed_entity_type.sql | 6 +- .../populate_allowed_entity_type_domain.sql | 6 +- .../test/populate_allowed_property_domain.sql | 8 +- ...pulate_allowed_property_metadata_value.sql | 6 +- .../test/populate_allowed_property_value.sql | 6 +- db/sql/test/populate_attachment.sql | 6 +- db/sql/test/populate_connector.sql | 6 +- db/sql/test/populate_connector_property.sql | 6 +- db/sql/test/populate_connector_type.sql | 6 +- db/sql/test/populate_domain.sql | 6 +- db/sql/test/populate_entity_info.sql | 93 +------------------ db/sql/test/populate_entity_type.sql | 34 ++++--- db/sql/test/populate_item.sql | 90 +----------------- db/sql/test/populate_item_category.sql | 6 +- .../test/populate_item_category_item_type.sql | 6 +- db/sql/test/populate_item_connector.sql | 6 +- .../test/populate_item_connector_property.sql | 6 +- db/sql/test/populate_item_element.sql | 93 +------------------ db/sql/test/populate_item_element_history.sql | 93 +------------------ db/sql/test/populate_item_element_list.sql | 6 +- db/sql/test/populate_item_element_log.sql | 17 +--- .../test/populate_item_element_property.sql | 10 +- .../populate_item_element_relationship.sql | 6 +- ...late_item_element_relationship_history.sql | 6 +- ...ate_item_element_relationship_property.sql | 6 +- db/sql/test/populate_item_entity_type.sql | 87 +---------------- db/sql/test/populate_item_item_category.sql | 6 +- db/sql/test/populate_item_item_project.sql | 6 +- db/sql/test/populate_item_item_type.sql | 6 +- db/sql/test/populate_item_project.sql | 6 +- db/sql/test/populate_item_resource.sql | 6 +- db/sql/test/populate_item_source.sql | 6 +- db/sql/test/populate_item_type.sql | 19 +--- db/sql/test/populate_list.sql | 6 +- db/sql/test/populate_log.sql | 28 +----- db/sql/test/populate_log_attachment.sql | 6 +- db/sql/test/populate_log_level.sql | 6 +- db/sql/test/populate_log_reaction.sql | 18 +--- db/sql/test/populate_log_topic.sql | 6 +- .../populate_notification_configuration.sql | 9 ++ ...fication_configuration_handler_setting.sql | 9 ++ ...ate_notification_configuration_setting.sql | 9 ++ ...pulate_notification_handler_config_key.sql | 16 ++++ .../test/populate_notification_provider.sql | 11 +++ ...ulate_notification_provider_config_key.sql | 9 ++ db/sql/test/populate_property_metadata.sql | 19 +--- .../populate_property_metadata_history.sql | 11 +-- db/sql/test/populate_property_type.sql | 9 +- .../test/populate_property_type_category.sql | 6 +- .../test/populate_property_type_handler.sql | 6 +- .../test/populate_property_type_metadata.sql | 6 +- db/sql/test/populate_property_value.sql | 10 +- .../test/populate_property_value_history.sql | 8 +- db/sql/test/populate_reaction.sql | 6 +- db/sql/test/populate_relationship_type.sql | 6 +- .../populate_relationship_type_handler.sql | 6 +- db/sql/test/populate_resource_type.sql | 6 +- .../test/populate_resource_type_category.sql | 6 +- db/sql/test/populate_role_type.sql | 6 +- db/sql/test/populate_setting_type.sql | 6 +- db/sql/test/populate_source.sql | 6 +- db/sql/test/populate_system_log.sql | 15 +-- db/sql/test/populate_user_group.sql | 9 +- db/sql/test/populate_user_group_list.sql | 6 +- db/sql/test/populate_user_group_setting.sql | 6 +- db/sql/test/populate_user_info.sql | 9 +- db/sql/test/populate_user_list.sql | 6 +- db/sql/test/populate_user_role.sql | 6 +- db/sql/test/populate_user_session.sql | 6 +- db/sql/test/populate_user_setting.sql | 6 +- db/sql/test/populate_user_user_group.sql | 9 +- 72 files changed, 411 insertions(+), 611 deletions(-) create mode 100644 db/sql/test/populate_notification_configuration.sql create mode 100644 db/sql/test/populate_notification_configuration_handler_setting.sql create mode 100644 db/sql/test/populate_notification_configuration_setting.sql create mode 100644 db/sql/test/populate_notification_handler_config_key.sql create mode 100644 db/sql/test/populate_notification_provider.sql create mode 100644 db/sql/test/populate_notification_provider_config_key.sql diff --git a/db/sql/test/populate_allowed_child_entity_type.sql b/db/sql/test/populate_allowed_child_entity_type.sql index a09c2ff77..ce378f177 100644 --- a/db/sql/test/populate_allowed_child_entity_type.sql +++ b/db/sql/test/populate_allowed_child_entity_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_child_entity_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_child_entity_type` DISABLE KEYS */; INSERT INTO `allowed_child_entity_type` VALUES (1,1), diff --git a/db/sql/test/populate_allowed_entity_type.sql b/db/sql/test/populate_allowed_entity_type.sql index 0a76df510..31941ee47 100644 --- a/db/sql/test/populate_allowed_entity_type.sql +++ b/db/sql/test/populate_allowed_entity_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_entity_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_entity_type` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_entity_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_allowed_entity_type_domain.sql b/db/sql/test/populate_allowed_entity_type_domain.sql index adfeb84e2..783c8f6ac 100644 --- a/db/sql/test/populate_allowed_entity_type_domain.sql +++ b/db/sql/test/populate_allowed_entity_type_domain.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_entity_type_domain` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_entity_type_domain` DISABLE KEYS */; INSERT INTO `allowed_entity_type_domain` VALUES (1,1), diff --git a/db/sql/test/populate_allowed_property_domain.sql b/db/sql/test/populate_allowed_property_domain.sql index 2bbd8cc94..7f45a2e20 100644 --- a/db/sql/test/populate_allowed_property_domain.sql +++ b/db/sql/test/populate_allowed_property_domain.sql @@ -1,7 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_property_domain` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_property_domain` DISABLE KEYS */; -INSERT INTO `allowed_property_domain` VALUES -(3,1); /*!40000 ALTER TABLE `allowed_property_domain` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_allowed_property_metadata_value.sql b/db/sql/test/populate_allowed_property_metadata_value.sql index 435a3fe31..5b9807004 100644 --- a/db/sql/test/populate_allowed_property_metadata_value.sql +++ b/db/sql/test/populate_allowed_property_metadata_value.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_property_metadata_value` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_property_metadata_value` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_property_metadata_value` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_allowed_property_value.sql b/db/sql/test/populate_allowed_property_value.sql index 6a7c9c9c6..fa61fe611 100644 --- a/db/sql/test/populate_allowed_property_value.sql +++ b/db/sql/test/populate_allowed_property_value.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `allowed_property_value` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `allowed_property_value` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_property_value` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_attachment.sql b/db/sql/test/populate_attachment.sql index 866fb6315..faa858203 100644 --- a/db/sql/test/populate_attachment.sql +++ b/db/sql/test/populate_attachment.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `attachment` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `attachment` DISABLE KEYS */; /*!40000 ALTER TABLE `attachment` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_connector.sql b/db/sql/test/populate_connector.sql index ad76150e4..e2c853917 100644 --- a/db/sql/test/populate_connector.sql +++ b/db/sql/test/populate_connector.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `connector` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `connector` DISABLE KEYS */; /*!40000 ALTER TABLE `connector` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_connector_property.sql b/db/sql/test/populate_connector_property.sql index e7edc2e0c..e04abb328 100644 --- a/db/sql/test/populate_connector_property.sql +++ b/db/sql/test/populate_connector_property.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `connector_property` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `connector_property` DISABLE KEYS */; /*!40000 ALTER TABLE `connector_property` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_connector_type.sql b/db/sql/test/populate_connector_type.sql index 54422b8a9..b557c9c22 100644 --- a/db/sql/test/populate_connector_type.sql +++ b/db/sql/test/populate_connector_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `connector_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `connector_type` DISABLE KEYS */; /*!40000 ALTER TABLE `connector_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_domain.sql b/db/sql/test/populate_domain.sql index de6658af3..bb94aee0e 100644 --- a/db/sql/test/populate_domain.sql +++ b/db/sql/test/populate_domain.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `domain` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `domain` DISABLE KEYS */; INSERT INTO `domain` VALUES (1,'Logbook','Item domain to maintain logbooks.',NULL,'UID','System',NULL); diff --git a/db/sql/test/populate_entity_info.sql b/db/sql/test/populate_entity_info.sql index 2f5084279..b67caf222 100644 --- a/db/sql/test/populate_entity_info.sql +++ b/db/sql/test/populate_entity_info.sql @@ -1,92 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `entity_info` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `entity_info` DISABLE KEYS */; -INSERT INTO `entity_info` VALUES -(1,1,1,1,'2024-08-23 09:19:18',1,'2024-08-29 14:46:49',1,NULL,NULL), -(2,1,1,1,'2024-08-23 09:20:04',1,'2024-08-23 09:20:29',1,NULL,NULL), -(3,2,2,1,'2024-08-23 10:00:52',2,'2024-08-23 10:00:52',2,NULL,NULL), -(4,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(5,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(6,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(7,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(8,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(9,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(10,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(11,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(12,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(13,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(14,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(15,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(16,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(17,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(18,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(19,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(20,2,2,1,'2024-08-23 10:00:53',2,'2024-08-23 10:00:53',2,NULL,NULL), -(21,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(22,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(23,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(24,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(25,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(26,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(27,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(28,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(29,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(30,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(31,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(32,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(33,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(34,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(35,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(36,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(37,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(38,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(39,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(40,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(41,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(42,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(43,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(44,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(45,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(46,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(47,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(48,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(49,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(50,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(51,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(52,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(53,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(54,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(55,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(56,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(57,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(58,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(59,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(60,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(61,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(62,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(63,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(64,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(65,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(66,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(67,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(68,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(69,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(70,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(71,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(72,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(73,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(74,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(75,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(76,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(77,2,2,1,'2024-08-23 10:00:54',2,'2024-08-23 10:00:54',2,NULL,NULL), -(78,1,1,1,'2024-08-29 14:47:08',1,'2024-08-29 14:48:30',1,NULL,NULL), -(79,1,1,1,'2024-08-29 14:47:27',1,'2024-08-29 14:47:27',1,NULL,NULL), -(80,1,1,1,'2024-08-29 14:47:33',1,'2024-08-29 14:47:33',1,NULL,NULL), -(81,1,1,1,'2024-08-29 14:47:46',1,'2024-08-29 14:47:46',1,NULL,NULL), -(82,1,1,1,'2024-08-29 14:47:50',1,'2024-08-29 14:47:50',1,NULL,NULL), -(83,1,1,1,'2024-08-29 14:47:54',1,'2024-08-29 14:47:54',1,NULL,NULL), -(84,1,1,1,'2024-08-29 14:48:01',1,'2024-08-29 14:48:01',1,NULL,NULL), -(85,1,1,1,'2024-08-29 14:56:17',1,'2024-08-29 14:56:17',1,NULL,NULL), -(86,2,2,1,'2025-02-14 08:36:54',1,'2025-02-14 09:13:45',1,NULL,NULL); /*!40000 ALTER TABLE `entity_info` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_entity_type.sql b/db/sql/test/populate_entity_type.sql index a76571f47..f8f621c2d 100644 --- a/db/sql/test/populate_entity_type.sql +++ b/db/sql/test/populate_entity_type.sql @@ -1,20 +1,24 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `entity_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `entity_type` DISABLE KEYS */; INSERT INTO `entity_type` VALUES -(1,'Template','Template',NULL,'classification for template items',NULL,NULL,NULL,NULL,1), -(2,'studies','Machine Studies',NULL,'.',NULL,NULL,NULL,1.00,0), -(3,'maintenance','Maintenance',NULL,'.',NULL,NULL,NULL,2.00,0), -(4,'ops','Operations','','.','opsList',NULL,NULL,3.00,0), -(5,'sandbox','Sandbox','','entity type for playing around and testing features of logr.',NULL,NULL,NULL,999.00,0), -(6,'ctl','Controls',NULL,'',NULL,3,NULL,NULL,0), -(7,'studies-sr','SR','SR Studies','','studiesList',2,NULL,NULL,0), -(8,'injector','Injector','Injector Studies','','studiesList',2,NULL,NULL,0), -(9,'vacuum','Vacuum','','',NULL,3,NULL,NULL,0), -(10,'power','Power Systems','','',NULL,3,NULL,NULL,0), -(11,'diag','Diagnostics','','',NULL,3,NULL,NULL,0), -(12,'aop-apps','Physics Applications','','',NULL,3,NULL,NULL,0), -(13,'id','Insertion Devices','','',NULL,3,NULL,NULL,0), -(14,'rf','RF','','',NULL,3,NULL,NULL,0); +(1,'Template','Template',NULL,'classification for template items',NULL,NULL,NULL,NULL,NULL,1), +(2,'studies','Machine Studies',NULL,'.',NULL,NULL,NULL,NULL,1.00,0), +(3,'maintenance','Maintenance',NULL,'.',NULL,NULL,NULL,NULL,2.00,0), +(4,'ops','Operations','','.','opsList',NULL,NULL,NULL,3.00,0), +(5,'sandbox','Sandbox','','entity type for playing around and testing features of logr.',NULL,NULL,NULL,NULL,999.00,0), +(6,'ctl','Controls',NULL,'',NULL,3,NULL,NULL,NULL,0), +(7,'studies-sr','SR','SR Studies','','studiesList',2,NULL,NULL,NULL,0), +(8,'injector','Injector','Injector Studies','','studiesList',2,NULL,NULL,NULL,0), +(9,'vacuum','Vacuum','','',NULL,3,NULL,NULL,NULL,0), +(10,'power','Power Systems','','',NULL,3,NULL,NULL,NULL,0), +(11,'diag','Diagnostics','','',NULL,3,NULL,NULL,NULL,0), +(12,'aop-apps','Physics Applications','','',NULL,3,NULL,NULL,NULL,0), +(13,'id','Insertion Devices','','',NULL,3,NULL,NULL,NULL,0), +(14,'rf','RF','','',NULL,3,NULL,NULL,NULL,0); /*!40000 ALTER TABLE `entity_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item.sql b/db/sql/test/populate_item.sql index 4f97e364a..ff8b8cca5 100644 --- a/db/sql/test/populate_item.sql +++ b/db/sql/test/populate_item.sql @@ -1,89 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item` DISABLE KEYS */; -INSERT INTO `item` VALUES -(1,1,'Test Template Copy',NULL,NULL,NULL,NULL), -(2,1,'Test Template Per Entry',NULL,NULL,NULL,NULL), -(3,1,'test_doc_0',NULL,'','',NULL), -(4,1,'test_doc_1',NULL,'','',NULL), -(5,1,'test_doc_2',NULL,'','',NULL), -(6,1,'test_doc_3',NULL,'','',NULL), -(7,1,'test_doc_4',NULL,'','',NULL), -(8,1,'test_doc_5',NULL,'','',NULL), -(9,1,'test_doc_6',NULL,'','',NULL), -(10,1,'test_doc_7',NULL,'','',NULL), -(11,1,'test_doc_8',NULL,'','',NULL), -(12,1,'test_doc_9',NULL,'','',NULL), -(13,1,'test_doc_10',NULL,'','',NULL), -(14,1,'test_doc_11',NULL,'','',NULL), -(15,1,'test_doc_12',NULL,'','',NULL), -(16,1,'test_doc_13',NULL,'','',NULL), -(17,1,'test_doc_14',NULL,'','',NULL), -(18,1,'test_doc_15',NULL,'','',NULL), -(19,1,'test_doc_16',NULL,'','',NULL), -(20,1,'test_doc_17',NULL,'','',NULL), -(21,1,'test_doc_18',NULL,'','',NULL), -(22,1,'test_doc_19',NULL,'','',NULL), -(23,1,'test_doc_20',NULL,'','',NULL), -(24,1,'test_doc_21',NULL,'','',NULL), -(25,1,'test_doc_22',NULL,'','',NULL), -(26,1,'test_doc_23',NULL,'','',NULL), -(27,1,'test_doc_24',NULL,'','',NULL), -(28,1,'test_doc_25',NULL,'','',NULL), -(29,1,'test_doc_26',NULL,'','',NULL), -(30,1,'test_doc_27',NULL,'','',NULL), -(31,1,'test_doc_28',NULL,'','',NULL), -(32,1,'test_doc_29',NULL,'','',NULL), -(33,1,'test_doc_30',NULL,'','',NULL), -(34,1,'test_doc_31',NULL,'','',NULL), -(35,1,'test_doc_32',NULL,'','',NULL), -(36,1,'test_doc_33',NULL,'','',NULL), -(37,1,'test_doc_34',NULL,'','',NULL), -(38,1,'test_doc_35',NULL,'','',NULL), -(39,1,'test_doc_36',NULL,'','',NULL), -(40,1,'test_doc_37',NULL,'','',NULL), -(41,1,'test_doc_38',NULL,'','',NULL), -(42,1,'test_doc_39',NULL,'','',NULL), -(43,1,'test_doc_40',NULL,'','',NULL), -(44,1,'test_doc_41',NULL,'','',NULL), -(45,1,'test_doc_42',NULL,'','',NULL), -(46,1,'test_doc_43',NULL,'','',NULL), -(47,1,'test_doc_44',NULL,'','',NULL), -(48,1,'test_doc_45',NULL,'','',NULL), -(49,1,'test_doc_46',NULL,'','',NULL), -(50,1,'test_doc_47',NULL,'','',NULL), -(51,1,'test_doc_48',NULL,'','',NULL), -(52,1,'test_doc_49',NULL,'','',NULL), -(53,1,'test_doc_50',NULL,'','',NULL), -(54,1,'test_doc_51',NULL,'','',NULL), -(55,1,'test_doc_52',NULL,'','',NULL), -(56,1,'test_doc_53',NULL,'','',NULL), -(57,1,'test_doc_54',NULL,'','',NULL), -(58,1,'test_doc_55',NULL,'','',NULL), -(59,1,'test_doc_56',NULL,'','',NULL), -(60,1,'test_doc_57',NULL,'','',NULL), -(61,1,'test_doc_58',NULL,'','',NULL), -(62,1,'test_doc_59',NULL,'','',NULL), -(63,1,'test_doc_60',NULL,'','',NULL), -(64,1,'test_doc_61',NULL,'','',NULL), -(65,1,'test_doc_62',NULL,'','',NULL), -(66,1,'test_doc_63',NULL,'','',NULL), -(67,1,'test_doc_64',NULL,'','',NULL), -(68,1,'test_doc_65',NULL,'','',NULL), -(69,1,'test_doc_66',NULL,'','',NULL), -(70,1,'test_doc_67',NULL,'','',NULL), -(71,1,'test_doc_68',NULL,'','',NULL), -(72,1,'test_doc_69',NULL,'','',NULL), -(73,1,'test_doc_70',NULL,'','',NULL), -(74,1,'test_doc_71',NULL,'','',NULL), -(75,1,'test_doc_72',NULL,'','',NULL), -(76,1,'test_doc_73',NULL,'','',NULL), -(77,1,'test_doc_74',NULL,'','',NULL), -(78,1,'Test Template Sections + Copy',NULL,NULL,NULL,NULL), -(79,1,'Section 1',NULL,'','78',NULL), -(80,1,'Section 2',NULL,'','78',NULL), -(81,1,'Section 3',NULL,'','78',NULL), -(82,1,'Sample log document',NULL,'','',NULL), -(83,1,'Log Document With Entries',NULL,'','',NULL); /*!40000 ALTER TABLE `item` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_category.sql b/db/sql/test/populate_item_category.sql index 779fdabc2..fa19188d3 100644 --- a/db/sql/test/populate_item_category.sql +++ b/db/sql/test/populate_item_category.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_category` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_category` DISABLE KEYS */; /*!40000 ALTER TABLE `item_category` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_category_item_type.sql b/db/sql/test/populate_item_category_item_type.sql index 4dae289dd..2bbb3158e 100644 --- a/db/sql/test/populate_item_category_item_type.sql +++ b/db/sql/test/populate_item_category_item_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_category_item_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_category_item_type` DISABLE KEYS */; /*!40000 ALTER TABLE `item_category_item_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_connector.sql b/db/sql/test/populate_item_connector.sql index 1f9bd041f..5a433c4c9 100644 --- a/db/sql/test/populate_item_connector.sql +++ b/db/sql/test/populate_item_connector.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_connector` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_connector` DISABLE KEYS */; /*!40000 ALTER TABLE `item_connector` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_connector_property.sql b/db/sql/test/populate_item_connector_property.sql index 6329be7bb..6143d03f2 100644 --- a/db/sql/test/populate_item_connector_property.sql +++ b/db/sql/test/populate_item_connector_property.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_connector_property` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_connector_property` DISABLE KEYS */; /*!40000 ALTER TABLE `item_connector_property` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element.sql b/db/sql/test/populate_item_element.sql index 96fc8a14a..cc57791cb 100644 --- a/db/sql/test/populate_item_element.sql +++ b/db/sql/test/populate_item_element.sql @@ -1,92 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element` DISABLE KEYS */; -INSERT INTO `item_element` VALUES -(1,NULL,1,NULL,NULL,NULL,NULL,0,1,'',NULL,1), -(2,NULL,2,NULL,NULL,NULL,NULL,0,1,'',NULL,2), -(3,NULL,3,NULL,NULL,NULL,NULL,0,1,NULL,NULL,3), -(4,NULL,4,NULL,NULL,NULL,NULL,0,1,NULL,NULL,4), -(5,NULL,5,NULL,NULL,NULL,NULL,0,1,NULL,NULL,5), -(6,NULL,6,NULL,NULL,NULL,NULL,0,1,NULL,NULL,6), -(7,NULL,7,NULL,NULL,NULL,NULL,0,1,NULL,NULL,7), -(8,NULL,8,NULL,NULL,NULL,NULL,0,1,NULL,NULL,8), -(9,NULL,9,NULL,NULL,NULL,NULL,0,1,NULL,NULL,9), -(10,NULL,10,NULL,NULL,NULL,NULL,0,1,NULL,NULL,10), -(11,NULL,11,NULL,NULL,NULL,NULL,0,1,NULL,NULL,11), -(12,NULL,12,NULL,NULL,NULL,NULL,0,1,NULL,NULL,12), -(13,NULL,13,NULL,NULL,NULL,NULL,0,1,NULL,NULL,13), -(14,NULL,14,NULL,NULL,NULL,NULL,0,1,NULL,NULL,14), -(15,NULL,15,NULL,NULL,NULL,NULL,0,1,NULL,NULL,15), -(16,NULL,16,NULL,NULL,NULL,NULL,0,1,NULL,NULL,16), -(17,NULL,17,NULL,NULL,NULL,NULL,0,1,NULL,NULL,17), -(18,NULL,18,NULL,NULL,NULL,NULL,0,1,NULL,NULL,18), -(19,NULL,19,NULL,NULL,NULL,NULL,0,1,NULL,NULL,19), -(20,NULL,20,NULL,NULL,NULL,NULL,0,1,NULL,NULL,20), -(21,NULL,21,NULL,NULL,NULL,NULL,0,1,NULL,NULL,21), -(22,NULL,22,NULL,NULL,NULL,NULL,0,1,NULL,NULL,22), -(23,NULL,23,NULL,NULL,NULL,NULL,0,1,NULL,NULL,23), -(24,NULL,24,NULL,NULL,NULL,NULL,0,1,NULL,NULL,24), -(25,NULL,25,NULL,NULL,NULL,NULL,0,1,NULL,NULL,25), -(26,NULL,26,NULL,NULL,NULL,NULL,0,1,NULL,NULL,26), -(27,NULL,27,NULL,NULL,NULL,NULL,0,1,NULL,NULL,27), -(28,NULL,28,NULL,NULL,NULL,NULL,0,1,NULL,NULL,28), -(29,NULL,29,NULL,NULL,NULL,NULL,0,1,NULL,NULL,29), -(30,NULL,30,NULL,NULL,NULL,NULL,0,1,NULL,NULL,30), -(31,NULL,31,NULL,NULL,NULL,NULL,0,1,NULL,NULL,31), -(32,NULL,32,NULL,NULL,NULL,NULL,0,1,NULL,NULL,32), -(33,NULL,33,NULL,NULL,NULL,NULL,0,1,NULL,NULL,33), -(34,NULL,34,NULL,NULL,NULL,NULL,0,1,NULL,NULL,34), -(35,NULL,35,NULL,NULL,NULL,NULL,0,1,NULL,NULL,35), -(36,NULL,36,NULL,NULL,NULL,NULL,0,1,NULL,NULL,36), -(37,NULL,37,NULL,NULL,NULL,NULL,0,1,NULL,NULL,37), -(38,NULL,38,NULL,NULL,NULL,NULL,0,1,NULL,NULL,38), -(39,NULL,39,NULL,NULL,NULL,NULL,0,1,NULL,NULL,39), -(40,NULL,40,NULL,NULL,NULL,NULL,0,1,NULL,NULL,40), -(41,NULL,41,NULL,NULL,NULL,NULL,0,1,NULL,NULL,41), -(42,NULL,42,NULL,NULL,NULL,NULL,0,1,NULL,NULL,42), -(43,NULL,43,NULL,NULL,NULL,NULL,0,1,NULL,NULL,43), -(44,NULL,44,NULL,NULL,NULL,NULL,0,1,NULL,NULL,44), -(45,NULL,45,NULL,NULL,NULL,NULL,0,1,NULL,NULL,45), -(46,NULL,46,NULL,NULL,NULL,NULL,0,1,NULL,NULL,46), -(47,NULL,47,NULL,NULL,NULL,NULL,0,1,NULL,NULL,47), -(48,NULL,48,NULL,NULL,NULL,NULL,0,1,NULL,NULL,48), -(49,NULL,49,NULL,NULL,NULL,NULL,0,1,NULL,NULL,49), -(50,NULL,50,NULL,NULL,NULL,NULL,0,1,NULL,NULL,50), -(51,NULL,51,NULL,NULL,NULL,NULL,0,1,NULL,NULL,51), -(52,NULL,52,NULL,NULL,NULL,NULL,0,1,NULL,NULL,52), -(53,NULL,53,NULL,NULL,NULL,NULL,0,1,NULL,NULL,53), -(54,NULL,54,NULL,NULL,NULL,NULL,0,1,NULL,NULL,54), -(55,NULL,55,NULL,NULL,NULL,NULL,0,1,NULL,NULL,55), -(56,NULL,56,NULL,NULL,NULL,NULL,0,1,NULL,NULL,56), -(57,NULL,57,NULL,NULL,NULL,NULL,0,1,NULL,NULL,57), -(58,NULL,58,NULL,NULL,NULL,NULL,0,1,NULL,NULL,58), -(59,NULL,59,NULL,NULL,NULL,NULL,0,1,NULL,NULL,59), -(60,NULL,60,NULL,NULL,NULL,NULL,0,1,NULL,NULL,60), -(61,NULL,61,NULL,NULL,NULL,NULL,0,1,NULL,NULL,61), -(62,NULL,62,NULL,NULL,NULL,NULL,0,1,NULL,NULL,62), -(63,NULL,63,NULL,NULL,NULL,NULL,0,1,NULL,NULL,63), -(64,NULL,64,NULL,NULL,NULL,NULL,0,1,NULL,NULL,64), -(65,NULL,65,NULL,NULL,NULL,NULL,0,1,NULL,NULL,65), -(66,NULL,66,NULL,NULL,NULL,NULL,0,1,NULL,NULL,66), -(67,NULL,67,NULL,NULL,NULL,NULL,0,1,NULL,NULL,67), -(68,NULL,68,NULL,NULL,NULL,NULL,0,1,NULL,NULL,68), -(69,NULL,69,NULL,NULL,NULL,NULL,0,1,NULL,NULL,69), -(70,NULL,70,NULL,NULL,NULL,NULL,0,1,NULL,NULL,70), -(71,NULL,71,NULL,NULL,NULL,NULL,0,1,NULL,NULL,71), -(72,NULL,72,NULL,NULL,NULL,NULL,0,1,NULL,NULL,72), -(73,NULL,73,NULL,NULL,NULL,NULL,0,1,NULL,NULL,73), -(74,NULL,74,NULL,NULL,NULL,NULL,0,1,NULL,NULL,74), -(75,NULL,75,NULL,NULL,NULL,NULL,0,1,NULL,NULL,75), -(76,NULL,76,NULL,NULL,NULL,NULL,0,1,NULL,NULL,76), -(77,NULL,77,NULL,NULL,NULL,NULL,0,1,NULL,NULL,77), -(78,NULL,78,NULL,NULL,NULL,NULL,0,1,'',NULL,78), -(79,'E1',78,79,NULL,NULL,NULL,0,1,NULL,NULL,80), -(80,NULL,79,NULL,NULL,NULL,NULL,0,1,'',NULL,79), -(81,NULL,80,NULL,NULL,NULL,NULL,0,1,'',NULL,81), -(82,'E2',78,80,NULL,NULL,NULL,0,1,NULL,NULL,82), -(83,NULL,81,NULL,NULL,NULL,NULL,0,1,'',NULL,83), -(84,'E3',78,81,NULL,NULL,NULL,0,1,NULL,NULL,84), -(85,NULL,82,NULL,NULL,NULL,NULL,0,1,NULL,NULL,85), -(86,NULL,83,NULL,NULL,NULL,NULL,0,1,NULL,NULL,86); /*!40000 ALTER TABLE `item_element` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_history.sql b/db/sql/test/populate_item_element_history.sql index bc7b93737..d82d4b238 100644 --- a/db/sql/test/populate_item_element_history.sql +++ b/db/sql/test/populate_item_element_history.sql @@ -1,92 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_history` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_history` DISABLE KEYS */; -INSERT INTO `item_element_history` VALUES -(1,NULL,1,'Test Template Copy',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 09:19:18',1), -(2,NULL,2,'Test Template Per Entry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 09:20:04',1), -(3,NULL,3,'test_doc_0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:52',2), -(4,NULL,4,'test_doc_1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(5,NULL,5,'test_doc_2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(6,NULL,6,'test_doc_3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(7,NULL,7,'test_doc_4',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(8,NULL,8,'test_doc_5',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(9,NULL,9,'test_doc_6',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(10,NULL,10,'test_doc_7',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(11,NULL,11,'test_doc_8',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(12,NULL,12,'test_doc_9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(13,NULL,13,'test_doc_10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(14,NULL,14,'test_doc_11',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(15,NULL,15,'test_doc_12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(16,NULL,16,'test_doc_13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(17,NULL,17,'test_doc_14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(18,NULL,18,'test_doc_15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(19,NULL,19,'test_doc_16',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(20,NULL,20,'test_doc_17',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:53',2), -(21,NULL,21,'test_doc_18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(22,NULL,22,'test_doc_19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(23,NULL,23,'test_doc_20',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(24,NULL,24,'test_doc_21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(25,NULL,25,'test_doc_22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(26,NULL,26,'test_doc_23',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(27,NULL,27,'test_doc_24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(28,NULL,28,'test_doc_25',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(29,NULL,29,'test_doc_26',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(30,NULL,30,'test_doc_27',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(31,NULL,31,'test_doc_28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(32,NULL,32,'test_doc_29',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(33,NULL,33,'test_doc_30',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(34,NULL,34,'test_doc_31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(35,NULL,35,'test_doc_32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(36,NULL,36,'test_doc_33',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(37,NULL,37,'test_doc_34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(38,NULL,38,'test_doc_35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(39,NULL,39,'test_doc_36',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(40,NULL,40,'test_doc_37',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(41,NULL,41,'test_doc_38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(42,NULL,42,'test_doc_39',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(43,NULL,43,'test_doc_40',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(44,NULL,44,'test_doc_41',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(45,NULL,45,'test_doc_42',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(46,NULL,46,'test_doc_43',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(47,NULL,47,'test_doc_44',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(48,NULL,48,'test_doc_45',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(49,NULL,49,'test_doc_46',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(50,NULL,50,'test_doc_47',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(51,NULL,51,'test_doc_48',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(52,NULL,52,'test_doc_49',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(53,NULL,53,'test_doc_50',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(54,NULL,54,'test_doc_51',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(55,NULL,55,'test_doc_52',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(56,NULL,56,'test_doc_53',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(57,NULL,57,'test_doc_54',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(58,NULL,58,'test_doc_55',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(59,NULL,59,'test_doc_56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(60,NULL,60,'test_doc_57',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(61,NULL,61,'test_doc_58',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(62,NULL,62,'test_doc_59',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(63,NULL,63,'test_doc_60',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(64,NULL,64,'test_doc_61',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(65,NULL,65,'test_doc_62',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(66,NULL,66,'test_doc_63',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(67,NULL,67,'test_doc_64',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(68,NULL,68,'test_doc_65',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(69,NULL,69,'test_doc_66',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(70,NULL,70,'test_doc_67',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(71,NULL,71,'test_doc_68',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(72,NULL,72,'test_doc_69',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(73,NULL,73,'test_doc_70',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(74,NULL,74,'test_doc_71',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(75,NULL,75,'test_doc_72',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(76,NULL,76,'test_doc_73',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(77,NULL,77,'test_doc_74',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-23 10:00:54',2), -(78,NULL,78,'Test Template Sections',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-29 14:47:08',1), -(79,'E1',79,'Test Template Sections',78,'Section 1',79,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-29 14:47:33',1), -(80,NULL,80,'Section 1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,'',NULL,'2024-08-29 14:47:33',1), -(81,NULL,81,'Section 2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,'',NULL,'2024-08-29 14:47:50',1), -(82,'E2',82,'Test Template Sections',78,'Section 2',80,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-29 14:47:50',1), -(83,NULL,83,'Section 3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,'',NULL,'2024-08-29 14:48:01',1), -(84,'E3',84,'Test Template Sections',78,'Section 3',81,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-29 14:48:01',1), -(85,NULL,85,'Sample log document',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2024-08-29 14:56:17',1), -(86,NULL,86,'Log Document With Entries',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,'2025-02-14 08:36:54',1); /*!40000 ALTER TABLE `item_element_history` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_list.sql b/db/sql/test/populate_item_element_list.sql index 3857433ed..89e2a51c4 100644 --- a/db/sql/test/populate_item_element_list.sql +++ b/db/sql/test/populate_item_element_list.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_list` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_list` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_list` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_log.sql b/db/sql/test/populate_item_element_log.sql index 85c57245b..e67e69ffd 100644 --- a/db/sql/test/populate_item_element_log.sql +++ b/db/sql/test/populate_item_element_log.sql @@ -1,16 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_log` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_log` DISABLE KEYS */; -INSERT INTO `item_element_log` VALUES -(1,10), -(1,14), -(1,15), -(1,16), -(2,13), -(80,19), -(83,22), -(86,27), -(86,30), -(86,31); /*!40000 ALTER TABLE `item_element_log` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_property.sql b/db/sql/test/populate_item_element_property.sql index dded8ca85..694b7130d 100644 --- a/db/sql/test/populate_item_element_property.sql +++ b/db/sql/test/populate_item_element_property.sql @@ -1,9 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_property` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_property` DISABLE KEYS */; -INSERT INTO `item_element_property` VALUES -(1,1), -(2,2), -(78,3); /*!40000 ALTER TABLE `item_element_property` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_relationship.sql b/db/sql/test/populate_item_element_relationship.sql index b95535619..b383743fa 100644 --- a/db/sql/test/populate_item_element_relationship.sql +++ b/db/sql/test/populate_item_element_relationship.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_relationship` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_relationship` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_relationship_history.sql b/db/sql/test/populate_item_element_relationship_history.sql index baa233b7b..0a734ff18 100644 --- a/db/sql/test/populate_item_element_relationship_history.sql +++ b/db/sql/test/populate_item_element_relationship_history.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_relationship_history` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_relationship_history` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship_history` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_element_relationship_property.sql b/db/sql/test/populate_item_element_relationship_property.sql index 953547759..3f0cddd01 100644 --- a/db/sql/test/populate_item_element_relationship_property.sql +++ b/db/sql/test/populate_item_element_relationship_property.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_element_relationship_property` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_element_relationship_property` DISABLE KEYS */; /*!40000 ALTER TABLE `item_element_relationship_property` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_entity_type.sql b/db/sql/test/populate_item_entity_type.sql index 9e60800f9..894492d80 100644 --- a/db/sql/test/populate_item_entity_type.sql +++ b/db/sql/test/populate_item_entity_type.sql @@ -1,86 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_entity_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_entity_type` DISABLE KEYS */; -INSERT INTO `item_entity_type` VALUES -(1,1), -(2,1), -(3,4), -(4,4), -(5,4), -(6,4), -(7,4), -(8,4), -(9,4), -(10,4), -(11,4), -(12,4), -(13,4), -(14,4), -(15,4), -(16,4), -(17,4), -(18,4), -(19,4), -(20,4), -(21,4), -(22,4), -(23,4), -(24,4), -(25,4), -(26,4), -(27,4), -(28,4), -(29,4), -(30,4), -(31,4), -(32,4), -(33,4), -(34,4), -(35,4), -(36,4), -(37,4), -(38,4), -(39,4), -(40,4), -(41,4), -(42,4), -(43,4), -(44,4), -(45,4), -(46,4), -(47,4), -(48,4), -(49,4), -(50,4), -(51,4), -(52,4), -(53,4), -(54,4), -(55,4), -(56,4), -(57,4), -(58,4), -(59,4), -(60,4), -(61,4), -(62,4), -(63,4), -(64,4), -(65,4), -(66,4), -(67,4), -(68,4), -(69,4), -(70,4), -(71,4), -(72,4), -(73,4), -(74,4), -(75,4), -(76,4), -(77,4), -(78,1), -(82,5), -(83,5); /*!40000 ALTER TABLE `item_entity_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_item_category.sql b/db/sql/test/populate_item_item_category.sql index ab1d83934..8afc4d550 100644 --- a/db/sql/test/populate_item_item_category.sql +++ b/db/sql/test/populate_item_item_category.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_item_category` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_item_category` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_category` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_item_project.sql b/db/sql/test/populate_item_item_project.sql index aaed7df15..5129b7a54 100644 --- a/db/sql/test/populate_item_item_project.sql +++ b/db/sql/test/populate_item_item_project.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_item_project` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_item_project` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_project` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_item_type.sql b/db/sql/test/populate_item_item_type.sql index 1bda39b5b..c4a70fd63 100644 --- a/db/sql/test/populate_item_item_type.sql +++ b/db/sql/test/populate_item_item_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_item_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_item_type` DISABLE KEYS */; /*!40000 ALTER TABLE `item_item_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_project.sql b/db/sql/test/populate_item_project.sql index 1370e1f3d..7e00a4248 100644 --- a/db/sql/test/populate_item_project.sql +++ b/db/sql/test/populate_item_project.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_project` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_project` DISABLE KEYS */; INSERT INTO `item_project` VALUES (1,'Sample',NULL); diff --git a/db/sql/test/populate_item_resource.sql b/db/sql/test/populate_item_resource.sql index 9ee5424cf..c8e4b027a 100644 --- a/db/sql/test/populate_item_resource.sql +++ b/db/sql/test/populate_item_resource.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_resource` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_resource` DISABLE KEYS */; /*!40000 ALTER TABLE `item_resource` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_source.sql b/db/sql/test/populate_item_source.sql index 21cd72762..8f56f434d 100644 --- a/db/sql/test/populate_item_source.sql +++ b/db/sql/test/populate_item_source.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_source` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_source` DISABLE KEYS */; /*!40000 ALTER TABLE `item_source` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_item_type.sql b/db/sql/test/populate_item_type.sql index 22f868184..1b937a60f 100644 --- a/db/sql/test/populate_item_type.sql +++ b/db/sql/test/populate_item_type.sql @@ -1,18 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `item_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `item_type` DISABLE KEYS */; -INSERT INTO `item_type` VALUES -(1,'RF',NULL,1,NULL), -(2,'Software',NULL,1,NULL), -(3,'SR',NULL,1,NULL), -(4,'Feedback',NULL,1,NULL), -(5,'Linac',NULL,1,NULL), -(6,'PAR',NULL,1,NULL), -(7,'Booster',NULL,1,NULL), -(8,'Other',NULL,1,NULL), -(9,'LEA',NULL,1,NULL), -(10,'Laser',NULL,1,NULL), -(11,'Insertion Device',NULL,1,NULL), -(12,'ITS',NULL,1,NULL); /*!40000 ALTER TABLE `item_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_list.sql b/db/sql/test/populate_list.sql index ce17abeb0..b94fdc1fb 100644 --- a/db/sql/test/populate_list.sql +++ b/db/sql/test/populate_list.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `list` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `list` DISABLE KEYS */; /*!40000 ALTER TABLE `list` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_log.sql b/db/sql/test/populate_log.sql index 2b39b05a2..197375511 100644 --- a/db/sql/test/populate_log.sql +++ b/db/sql/test/populate_log.sql @@ -1,27 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `log` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `log` DISABLE KEYS */; -INSERT INTO `log` VALUES -(10,'Sample Init Log','2024-08-23 09:19:40','2024-08-23 09:19:40',1,1,'2024-08-23 09:19:40',NULL,NULL,NULL), -(13,'Per Entry Log','2024-08-23 09:20:17','2024-08-23 09:20:17',1,1,'2024-08-23 09:20:17',NULL,NULL,NULL), -(14,'Another test entry','2024-08-29 14:46:20','2024-08-29 14:46:20',1,1,'2024-08-29 14:46:20',NULL,NULL,NULL), -(15,'A third one as well','2024-08-29 14:46:27','2024-08-29 14:46:27',1,1,'2024-08-29 14:46:27',NULL,NULL,NULL), -(16,'How \r\n\r\nAbout \r\n\r\nMultiple \r\n\r\nLines','2024-08-29 14:46:40','2024-08-29 14:46:40',1,1,'2024-08-29 14:46:40',NULL,NULL,NULL), -(17,'User: logr | Created: Test Template Sections [Item Id: 78]','2024-08-29 14:47:22','2024-08-29 14:47:22',1,1,NULL,NULL,NULL,NULL), -(18,'User: logr | Updated: Test Template Sections [Item Id: 78]','2024-08-29 14:47:33','2024-08-29 14:47:33',1,1,NULL,NULL,NULL,NULL), -(19,'Section 1 Entry','2024-08-29 14:47:34','2024-08-29 14:47:34',1,1,'2024-08-29 14:47:34',NULL,NULL,NULL), -(20,'User: logr | Updated: Test Template Sections [Item Id: 78]','2024-08-29 14:47:50','2024-08-29 14:47:50',1,1,NULL,NULL,NULL,NULL), -(21,'User: logr | Updated: Test Template Sections [Item Id: 78]','2024-08-29 14:48:01','2024-08-29 14:48:01',1,1,NULL,NULL,NULL,NULL), -(22,'Section 3 Entry','2024-08-29 14:48:09','2024-08-29 14:48:09',1,1,'2024-08-29 14:48:09',NULL,NULL,NULL), -(23,'User: logr | Updated: Test Template Sections + Copy [Item Id: 78]','2024-08-29 14:48:30','2024-08-29 14:48:30',1,1,NULL,NULL,NULL,NULL), -(24,'User: logr | Updated: Test Template Sections + Copy [Item Id: 78]','2024-08-29 14:48:30','2024-08-29 14:48:30',1,1,NULL,NULL,NULL,NULL), -(25,'User: logr | Created: Sample log document [Item Id: 82]','2024-08-29 14:56:36','2024-08-29 14:56:36',1,1,NULL,NULL,NULL,NULL), -(26,'User: logr | Created: Log Document With Entries [Item Id: 83]','2025-02-14 08:37:06','2025-02-14 08:37:06',1,1,NULL,NULL,NULL,NULL), -(27,'Top level entry with reactions and replies','2025-02-14 08:37:23','2025-02-14 08:37:23',1,1,'2025-02-14 08:37:23',NULL,NULL,NULL), -(28,'Reply','2025-02-14 08:38:00','2025-02-14 08:38:00',1,1,'2025-02-14 08:38:00',NULL,27,NULL), -(29,'Reply with reaction','2025-02-14 08:38:09','2025-02-14 08:38:09',1,1,'2025-02-14 08:38:09',NULL,27,NULL), -(30,'Entry with reactions','2025-02-14 08:38:21','2025-02-14 08:38:21',1,1,'2025-02-14 08:38:21',NULL,NULL,NULL), -(31,'Entry with reply','2025-02-14 08:38:46','2025-02-14 08:38:46',1,1,'2025-02-14 08:38:46',NULL,NULL,NULL), -(32,'Reply','2025-02-14 08:39:01','2025-02-14 08:39:01',1,1,'2025-02-14 08:39:01',NULL,31,NULL); /*!40000 ALTER TABLE `log` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_log_attachment.sql b/db/sql/test/populate_log_attachment.sql index f3afd2c11..13987ee80 100644 --- a/db/sql/test/populate_log_attachment.sql +++ b/db/sql/test/populate_log_attachment.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `log_attachment` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `log_attachment` DISABLE KEYS */; /*!40000 ALTER TABLE `log_attachment` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_log_level.sql b/db/sql/test/populate_log_level.sql index 00d334df4..e7156f5ba 100644 --- a/db/sql/test/populate_log_level.sql +++ b/db/sql/test/populate_log_level.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `log_level` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `log_level` DISABLE KEYS */; INSERT INTO `log_level` VALUES (1,'Spares Warning',NULL), diff --git a/db/sql/test/populate_log_reaction.sql b/db/sql/test/populate_log_reaction.sql index e77fa794c..c10fcfafa 100644 --- a/db/sql/test/populate_log_reaction.sql +++ b/db/sql/test/populate_log_reaction.sql @@ -1,17 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `log_reaction` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `log_reaction` DISABLE KEYS */; -INSERT INTO `log_reaction` VALUES -(27,1,1), -(27,2,1), -(27,3,1), -(27,4,1), -(27,5,1), -(29,1,1), -(30,1,1), -(30,2,1), -(30,3,1), -(30,4,1), -(30,5,1); /*!40000 ALTER TABLE `log_reaction` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_log_topic.sql b/db/sql/test/populate_log_topic.sql index d0e7b6f2e..42686c019 100644 --- a/db/sql/test/populate_log_topic.sql +++ b/db/sql/test/populate_log_topic.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `log_topic` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `log_topic` DISABLE KEYS */; INSERT INTO `log_topic` VALUES (1,'General',NULL); diff --git a/db/sql/test/populate_notification_configuration.sql b/db/sql/test/populate_notification_configuration.sql new file mode 100644 index 000000000..c32376de7 --- /dev/null +++ b/db/sql/test/populate_notification_configuration.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration` WRITE; +/*!40000 ALTER TABLE `notification_configuration` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_notification_configuration_handler_setting.sql b/db/sql/test/populate_notification_configuration_handler_setting.sql new file mode 100644 index 000000000..cdafdad70 --- /dev/null +++ b/db/sql/test/populate_notification_configuration_handler_setting.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration_handler_setting` WRITE; +/*!40000 ALTER TABLE `notification_configuration_handler_setting` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration_handler_setting` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_notification_configuration_setting.sql b/db/sql/test/populate_notification_configuration_setting.sql new file mode 100644 index 000000000..e656ddcdf --- /dev/null +++ b/db/sql/test/populate_notification_configuration_setting.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_configuration_setting` WRITE; +/*!40000 ALTER TABLE `notification_configuration_setting` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_configuration_setting` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_notification_handler_config_key.sql b/db/sql/test/populate_notification_handler_config_key.sql new file mode 100644 index 000000000..fd85425d7 --- /dev/null +++ b/db/sql/test/populate_notification_handler_config_key.sql @@ -0,0 +1,16 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_handler_config_key` WRITE; +/*!40000 ALTER TABLE `notification_handler_config_key` DISABLE KEYS */; +INSERT INTO `notification_handler_config_key` VALUES +(1,'entry_updates','Entry Updates','Notify document owner when log entries in their document are updated or deleted by others','boolean','true',1), +(2,'entry_replies','Replies to My Entries','Notify original entry creator when someone replies to their log entry, or when replies are updated/deleted on their entry','boolean','true',2), +(3,'new_entries','New Entries','Notify document owner when new log entries are created in their document (excluding entries they create themselves)','boolean','true',3), +(4,'document_replies','All Document Replies','Notify document owner when replies are added, updated, or deleted anywhere in their document','boolean','true',4), +(5,'reactions','Entry Reactions','Notify entry creator when someone adds or removes a reaction (like emoji) to their entry','boolean','true',5), +(6,'own_entry_edits','Edits to My Entries','Notify users when their own entries (or replies they created) are edited or deleted by someone else','boolean','true',6); +/*!40000 ALTER TABLE `notification_handler_config_key` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_notification_provider.sql b/db/sql/test/populate_notification_provider.sql new file mode 100644 index 000000000..9c3965529 --- /dev/null +++ b/db/sql/test/populate_notification_provider.sql @@ -0,0 +1,11 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_provider` WRITE; +/*!40000 ALTER TABLE `notification_provider` DISABLE KEYS */; +INSERT INTO `notification_provider` VALUES +(1,'apprise','Sends notifications to email, Discord, Slack, Teams, and more.','# Notification URL Examples\n\n## Email (SMTP)\n\n```\nmailto://user@gmail.com\n```\n\n## Microsoft Teams\n\n```\nmsteams://TokenA/TokenB/TokenC\n```\n\n## Slack\n\n```\nslack://TokenA/TokenB/TokenC/#channel\n```\n\n## Custom Webhooks\n\n```\njson://hostname/path\n```\n\nFor the full list of supported services, see the [Apprise Services Page](https://appriseit.com/services).\n\n---\n\n**Note:** Notifications are powered by [Apprise](https://github.com/caronc/apprise), an open-source notification library hosted locally.'); +/*!40000 ALTER TABLE `notification_provider` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_notification_provider_config_key.sql b/db/sql/test/populate_notification_provider_config_key.sql new file mode 100644 index 000000000..02d3dd26e --- /dev/null +++ b/db/sql/test/populate_notification_provider_config_key.sql @@ -0,0 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + +LOCK TABLES `notification_provider_config_key` WRITE; +/*!40000 ALTER TABLE `notification_provider_config_key` DISABLE KEYS */; +/*!40000 ALTER TABLE `notification_provider_config_key` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/db/sql/test/populate_property_metadata.sql b/db/sql/test/populate_property_metadata.sql index 9bc49ab52..d2bb43843 100644 --- a/db/sql/test/populate_property_metadata.sql +++ b/db/sql/test/populate_property_metadata.sql @@ -1,18 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_metadata` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_metadata` DISABLE KEYS */; -INSERT INTO `property_metadata` VALUES -(1,1,'logLockout','0.0'), -(2,1,'docLockout','0.0'), -(3,1,'showTimestamps','true'), -(4,1,'logMode','copy'), -(5,2,'showTimestamps','true'), -(6,2,'docLockout','0.0'), -(7,2,'logMode','template per entry'), -(8,2,'logLockout','0.0'), -(9,3,'showTimestamps','true'), -(10,3,'logMode','copy'), -(11,3,'docLockout','0.0'), -(12,3,'logLockout','0.0'); /*!40000 ALTER TABLE `property_metadata` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_metadata_history.sql b/db/sql/test/populate_property_metadata_history.sql index 73bd7fa61..c6566dd59 100644 --- a/db/sql/test/populate_property_metadata_history.sql +++ b/db/sql/test/populate_property_metadata_history.sql @@ -1,10 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_metadata_history` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_metadata_history` DISABLE KEYS */; -INSERT INTO `property_metadata_history` VALUES -(1,1,'docLockout','0.0'), -(2,1,'logMode','none'), -(3,1,'logLockout','0.0'), -(4,1,'showTimestamps','true'); /*!40000 ALTER TABLE `property_metadata_history` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_type.sql b/db/sql/test/populate_property_type.sql index b615db899..b4b980dfb 100644 --- a/db/sql/test/populate_property_type.sql +++ b/db/sql/test/populate_property_type.sql @@ -1,9 +1,12 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_type` DISABLE KEYS */; INSERT INTO `property_type` VALUES (1,'Image',NULL,NULL,1,2,NULL,NULL,0,0,0,1,1), -(2,'Document (Upload)','',NULL,1,1,'','',0,0,0,1,1), -(3,'Logbook Document Settings',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL); +(2,'Document (Upload)','',NULL,1,1,'','',0,0,0,1,1); /*!40000 ALTER TABLE `property_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_type_category.sql b/db/sql/test/populate_property_type_category.sql index 0347a5ca9..52e98b7c5 100644 --- a/db/sql/test/populate_property_type_category.sql +++ b/db/sql/test/populate_property_type_category.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_type_category` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_type_category` DISABLE KEYS */; INSERT INTO `property_type_category` VALUES (1,'Documentation',NULL), diff --git a/db/sql/test/populate_property_type_handler.sql b/db/sql/test/populate_property_type_handler.sql index c86906d45..c18017494 100644 --- a/db/sql/test/populate_property_type_handler.sql +++ b/db/sql/test/populate_property_type_handler.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_type_handler` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_type_handler` DISABLE KEYS */; INSERT INTO `property_type_handler` VALUES (1,'Document','Generic document handler.'), diff --git a/db/sql/test/populate_property_type_metadata.sql b/db/sql/test/populate_property_type_metadata.sql index 893d305bd..39ea1680e 100644 --- a/db/sql/test/populate_property_type_metadata.sql +++ b/db/sql/test/populate_property_type_metadata.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_type_metadata` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_type_metadata` DISABLE KEYS */; /*!40000 ALTER TABLE `property_type_metadata` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_value.sql b/db/sql/test/populate_property_value.sql index 92f9f73b2..25b192001 100644 --- a/db/sql/test/populate_property_value.sql +++ b/db/sql/test/populate_property_value.sql @@ -1,9 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_value` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_value` DISABLE KEYS */; -INSERT INTO `property_value` VALUES -(1,3,NULL,'',NULL,NULL,'2024-08-23 09:19:58',1,NULL,NULL,0,0,NULL,NULL), -(2,3,NULL,'',NULL,NULL,'2024-08-23 09:20:29',1,NULL,NULL,0,0,NULL,NULL), -(3,3,NULL,'',NULL,NULL,'2024-08-29 14:48:30',1,NULL,NULL,0,0,NULL,NULL); /*!40000 ALTER TABLE `property_value` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_value_history.sql b/db/sql/test/populate_property_value_history.sql index 7c1e29650..642bb9445 100644 --- a/db/sql/test/populate_property_value_history.sql +++ b/db/sql/test/populate_property_value_history.sql @@ -1,7 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `property_value_history` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `property_value_history` DISABLE KEYS */; -INSERT INTO `property_value_history` VALUES -(1,3,NULL,'',NULL,NULL,'2024-08-29 14:47:33',1,'2024-08-29 14:47:33',NULL,NULL,NULL); /*!40000 ALTER TABLE `property_value_history` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_reaction.sql b/db/sql/test/populate_reaction.sql index 0a797de9b..b06c752d8 100644 --- a/db/sql/test/populate_reaction.sql +++ b/db/sql/test/populate_reaction.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `reaction` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `reaction` DISABLE KEYS */; INSERT INTO `reaction` VALUES (1,'Like',128077,NULL,1.00), diff --git a/db/sql/test/populate_relationship_type.sql b/db/sql/test/populate_relationship_type.sql index 6defb07f6..7cca9f84b 100644 --- a/db/sql/test/populate_relationship_type.sql +++ b/db/sql/test/populate_relationship_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `relationship_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `relationship_type` DISABLE KEYS */; INSERT INTO `relationship_type` VALUES (1,'Created From Template','',NULL); diff --git a/db/sql/test/populate_relationship_type_handler.sql b/db/sql/test/populate_relationship_type_handler.sql index a36b65845..7434ac817 100644 --- a/db/sql/test/populate_relationship_type_handler.sql +++ b/db/sql/test/populate_relationship_type_handler.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `relationship_type_handler` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `relationship_type_handler` DISABLE KEYS */; /*!40000 ALTER TABLE `relationship_type_handler` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_resource_type.sql b/db/sql/test/populate_resource_type.sql index 972c51f2b..afb2e0856 100644 --- a/db/sql/test/populate_resource_type.sql +++ b/db/sql/test/populate_resource_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `resource_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `resource_type` DISABLE KEYS */; /*!40000 ALTER TABLE `resource_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_resource_type_category.sql b/db/sql/test/populate_resource_type_category.sql index 2c87ef39b..87547c060 100644 --- a/db/sql/test/populate_resource_type_category.sql +++ b/db/sql/test/populate_resource_type_category.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `resource_type_category` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `resource_type_category` DISABLE KEYS */; /*!40000 ALTER TABLE `resource_type_category` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_role_type.sql b/db/sql/test/populate_role_type.sql index 9c8d42942..6d09a0088 100644 --- a/db/sql/test/populate_role_type.sql +++ b/db/sql/test/populate_role_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `role_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `role_type` DISABLE KEYS */; INSERT INTO `role_type` VALUES (1,'group_settings_admin','Ability to edit view settings for a particular group.'); diff --git a/db/sql/test/populate_setting_type.sql b/db/sql/test/populate_setting_type.sql index 442f88e84..d382d7f4d 100644 --- a/db/sql/test/populate_setting_type.sql +++ b/db/sql/test/populate_setting_type.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `setting_type` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `setting_type` DISABLE KEYS */; INSERT INTO `setting_type` VALUES (1,'ItemDomainLogbook.List.Display.NumberOfItemsPerPage','Display specified number of items per page.','25'), diff --git a/db/sql/test/populate_source.sql b/db/sql/test/populate_source.sql index 830cfc944..e08143d57 100644 --- a/db/sql/test/populate_source.sql +++ b/db/sql/test/populate_source.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `source` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `source` DISABLE KEYS */; /*!40000 ALTER TABLE `source` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_system_log.sql b/db/sql/test/populate_system_log.sql index 778595984..5188687c4 100644 --- a/db/sql/test/populate_system_log.sql +++ b/db/sql/test/populate_system_log.sql @@ -1,14 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `system_log` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `system_log` DISABLE KEYS */; -INSERT INTO `system_log` VALUES -(17,4), -(18,4), -(20,4), -(21,4), -(23,4), -(24,4), -(25,4), -(26,4); /*!40000 ALTER TABLE `system_log` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_group.sql b/db/sql/test/populate_user_group.sql index 8bd1e6d2d..a81ec37a1 100644 --- a/db/sql/test/populate_user_group.sql +++ b/db/sql/test/populate_user_group.sql @@ -1,8 +1,11 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_group` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_group` DISABLE KEYS */; INSERT INTO `user_group` VALUES -(1,'LOGR_ADMIN','System Admin Group'), -(2,'REG',''); +(1,'LOGR_ADMIN','System Admin Group'); /*!40000 ALTER TABLE `user_group` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_group_list.sql b/db/sql/test/populate_user_group_list.sql index 2636e740f..e0cb0e721 100644 --- a/db/sql/test/populate_user_group_list.sql +++ b/db/sql/test/populate_user_group_list.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_group_list` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_group_list` DISABLE KEYS */; /*!40000 ALTER TABLE `user_group_list` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_group_setting.sql b/db/sql/test/populate_user_group_setting.sql index 47f8aefea..70b13f65d 100644 --- a/db/sql/test/populate_user_group_setting.sql +++ b/db/sql/test/populate_user_group_setting.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_group_setting` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_group_setting` DISABLE KEYS */; /*!40000 ALTER TABLE `user_group_setting` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_info.sql b/db/sql/test/populate_user_info.sql index 580d1f608..d4cf45949 100644 --- a/db/sql/test/populate_user_info.sql +++ b/db/sql/test/populate_user_info.sql @@ -1,8 +1,11 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_info` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_info` DISABLE KEYS */; INSERT INTO `user_info` VALUES -(1,'logr','LOGR','System Account','','logr@aps.anl.gov','aNX5$whZeG05Yq7xgrO8lah3oZilG5mAQAVaJ',''), -(2,'user','User','Standard','','','nQs4$9GXkrvqFf8+eFmRfK3uskEfun51bycyx',''); +(1,'logr','LOGR','System Account',NULL,'logr@aps.anl.gov',NULL,NULL); /*!40000 ALTER TABLE `user_info` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_list.sql b/db/sql/test/populate_user_list.sql index 268542770..8929359f9 100644 --- a/db/sql/test/populate_user_list.sql +++ b/db/sql/test/populate_user_list.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_list` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_list` DISABLE KEYS */; /*!40000 ALTER TABLE `user_list` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_role.sql b/db/sql/test/populate_user_role.sql index 54437989d..69239390f 100644 --- a/db/sql/test/populate_user_role.sql +++ b/db/sql/test/populate_user_role.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_role` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_role` DISABLE KEYS */; /*!40000 ALTER TABLE `user_role` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_session.sql b/db/sql/test/populate_user_session.sql index 037c649c6..1c194924f 100644 --- a/db/sql/test/populate_user_session.sql +++ b/db/sql/test/populate_user_session.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_session` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_session` DISABLE KEYS */; /*!40000 ALTER TABLE `user_session` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_setting.sql b/db/sql/test/populate_user_setting.sql index 4bd97ed9d..25e9ab225 100644 --- a/db/sql/test/populate_user_setting.sql +++ b/db/sql/test/populate_user_setting.sql @@ -1,5 +1,9 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_setting` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_setting` DISABLE KEYS */; /*!40000 ALTER TABLE `user_setting` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_user_user_group.sql b/db/sql/test/populate_user_user_group.sql index 9a61a7d17..c619bd791 100644 --- a/db/sql/test/populate_user_user_group.sql +++ b/db/sql/test/populate_user_user_group.sql @@ -1,8 +1,11 @@ +-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- + LOCK TABLES `user_user_group` WRITE; -SET SESSION FOREIGN_KEY_CHECKS=0; /*!40000 ALTER TABLE `user_user_group` DISABLE KEYS */; INSERT INTO `user_user_group` VALUES -(1,1), -(2,2); +(1,1); /*!40000 ALTER TABLE `user_user_group` ENABLE KEYS */; UNLOCK TABLES; From d8a89699b5a834f4da5ba3082e0ae2dcc3a5602e Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 10:00:41 -0500 Subject: [PATCH 04/13] Add script to add copyright headers to clean and test sql script. --- sbin/add-copyright-headers.sh | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 sbin/add-copyright-headers.sh diff --git a/sbin/add-copyright-headers.sh b/sbin/add-copyright-headers.sh new file mode 100755 index 000000000..bdabb7d35 --- /dev/null +++ b/sbin/add-copyright-headers.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Copyright (c) UChicago Argonne, LLC. All rights reserved. +# See LICENSE file. + +HEADER_CONTENT="-- +-- Copyright (c) UChicago Argonne, LLC. All rights reserved. +-- See LICENSE file. +-- +" + +# Function to add header to a file if it's missing +add_header_if_missing() { + local file=$1 + if ! grep -q "Copyright (c) UChicago Argonne, LLC. All rights reserved." "$file"; then + echo "Adding header to $file" + local temp_file + temp_file=$(mktemp) + echo -e "$HEADER_CONTENT" | cat - "$file" > "$temp_file" + mv "$temp_file" "$file" + fi +} + +# Process all .sql files in the specified directories +for dir in "db/sql/clean" "db/sql/test"; do + if [ -d "$dir" ]; then + for file in "$dir"/*.sql; do + if [ -f "$file" ]; then + add_header_if_missing "$file" + fi + done + else + echo "Directory not found: $dir" + fi +done + +echo "Copyright header check complete." From 9c96d72b8a8949a2418c0005e28b0b1c19748684 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 11:07:58 -0500 Subject: [PATCH 05/13] Create old dir --- db/sql/updates/{ => old}/updateTo2024.2.sql | 0 db/sql/updates/{ => old}/updateTo2024.3.sql | 0 db/sql/updates/{ => old}/updateTo2024.4.sql | 0 db/sql/updates/{ => old}/updateTo2024.5.sql | 0 db/sql/updates/{ => old}/updateTo2024.6.sql | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename db/sql/updates/{ => old}/updateTo2024.2.sql (100%) rename db/sql/updates/{ => old}/updateTo2024.3.sql (100%) rename db/sql/updates/{ => old}/updateTo2024.4.sql (100%) rename db/sql/updates/{ => old}/updateTo2024.5.sql (100%) rename db/sql/updates/{ => old}/updateTo2024.6.sql (100%) diff --git a/db/sql/updates/updateTo2024.2.sql b/db/sql/updates/old/updateTo2024.2.sql similarity index 100% rename from db/sql/updates/updateTo2024.2.sql rename to db/sql/updates/old/updateTo2024.2.sql diff --git a/db/sql/updates/updateTo2024.3.sql b/db/sql/updates/old/updateTo2024.3.sql similarity index 100% rename from db/sql/updates/updateTo2024.3.sql rename to db/sql/updates/old/updateTo2024.3.sql diff --git a/db/sql/updates/updateTo2024.4.sql b/db/sql/updates/old/updateTo2024.4.sql similarity index 100% rename from db/sql/updates/updateTo2024.4.sql rename to db/sql/updates/old/updateTo2024.4.sql diff --git a/db/sql/updates/updateTo2024.5.sql b/db/sql/updates/old/updateTo2024.5.sql similarity index 100% rename from db/sql/updates/updateTo2024.5.sql rename to db/sql/updates/old/updateTo2024.5.sql diff --git a/db/sql/updates/updateTo2024.6.sql b/db/sql/updates/old/updateTo2024.6.sql similarity index 100% rename from db/sql/updates/updateTo2024.6.sql rename to db/sql/updates/old/updateTo2024.6.sql From bece8da9721dc73af0c798325a6326749cf6b700 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 11:08:05 -0500 Subject: [PATCH 06/13] Undo changes and create a new release --- db/sql/updates/updateTo2026.10.sql | 7 +++++++ db/sql/updates/updateTo2026.3.sql | 10 +--------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 db/sql/updates/updateTo2026.10.sql diff --git a/db/sql/updates/updateTo2026.10.sql b/db/sql/updates/updateTo2026.10.sql new file mode 100644 index 000000000..46ea25e74 --- /dev/null +++ b/db/sql/updates/updateTo2026.10.sql @@ -0,0 +1,7 @@ +-- +-- Default owner user group per logbook type (entity_type) +-- + +ALTER TABLE entity_type ADD column `default_owner_user_group_id` int(11) unsigned DEFAULT NULL AFTER primary_template_item_id; +ALTER TABLE entity_type ADD KEY `default_owner_user_group_entity_type_k3` (`default_owner_user_group_id`); +ALTER TABLE entity_type ADD CONSTRAINT `default_owner_user_group_entity_type_fk3` FOREIGN KEY (`default_owner_user_group_id`) REFERENCES `user_group` (`id`) ON UPDATE CASCADE ON DELETE SET NULL; diff --git a/db/sql/updates/updateTo2026.3.sql b/db/sql/updates/updateTo2026.3.sql index cf60f28a6..b2fb13e58 100644 --- a/db/sql/updates/updateTo2026.3.sql +++ b/db/sql/updates/updateTo2026.3.sql @@ -388,12 +388,4 @@ BEGIN deallocate prepare stmt; END // -delimiter ; - --- --- Default owner user group per logbook type (entity_type) --- - -ALTER TABLE entity_type ADD column `default_owner_user_group_id` int(11) unsigned DEFAULT NULL AFTER primary_template_item_id; -ALTER TABLE entity_type ADD KEY `default_owner_user_group_entity_type_k3` (`default_owner_user_group_id`); -ALTER TABLE entity_type ADD CONSTRAINT `default_owner_user_group_entity_type_fk3` FOREIGN KEY (`default_owner_user_group_id`) REFERENCES `user_group` (`id`) ON UPDATE CASCADE ON DELETE SET NULL; +delimiter ; \ No newline at end of file From 0185f999f834eae24cce19d6dbca3c9cbe7b4180 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Wed, 9 Sep 2026 11:09:16 -0500 Subject: [PATCH 07/13] Rename --- db/sql/updates/{updateTo2026.3.sql => old/updateTo2026.03.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename db/sql/updates/{updateTo2026.3.sql => old/updateTo2026.03.sql} (100%) diff --git a/db/sql/updates/updateTo2026.3.sql b/db/sql/updates/old/updateTo2026.03.sql similarity index 100% rename from db/sql/updates/updateTo2026.3.sql rename to db/sql/updates/old/updateTo2026.03.sql From 8de638817aeb5f44c8e6c2f1290dab57e9c40d9b Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:06:54 -0500 Subject: [PATCH 08/13] Add update note --- db/sql/updates/updateTo2026.10.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/sql/updates/updateTo2026.10.sql b/db/sql/updates/updateTo2026.10.sql index 46ea25e74..310319157 100644 --- a/db/sql/updates/updateTo2026.10.sql +++ b/db/sql/updates/updateTo2026.10.sql @@ -1,3 +1,5 @@ +-- Execute by running `mysql BELY_DB_NAME --host=127.0.0.1 --user=logr -p < updateTo2026.10.sql` + -- -- Default owner user group per logbook type (entity_type) -- From f7deff6e0065cfdf6745e26c416484970fec66fe Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:15:00 -0500 Subject: [PATCH 09/13] Expose the new default owner group in the entity. --- .../logr/portal/model/db/entities/EntityType.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/model/db/entities/EntityType.java b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/model/db/entities/EntityType.java index 67875639a..e1d5b9db8 100644 --- a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/model/db/entities/EntityType.java +++ b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/model/db/entities/EntityType.java @@ -97,6 +97,9 @@ public class EntityType extends CdbEntity implements Serializable { @JoinColumn(name = "primary_template_item_id", referencedColumnName = "id") @ManyToOne(cascade = CascadeType.ALL) private Item primaryTemplateItem; + @JoinColumn(name = "default_owner_user_group_id", referencedColumnName = "id") + @ManyToOne + private UserGroup defaultOwnerUserGroup; private transient String listUrl = null; @@ -263,6 +266,17 @@ public Item getPrimaryTemplateItem() { public void setPrimaryTemplateItem(Item primaryTemplateItem) { this.primaryTemplateItem = primaryTemplateItem; } + + // Owner group applied by default to new items of this entity type (logbook); may be null. + @JsonIgnore + @XmlTransient + public UserGroup getDefaultOwnerUserGroup() { + return defaultOwnerUserGroup; + } + + public void setDefaultOwnerUserGroup(UserGroup defaultOwnerUserGroup) { + this.defaultOwnerUserGroup = defaultOwnerUserGroup; + } @JsonIgnore public boolean isHasChildren() { From b96cf1f7316eec7a360d07b67168ed52b161b353 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:28:36 -0500 Subject: [PATCH 10/13] Apply default owner group during creation of log document --- .../ItemDomainLogbookControllerUtility.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/utilities/ItemDomainLogbookControllerUtility.java b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/utilities/ItemDomainLogbookControllerUtility.java index 6c169af7c..15d8cf577 100644 --- a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/utilities/ItemDomainLogbookControllerUtility.java +++ b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/utilities/ItemDomainLogbookControllerUtility.java @@ -21,6 +21,7 @@ import gov.anl.aps.logr.portal.model.db.entities.ItemType; import gov.anl.aps.logr.portal.model.db.entities.Log; import gov.anl.aps.logr.portal.model.db.entities.PropertyValue; +import gov.anl.aps.logr.portal.model.db.entities.UserGroup; import gov.anl.aps.logr.portal.model.db.entities.UserInfo; import gov.anl.aps.logr.portal.utilities.AuthorizationUtility; import gov.anl.aps.logr.portal.utilities.SearchResult; @@ -116,9 +117,36 @@ public ItemDomainLogbook completeCreateEntityInstance(ItemDomainLogbook newLogbo } } + // Applied after the template so the logbook default always takes precedence. + applyDefaultOwnerUserGroup(newLogbookDoc, entityType); + return newLogbookDoc; } + // Resolves the logbook's default owner group, or null if it does not apply to this document. + private static UserGroup resolveDefaultOwnerUserGroup(ItemDomainLogbook logbookDoc, EntityType logbookType) { + if (logbookDoc == null || logbookType == null || logbookDoc.getEntityInfo() == null) { + return null; + } + + return logbookType.getDefaultOwnerUserGroup(); + } + + // Assigns the logbook's default owner group to the new document; no-op if none is set. + public static void applyDefaultOwnerUserGroup(ItemDomainLogbook logbookDoc, EntityType logbookType) { + UserGroup defaultOwnerUserGroup = resolveDefaultOwnerUserGroup(logbookDoc, logbookType); + if (defaultOwnerUserGroup != null) { + logbookDoc.getEntityInfo().setOwnerUserGroup(defaultOwnerUserGroup); + } + } + + // True if the document's current owner group matches its logbook's default owner group. + public static boolean isOwnerUserGroupDefaultForLogbookType(ItemDomainLogbook logbookDoc, EntityType logbookType) { + UserGroup defaultOwnerUserGroup = resolveDefaultOwnerUserGroup(logbookDoc, logbookType); + return defaultOwnerUserGroup != null + && defaultOwnerUserGroup.equals(logbookDoc.getEntityInfo().getOwnerUserGroup()); + } + @Override protected void additionalSelectionOfTemplateSteps(ItemDomainLogbook item, ItemDomainLogbook templateItem, UserInfo user) throws CloneNotSupportedException { super.additionalSelectionOfTemplateSteps(item, templateItem, user); From 35cae7254964c07c4058e574cbcb64591f75ead2 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:28:56 -0500 Subject: [PATCH 11/13] Apply default owner group during creation of log document --- .../ItemDomainLogbookController.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/ItemDomainLogbookController.java b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/ItemDomainLogbookController.java index 541e45bd4..24608f5be 100644 --- a/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/ItemDomainLogbookController.java +++ b/src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/controllers/ItemDomainLogbookController.java @@ -1628,6 +1628,26 @@ public String prepareCreate() { return super.prepareCreate(); } + // True while the item's owner group is still the one auto-applied from the current logbook. + public boolean isOwnerGroupAutoSelectedForCurrent() { + return ItemDomainLogbookControllerUtility.isOwnerUserGroupDefaultForLogbookType( + getCurrent(), currentEntityType); + } + + // Tooltip text for the auto-selected owner group indicator, or null if not auto-selected. + public String getAutoSelectedOwnerGroupMessage() { + if (!isOwnerGroupAutoSelectedForCurrent()) { + return null; + } + + String groupName = getCurrent().getEntityInfo().getOwnerUserGroup().getName(); + String logbookName = currentEntityType.getAvailableLongDisplayName(); + + return String.format( + "Owner group '%s' was automatically selected as the default group for logbook '%s'. You may change it.", + groupName, logbookName); + } + @Override public String create() { if (!generatedName.isBlank()) { From 016e4f3891b11bdd911ee148899cb836cb8dd912 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:29:47 -0500 Subject: [PATCH 12/13] Add ability to set and view default owner group when managing logbook types. --- .../LogrPortal/web/views/entityType/list.xhtml | 4 ++++ .../private/entityTypeEditPanelGrid.xhtml | 14 ++++++++++++++ .../entityType/private/entityTypeInfoDialog.xhtml | 3 +++ 3 files changed, 21 insertions(+) diff --git a/src/java/LogrPortal/web/views/entityType/list.xhtml b/src/java/LogrPortal/web/views/entityType/list.xhtml index 28e85e849..998724d3f 100644 --- a/src/java/LogrPortal/web/views/entityType/list.xhtml +++ b/src/java/LogrPortal/web/views/entityType/list.xhtml @@ -71,6 +71,10 @@ See LICENSE file. #{etTreeNode.primaryTemplateItem} + + #{etTreeNode.defaultOwnerUserGroup.name} + + + + + + + + + diff --git a/src/java/LogrPortal/web/views/entityType/private/entityTypeInfoDialog.xhtml b/src/java/LogrPortal/web/views/entityType/private/entityTypeInfoDialog.xhtml index e2ee14737..ec6717dac 100644 --- a/src/java/LogrPortal/web/views/entityType/private/entityTypeInfoDialog.xhtml +++ b/src/java/LogrPortal/web/views/entityType/private/entityTypeInfoDialog.xhtml @@ -38,6 +38,9 @@ See LICENSE file. + + + From 4ccbcdba3bb1e900c76b24df01e337c1dd84a6d6 Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Thu, 10 Sep 2026 08:30:43 -0500 Subject: [PATCH 13/13] Add tooltip to indicate that a owner group was set by a logbook type --- .../entityInfoFieldEditValues/ownerGroup.xhtml | 13 ++++++++++++- .../web/views/itemDomainLogbook/create.xhtml | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/java/LogrPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/ownerGroup.xhtml b/src/java/LogrPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/ownerGroup.xhtml index cd6429354..73229a09d 100644 --- a/src/java/LogrPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/ownerGroup.xhtml +++ b/src/java/LogrPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/ownerGroup.xhtml @@ -24,11 +24,22 @@ See LICENSE file. + + + - + + + +
+ +
+
diff --git a/src/java/LogrPortal/web/views/itemDomainLogbook/create.xhtml b/src/java/LogrPortal/web/views/itemDomainLogbook/create.xhtml index 968f28d10..e822f8242 100644 --- a/src/java/LogrPortal/web/views/itemDomainLogbook/create.xhtml +++ b/src/java/LogrPortal/web/views/itemDomainLogbook/create.xhtml @@ -18,6 +18,10 @@ See LICENSE file. + + +