Skip to content

Commit

Permalink
Re-run member migration to stable member using reduced size format (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Dec 4, 2024
1 parent 5a0f95a commit 7156156
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/canisters/community/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions backend/canisters/group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion backend/canisters/group/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ struct Data {
expiring_member_actions: ExpiringMemberActions,
user_cache: UserCache,
user_event_sync_queue: GroupedTimerJobQueue<UserEventBatch>,
#[serde(default)]
#[serde(skip_deserializing)]
members_migrated_to_stable_memory: bool,
stable_memory_keys_to_garbage_collect: Vec<KeyPrefix>,
}
Expand Down
4 changes: 2 additions & 2 deletions backend/libraries/group_chat_core/src/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ pub struct GroupMembers {
suspended: BTreeSet<UserId>,
updates: BTreeSet<(TimestampMillis, UserId, MemberUpdate)>,
latest_update_removed: TimestampMillis,
#[serde(default)]
#[serde(skip_deserializing)]
migrate_to_stable_memory_queue: VecDeque<UserId>,
#[serde(default)]
#[serde(skip_deserializing)]
migration_to_stable_memory_complete: bool,
}

Expand Down

0 comments on commit 7156156

Please sign in to comment.