Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(comms): update attachments fixture for removed organization channel type (#3680)

Eric Hayes48dba79ba6ed
diff --git a/rust/cloud-storage/comms_db_client/fixtures/attachments.sql b/rust/cloud-storage/comms_db_client/fixtures/attachments.sql
index 9dc9e417f9..936a21b180 100644
--- a/rust/cloud-storage/comms_db_client/fixtures/attachments.sql
+++ b/rust/cloud-storage/comms_db_client/fixtures/attachments.sql
@@ -2,7 +2,7 @@ INSERT INTO comms_channels (id, name, channel_type, org_id, owner_id)
VALUES ('11111111-1111-1111-1111-111111111111', 'private 1', 'private', NULL, 'user1'),
('22222222-2222-2222-2222-222222222222', NULL, 'direct_message', NULL, 'user3'),
('33333333-3333-3333-3333-333333333333', 'public channel', 'public', NULL, 'user5'),
- ('44444444-4444-4444-4444-444444444444', 'org channel', 'organization', 12345, 'user1'),
+ ('44444444-4444-4444-4444-444444444444', 'org channel', 'private', NULL, 'user1'),
('55555555-5555-5555-5555-555555555555', 'private 2', 'private', NULL, 'user2'),
('66666666-6666-6666-6666-666666666666', NULL, 'direct_message', NULL, 'user1');
diff --git a/rust/cloud-storage/comms_db_client/fixtures/mentions.sql b/rust/cloud-storage/comms_db_client/fixtures/mentions.sql
index c56ac7e8b4..bc63858651 100644
--- a/rust/cloud-storage/comms_db_client/fixtures/mentions.sql
+++ b/rust/cloud-storage/comms_db_client/fixtures/mentions.sql
@@ -1,6 +1,6 @@
INSERT INTO comms_channels (id, name, channel_type, org_id, owner_id)
VALUES ('11111111-1111-1111-1111-111111111111', 'Test Public Channel', 'public', NULL, 'owner1'),
- ('22222222-2222-2222-2222-222222222222', 'Test Organization Channel', 'organization', 1001, 'owner2'),
+ ('22222222-2222-2222-2222-222222222222', 'Test Organization Channel', 'private', NULL, 'owner2'),
('33333333-3333-3333-3333-333333333333', 'Test Private Channel', 'private', NULL, 'owner3');
INSERT INTO comms_channel_participants (channel_id, role, user_id)
diff --git a/rust/cloud-storage/comms_db_client/fixtures/mentions_extended.sql b/rust/cloud-storage/comms_db_client/fixtures/mentions_extended.sql
index b042fea5f3..6cecdc070b 100644
--- a/rust/cloud-storage/comms_db_client/fixtures/mentions_extended.sql
+++ b/rust/cloud-storage/comms_db_client/fixtures/mentions_extended.sql
@@ -1,7 +1,7 @@
-- Channels for testing
INSERT INTO comms_channels (id, name, channel_type, org_id, owner_id)
VALUES ('11111111-1111-1111-1111-111111111111', 'Test Public Channel', 'public', NULL, 'owner1'),
- ('22222222-2222-2222-2222-222222222222', 'Test Organization Channel', 'organization', 1001, 'owner2'),
+ ('22222222-2222-2222-2222-222222222222', 'Test Organization Channel', 'private', NULL, 'owner2'),
('33333333-3333-3333-3333-333333333333', 'Test Private Channel', 'private', NULL, 'owner3'),
('44444444-4444-4444-4444-444444444444', 'Channel With Deleted Message', 'public', NULL, 'owner4'),
('55555555-5555-5555-5555-555555555555', 'Channel With Multiple Mentions', 'public', NULL, 'owner5');