Commit b4632a59 authored by Kristel Meikas's avatar Kristel Meikas
Browse files

TEIS-2403: added classifier item links for existing city/parish and county classifier items

parent fe4a278f
......@@ -51,7 +51,7 @@ class ClassifierItemsPublicListenerTest extends ClassifierTestBase {
@Test
void getClassifierItemByIdAndLinkedTarget_empty_result() {
itemPayload.setId("CITY_OR_PARISH__0130");
itemPayload.setId("COUNTRY__AF");
itemPayload.setLinkedItems(LinkedItems.BOTH);
itemRequest.setPayload(itemPayload, REQUEST_META_DTO);
ClassifierItemResponse response = classifierItemsPublicListener.getClassifierItem(itemRequest);
......
--liquibase formatted sql
--changeset kristel:2021-09-10.TEIS-2403.add-ehak-classifier-links
INSERT INTO classifier_item (id, classifier_definition_id, code, editable, name, object_status, seq_no, upper_classifier_item_id, valid_from, valid_until, level, created_at, created_by) VALUES
('CITY_OR_PARISH__0917', 'CITY_OR_PARISH', '0917', false, 'Võru vald', 'CURRENT', 252, null, now(), null, null, now(), 'SYSTEM');
INSERT INTO classifier_item_link (id, source_classifier_item_id, target_classifier_item_id, object_status, created_at, created_by) VALUES
('834d3dcb-a3d6-4b87-a3af-aaf4d2da3a51', 'CITY_OR_PARISH__0130', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('72ca4595-0e24-435c-85ca-591852867130', 'CITY_OR_PARISH__0141', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('8623bf9c-8f9c-4b7c-b34d-9441d2791181', 'CITY_OR_PARISH__0142', 'COUNTY__0087', 'CURRENT', now(), 'SYSTEM'),
('8820e490-473b-4121-9b6b-9429134aad5c', 'CITY_OR_PARISH__0171', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('6d910148-55fa-484a-8474-f54c426f46d4', 'CITY_OR_PARISH__0184', 'COUNTY__0056', 'CURRENT', now(), 'SYSTEM'),
('ad3a42bb-6470-42c3-8813-2181a4700694', 'CITY_OR_PARISH__0191', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('0a8d1fed-3aba-4a28-8c0f-e9c4452adf6a', 'CITY_OR_PARISH__0198', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('c94f3346-b99d-44b3-9064-8ce1b6c2f341', 'CITY_OR_PARISH__0205', 'COUNTY__0039', 'CURRENT', now(), 'SYSTEM'),
('aab1216c-cfe7-430e-a4ef-f7be02a705b9', 'CITY_OR_PARISH__0214', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('18b1a65f-23df-4ba9-a26f-38efb189fde3', 'CITY_OR_PARISH__0245', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('dadeba64-6439-455f-bc6f-4523d157ef2e', 'CITY_OR_PARISH__0247', 'COUNTY__0050', 'CURRENT', now(), 'SYSTEM'),
('3e5822b4-8d32-4433-959c-dd6c68d1e233', 'CITY_OR_PARISH__0251', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('52ae279d-f03f-4ab2-a090-3aabc7085cb5', 'CITY_OR_PARISH__0255', 'COUNTY__0052', 'CURRENT', now(), 'SYSTEM'),
('d9ddade6-f5d9-404a-8f1e-b291dffef964', 'CITY_OR_PARISH__0272', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('3b941248-7477-4c60-951c-ac51cad8e943', 'CITY_OR_PARISH__0283', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('e1d99030-cc5c-4af6-b678-3287b2cb40fd', 'CITY_OR_PARISH__0284', 'COUNTY__0064', 'CURRENT', now(), 'SYSTEM'),
('029ea284-64d3-4693-80fe-44b064b497f8', 'CITY_OR_PARISH__0291', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('2a9b0f25-985f-43b8-800a-103eda77c121', 'CITY_OR_PARISH__0293', 'COUNTY__0071', 'CURRENT', now(), 'SYSTEM'),
('75c2ab27-4f6a-4e49-9de1-051476ae0c6e', 'CITY_OR_PARISH__0296', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('7dce1c48-1e2a-4fbe-8058-f05d96018980', 'CITY_OR_PARISH__0303', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('b19cb18c-5915-4c1f-be84-44e0d8b0f07a', 'CITY_OR_PARISH__0305', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('80fcf721-7eed-47c3-b747-afd3b411f15e', 'CITY_OR_PARISH__0317', 'COUNTY__0071', 'CURRENT', now(), 'SYSTEM'),
('b418e03a-66b0-4908-b0ea-080e9d9c8300', 'CITY_OR_PARISH__0321', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('182f2fa1-e677-4b3c-bd0a-d5cfd4ef6f35', 'CITY_OR_PARISH__0338', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('5c9112ab-7b28-4ee0-8a89-fe37ea89fc24', 'CITY_OR_PARISH__0353', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('b88abd6a-3003-4752-9759-77b8b7eeff35', 'CITY_OR_PARISH__0424', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('98c0c32f-ce1b-4e3e-9dc1-f9a889f35a8f', 'CITY_OR_PARISH__0430', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('f7b492f7-ffae-4390-bd81-8666aa1316ae', 'CITY_OR_PARISH__0431', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('5315c9c0-a95a-4525-a10a-4684a4f091f9', 'CITY_OR_PARISH__0432', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('61482ad7-a807-4144-9bab-e7cf85d8fd10', 'CITY_OR_PARISH__0441', 'COUNTY__0056', 'CURRENT', now(), 'SYSTEM'),
('5626ab11-183d-4e58-b3c8-2bbb431ad23d', 'CITY_OR_PARISH__0442', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('5f8dec2a-4d80-4ad7-94aa-f1f03927decd', 'CITY_OR_PARISH__0446', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('95193003-4ef2-43a1-ae01-df8682e0b105', 'CITY_OR_PARISH__0478', 'COUNTY__0074', 'CURRENT', now(), 'SYSTEM'),
('9309da25-88fc-460c-877c-882b08a9eab5', 'CITY_OR_PARISH__0480', 'COUNTY__0084', 'CURRENT', now(), 'SYSTEM'),
('6d222d4a-5ff3-420c-8525-515cbf6ecfdd', 'CITY_OR_PARISH__0486', 'COUNTY__0050', 'CURRENT', now(), 'SYSTEM'),
('b5d8d311-da80-4b38-bcb3-612af40d97a2', 'CITY_OR_PARISH__0502', 'COUNTY__0071', 'CURRENT', now(), 'SYSTEM'),
('4ffbd3d3-bee0-4e0d-be19-ba7348efc261', 'CITY_OR_PARISH__0511', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('a9fb7494-0634-4610-b719-e327c693d41c', 'CITY_OR_PARISH__0514', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('31ce6715-0d2b-42b8-aacd-b5abcf12bae5', 'CITY_OR_PARISH__0528', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('6c40fb6e-47fc-4dc5-ad50-a7c5393e64ad', 'CITY_OR_PARISH__0557', 'COUNTY__0081', 'CURRENT', now(), 'SYSTEM'),
('52677644-f8d4-40a5-ae04-06d0e7c47760', 'CITY_OR_PARISH__0567', 'COUNTY__0052', 'CURRENT', now(), 'SYSTEM'),
('f50d03bd-2157-487c-846d-ac8810b4c963', 'CITY_OR_PARISH__0586', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('994fd739-eb1b-45e2-a9ef-962447a16ba1', 'CITY_OR_PARISH__0615', 'COUNTY__0084', 'CURRENT', now(), 'SYSTEM'),
('7a44c71e-786a-483e-8656-4375a26c40bf', 'CITY_OR_PARISH__0618', 'COUNTY__0050', 'CURRENT', now(), 'SYSTEM'),
('574ba473-1064-4af5-a98b-b7c1089c2e94', 'CITY_OR_PARISH__0622', 'COUNTY__0064', 'CURRENT', now(), 'SYSTEM'),
('603b403e-af0b-4fcf-a417-76f001ec9cb0', 'CITY_OR_PARISH__0624', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('860dbfa4-a599-47f9-8f56-a278736d35b6', 'CITY_OR_PARISH__0638', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('6d3a3ac9-89ca-4674-9dec-e6399a1c8748', 'CITY_OR_PARISH__0651', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('251f0de2-1a40-48ad-81b1-21332f3bdf9d', 'CITY_OR_PARISH__0653', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('087b4690-7c2e-43e6-b1c0-171c6a7bd51f', 'CITY_OR_PARISH__0661', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('db0d1a6a-13fc-4211-aa0c-6e2610cb13b3', 'CITY_OR_PARISH__0663', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('57c1c769-52c5-424e-a85c-b5c539fc7cfa', 'CITY_OR_PARISH__0668', 'COUNTY__0071', 'CURRENT', now(), 'SYSTEM'),
('bba11074-95e6-442b-932c-7664529b0046', 'CITY_OR_PARISH__0689', 'COUNTY__0074', 'CURRENT', now(), 'SYSTEM'),
('d0ed9556-cb2a-4b69-9fe5-c7acf0b88c88', 'CITY_OR_PARISH__0698', 'COUNTY__0087', 'CURRENT', now(), 'SYSTEM'),
('1575f0b3-9283-44bc-8537-e7fdc4c18455', 'CITY_OR_PARISH__0708', 'COUNTY__0064', 'CURRENT', now(), 'SYSTEM'),
('ba817423-504c-4fca-a8b5-934b8b572369', 'CITY_OR_PARISH__0712', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('85f1a122-4609-4cdf-9bef-8736a7614ca3', 'CITY_OR_PARISH__0714', 'COUNTY__0074', 'CURRENT', now(), 'SYSTEM'),
('387b4f90-2d20-4254-9ef1-00dff73d3c9b', 'CITY_OR_PARISH__0719', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('96eb51b7-28e7-4dac-ab4d-843d5b33d1b1', 'CITY_OR_PARISH__0725', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('0e7c6f84-7ecb-49e1-94b0-ef776232b627', 'CITY_OR_PARISH__0732', 'COUNTY__0087', 'CURRENT', now(), 'SYSTEM'),
('c2ad457b-77d1-430d-8774-afde3159c6bc', 'CITY_OR_PARISH__0735', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('b1d79855-7b35-4c3c-8159-4ba660c99baf', 'CITY_OR_PARISH__0784', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('0b1357b4-52f5-4c75-958d-21f0e034d5df', 'CITY_OR_PARISH__0792', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('96aae119-fb7f-4c57-a78c-918c61a46fe7', 'CITY_OR_PARISH__0793', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('8b803dd5-0aa4-4ebd-996f-ef3636736f7b', 'CITY_OR_PARISH__0796', 'COUNTY__0079', 'CURRENT', now(), 'SYSTEM'),
('79b88ef6-78e5-4c70-ba36-21cb27278c01', 'CITY_OR_PARISH__0803', 'COUNTY__0045', 'CURRENT', now(), 'SYSTEM'),
('dc4aba91-4694-444a-b94a-5014c415a612', 'CITY_OR_PARISH__0809', 'COUNTY__0068', 'CURRENT', now(), 'SYSTEM'),
('dec9bbef-134d-4f0d-85fa-436f44951460', 'CITY_OR_PARISH__0824', 'COUNTY__0081', 'CURRENT', now(), 'SYSTEM'),
('1e3ecf07-b3c4-4633-a428-4281abcc7943', 'CITY_OR_PARISH__0834', 'COUNTY__0052', 'CURRENT', now(), 'SYSTEM'),
('447419af-bfe4-4568-98db-ae49f26fe2e1', 'CITY_OR_PARISH__0855', 'COUNTY__0081', 'CURRENT', now(), 'SYSTEM'),
('dd8b5370-f8b0-4d2c-86ea-f7bc4bd123eb', 'CITY_OR_PARISH__0890', 'COUNTY__0037', 'CURRENT', now(), 'SYSTEM'),
('3a3072af-0c6c-4115-944f-6cea9b9f8f71', 'CITY_OR_PARISH__0897', 'COUNTY__0084', 'CURRENT', now(), 'SYSTEM'),
('e64a1da2-12b4-4582-a03a-7cb183c0c902', 'CITY_OR_PARISH__0899', 'COUNTY__0084', 'CURRENT', now(), 'SYSTEM'),
('b2d4fde4-4a7a-4f70-a89f-ffa22cb5383a', 'CITY_OR_PARISH__0901', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('5b3171e9-ab3c-46f3-bb41-1f16d6a4c83f', 'CITY_OR_PARISH__0903', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM'),
('ea9f7731-bc89-4825-9e9f-44b5d9a816b0', 'CITY_OR_PARISH__0907', 'COUNTY__0056', 'CURRENT', now(), 'SYSTEM'),
('24c08f90-f48b-447d-8991-a17dc7dd50da', 'CITY_OR_PARISH__0917', 'COUNTY__0087', 'CURRENT', now(), 'SYSTEM'),
('bb7d7b0e-7ceb-4237-9bf9-16bce2ce5047', 'CITY_OR_PARISH__0919', 'COUNTY__0087', 'CURRENT', now(), 'SYSTEM'),
('812a57f1-b686-4c03-a09c-7f6b792fbaab', 'CITY_OR_PARISH__0928', 'COUNTY__0060', 'CURRENT', now(), 'SYSTEM');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment