diff --git a/backend/canisters/community/CHANGELOG.md b/backend/canisters/community/CHANGELOG.md index a02c387bd4..d9ddfc41b5 100644 --- a/backend/canisters/community/CHANGELOG.md +++ b/backend/canisters/community/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Remove UserId from member map values since it's already in the keys ([#6945](https://github.com/open-chat-labs/open-chat/pull/6945)) - Disallow sending prize messages to threads ([#6960](https://github.com/open-chat-labs/open-chat/pull/6960)) +- Re-run member migration to stable memory using reduced size format ### Removed diff --git a/backend/canisters/group/CHANGELOG.md b/backend/canisters/group/CHANGELOG.md index 273fd25b8e..de6f8281a2 100644 --- a/backend/canisters/group/CHANGELOG.md +++ b/backend/canisters/group/CHANGELOG.md @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed +- Re-run member migration to stable memory using reduced size format + +## [[2.0.1491](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1491-group)] - 2024-12-03 + +### Changed + - Remove UserId from member map values since it's already in the keys ([#6945](https://github.com/open-chat-labs/open-chat/pull/6945)) - Disallow sending prize messages to threads ([#6960](https://github.com/open-chat-labs/open-chat/pull/6960)) diff --git a/backend/canisters/group/impl/src/lib.rs b/backend/canisters/group/impl/src/lib.rs index 81a657078a..7dda807411 100644 --- a/backend/canisters/group/impl/src/lib.rs +++ b/backend/canisters/group/impl/src/lib.rs @@ -471,7 +471,7 @@ struct Data { expiring_member_actions: ExpiringMemberActions, user_cache: UserCache, user_event_sync_queue: GroupedTimerJobQueue, - #[serde(default)] + #[serde(skip_deserializing)] members_migrated_to_stable_memory: bool, stable_memory_keys_to_garbage_collect: Vec, } diff --git a/backend/libraries/group_chat_core/src/members.rs b/backend/libraries/group_chat_core/src/members.rs index f381f70d87..be932e06ec 100644 --- a/backend/libraries/group_chat_core/src/members.rs +++ b/backend/libraries/group_chat_core/src/members.rs @@ -41,9 +41,9 @@ pub struct GroupMembers { suspended: BTreeSet, updates: BTreeSet<(TimestampMillis, UserId, MemberUpdate)>, latest_update_removed: TimestampMillis, - #[serde(default)] + #[serde(skip_deserializing)] migrate_to_stable_memory_queue: VecDeque, - #[serde(default)] + #[serde(skip_deserializing)] migration_to_stable_memory_complete: bool, }