diff --git a/backend/canisters/community/CHANGELOG.md b/backend/canisters/community/CHANGELOG.md index aa0b13ffde..e80deb4b29 100644 --- a/backend/canisters/community/CHANGELOG.md +++ b/backend/canisters/community/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.985](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.985-community)] - 2023-12-19 + ### Added - Support getting batches of summary updates via LocalUserIndex ([#4983](https://github.com/open-chat-labs/open-chat/pull/4983)) diff --git a/backend/canisters/community/impl/src/lib.rs b/backend/canisters/community/impl/src/lib.rs index fe1fcf8fd5..4dcf8e48da 100644 --- a/backend/canisters/community/impl/src/lib.rs +++ b/backend/canisters/community/impl/src/lib.rs @@ -274,7 +274,6 @@ struct Data { local_group_index_canister_id: CanisterId, notifications_canister_id: CanisterId, proposals_bot_user_id: UserId, - #[serde(default = "escrow_canister_id")] escrow_canister_id: CanisterId, date_created: TimestampMillis, members: CommunityMembers, @@ -298,10 +297,6 @@ struct Data { pub total_payment_receipts: PaymentReceipts, } -fn escrow_canister_id() -> CanisterId { - CanisterId::from_text("s4yi7-yiaaa-aaaar-qacpq-cai").unwrap() -} - impl Data { #[allow(clippy::too_many_arguments)] fn new( diff --git a/backend/canisters/community/impl/src/lifecycle/post_upgrade.rs b/backend/canisters/community/impl/src/lifecycle/post_upgrade.rs index fee27995b9..335156fb4e 100644 --- a/backend/canisters/community/impl/src/lifecycle/post_upgrade.rs +++ b/backend/canisters/community/impl/src/lifecycle/post_upgrade.rs @@ -1,18 +1,14 @@ -use crate::activity_notifications::handle_activity_notification; use crate::jobs::import_groups::finalize_group_import; use crate::lifecycle::{init_env, init_state}; use crate::memory::get_upgrades_memory; -use crate::updates::c2c_join_channel::join_channel_unchecked; -use crate::{mutate_state, read_state, Data}; +use crate::{read_state, Data}; use canister_logger::LogEntry; use canister_tracing_macros::trace; use community_canister::post_upgrade::Args; use ic_cdk_macros::post_upgrade; use instruction_counts_log::InstructionCountFunctionId; use stable_memory::get_reader; -use std::time::Duration; use tracing::info; -use types::{AccessGate, CanisterId, UserId}; #[post_upgrade] #[trace] @@ -41,52 +37,4 @@ fn post_upgrade(args: Args) { .data .record_instructions_count(InstructionCountFunctionId::PostUpgrade, now) }); - - ic_cdk_timers::set_timer(Duration::ZERO, join_members_to_diamond_gated_channels); -} - -fn join_members_to_diamond_gated_channels() { - read_state(|state| { - if state - .data - .channels - .iter() - .any(|c| c.chat.is_public.value && matches!(c.chat.gate.value, Some(AccessGate::DiamondMember))) - { - let user_ids: Vec<_> = state.data.members.iter().map(|m| m.user_id).collect(); - - ic_cdk::spawn(join_members_to_diamond_gated_channels_async( - state.data.local_user_index_canister_id, - user_ids, - )); - } - }); -} - -async fn join_members_to_diamond_gated_channels_async(local_user_index_canister_id: CanisterId, user_ids: Vec) { - if let Ok(local_user_index_canister::c2c_diamond_membership_expiry_dates::Response::Success(expiry_dates)) = - local_user_index_canister_c2c_client::c2c_diamond_membership_expiry_dates( - local_user_index_canister_id, - &local_user_index_canister::c2c_diamond_membership_expiry_dates::Args { user_ids }, - ) - .await - { - mutate_state(|state| { - let now = state.env.now(); - - for channel in state - .data - .channels - .iter_mut() - .filter(|c| c.chat.is_public.value && matches!(c.chat.gate.value, Some(AccessGate::DiamondMember))) - { - for m in state.data.members.iter_mut() { - if !m.channels.contains(&channel.id) && expiry_dates.get(&m.user_id).copied() > Some(now) { - join_channel_unchecked(channel, m, true, now); - } - } - } - handle_activity_notification(state); - }) - } } diff --git a/backend/canisters/cycles_dispenser/CHANGELOG.md b/backend/canisters/cycles_dispenser/CHANGELOG.md index 275b13eb3c..4d2ebc36b3 100644 --- a/backend/canisters/cycles_dispenser/CHANGELOG.md +++ b/backend/canisters/cycles_dispenser/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.980](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.980-cycles_dispenser)] - 2023-12-19 + ### Changed - Avoid reseeding random number generator after each upgrade ([#4755](https://github.com/open-chat-labs/open-chat/pull/4755)) diff --git a/backend/canisters/cycles_dispenser/impl/src/lib.rs b/backend/canisters/cycles_dispenser/impl/src/lib.rs index c726fee943..e6b588ae74 100644 --- a/backend/canisters/cycles_dispenser/impl/src/lib.rs +++ b/backend/canisters/cycles_dispenser/impl/src/lib.rs @@ -70,7 +70,6 @@ struct Data { pub ledger_canister: CanisterId, pub cycles_minting_canister: CanisterId, pub cycles_top_up_pending_notification: Option, - #[serde(default)] pub rng_seed: [u8; 32], pub test_mode: bool, } diff --git a/backend/canisters/group/CHANGELOG.md b/backend/canisters/group/CHANGELOG.md index d71ae1564d..d155c15d7a 100644 --- a/backend/canisters/group/CHANGELOG.md +++ b/backend/canisters/group/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.986](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.986-group)] - 2023-12-19 + ### Added - Support getting batches of summary updates via LocalUserIndex ([#4983](https://github.com/open-chat-labs/open-chat/pull/4983)) diff --git a/backend/canisters/group/impl/src/lib.rs b/backend/canisters/group/impl/src/lib.rs index cac1c16c36..1cb8aa79b7 100644 --- a/backend/canisters/group/impl/src/lib.rs +++ b/backend/canisters/group/impl/src/lib.rs @@ -351,7 +351,6 @@ struct Data { pub local_user_index_canister_id: CanisterId, pub notifications_canister_id: CanisterId, pub proposals_bot_user_id: UserId, - #[serde(default = "escrow_canister_id")] pub escrow_canister_id: CanisterId, pub invite_code: Option, pub invite_code_enabled: bool, @@ -371,10 +370,6 @@ struct Data { pub total_payment_receipts: PaymentReceipts, } -fn escrow_canister_id() -> CanisterId { - CanisterId::from_text("s4yi7-yiaaa-aaaar-qacpq-cai").unwrap() -} - fn init_instruction_counts_log() -> InstructionCountsLog { InstructionCountsLog::init(get_instruction_counts_index_memory(), get_instruction_counts_data_memory()) } diff --git a/backend/canisters/group_index/CHANGELOG.md b/backend/canisters/group_index/CHANGELOG.md index 7fc486633a..92027eb632 100644 --- a/backend/canisters/group_index/CHANGELOG.md +++ b/backend/canisters/group_index/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.979](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.979-group_index)] - 2023-12-19 + ### Changed - Add `escrow_canister_id` to LocalGroupIndex canister init args ([#4897](https://github.com/open-chat-labs/open-chat/pull/4897)) diff --git a/backend/canisters/group_index/api/src/updates/c2c_create_community.rs b/backend/canisters/group_index/api/src/updates/c2c_create_community.rs index 86d166d262..e20c482f47 100644 --- a/backend/canisters/group_index/api/src/updates/c2c_create_community.rs +++ b/backend/canisters/group_index/api/src/updates/c2c_create_community.rs @@ -1,6 +1,6 @@ use candid::CandidType; use serde::{Deserialize, Serialize}; -use types::{local_user_index_canister_id, AccessGate, CanisterId, CommunityId, CommunityPermissions, Document, Rules}; +use types::{AccessGate, CanisterId, CommunityId, CommunityPermissions, Document, Rules}; #[derive(CandidType, Serialize, Deserialize, Debug)] pub struct Args { @@ -27,22 +27,7 @@ pub enum Response { } #[derive(CandidType, Serialize, Deserialize, Debug)] -#[serde(from = "SuccessResultPrevious")] pub struct SuccessResult { pub community_id: CommunityId, pub local_user_index_canister_id: CanisterId, } - -#[derive(CandidType, Serialize, Deserialize, Debug)] -pub struct SuccessResultPrevious { - pub community_id: CommunityId, -} - -impl From for SuccessResult { - fn from(value: SuccessResultPrevious) -> Self { - SuccessResult { - community_id: value.community_id, - local_user_index_canister_id: local_user_index_canister_id(value.community_id.into()), - } - } -} diff --git a/backend/canisters/group_index/api/src/updates/c2c_create_group.rs b/backend/canisters/group_index/api/src/updates/c2c_create_group.rs index f166f9f0ca..2898dcb214 100644 --- a/backend/canisters/group_index/api/src/updates/c2c_create_group.rs +++ b/backend/canisters/group_index/api/src/updates/c2c_create_group.rs @@ -1,8 +1,6 @@ use candid::CandidType; use serde::{Deserialize, Serialize}; -use types::{ - local_user_index_canister_id, AccessGate, CanisterId, ChatId, Document, GroupPermissions, GroupSubtype, Milliseconds, Rules, -}; +use types::{AccessGate, CanisterId, ChatId, Document, GroupPermissions, GroupSubtype, Milliseconds, Rules}; #[derive(CandidType, Serialize, Deserialize, Debug)] pub struct Args { @@ -28,22 +26,7 @@ pub enum Response { } #[derive(CandidType, Serialize, Deserialize, Debug)] -#[serde(from = "SuccessResultPrevious")] pub struct SuccessResult { pub chat_id: ChatId, pub local_user_index_canister_id: CanisterId, } - -#[derive(CandidType, Serialize, Deserialize, Debug)] -pub struct SuccessResultPrevious { - pub chat_id: ChatId, -} - -impl From for SuccessResult { - fn from(value: SuccessResultPrevious) -> Self { - SuccessResult { - chat_id: value.chat_id, - local_user_index_canister_id: local_user_index_canister_id(value.chat_id.into()), - } - } -} diff --git a/backend/canisters/group_index/impl/src/lib.rs b/backend/canisters/group_index/impl/src/lib.rs index 70f602c384..6313b3a22d 100644 --- a/backend/canisters/group_index/impl/src/lib.rs +++ b/backend/canisters/group_index/impl/src/lib.rs @@ -126,7 +126,6 @@ struct Data { pub user_index_canister_id: CanisterId, pub cycles_dispenser_canister_id: CanisterId, pub proposals_bot_user_id: UserId, - #[serde(default = "escrow_canister_id")] pub escrow_canister_id: CanisterId, pub canisters_requiring_upgrade: CanistersRequiringUpgrade, pub test_mode: bool, @@ -138,10 +137,6 @@ struct Data { pub rng_seed: [u8; 32], } -fn escrow_canister_id() -> CanisterId { - CanisterId::from_text("s4yi7-yiaaa-aaaar-qacpq-cai").unwrap() -} - impl Data { #[allow(clippy::too_many_arguments)] fn new( diff --git a/backend/canisters/group_index/impl/src/model/cached_hot_groups.rs b/backend/canisters/group_index/impl/src/model/cached_hot_groups.rs index 8167b20dbd..7fd27443ce 100644 --- a/backend/canisters/group_index/impl/src/model/cached_hot_groups.rs +++ b/backend/canisters/group_index/impl/src/model/cached_hot_groups.rs @@ -2,8 +2,8 @@ use serde::{Deserialize, Serialize}; use std::collections::HashSet; use tracing::trace; use types::{ - local_user_index_canister_id, AccessGate, CanisterId, ChatId, EventIndex, EventWrapper, Message, MessageIndex, - Milliseconds, PublicGroupSummary, TimestampMillis, + AccessGate, CanisterId, ChatId, EventIndex, EventWrapper, Message, MessageIndex, Milliseconds, PublicGroupSummary, + TimestampMillis, }; #[derive(Serialize, Deserialize, Default)] @@ -37,7 +37,6 @@ impl CachedHotGroups { } #[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(from = "CachedPublicGroupSummaryPrevious")] pub struct CachedPublicGroupSummary { pub chat_id: ChatId, pub local_user_index_canister_id: CanisterId, @@ -51,36 +50,6 @@ pub struct CachedPublicGroupSummary { pub gate: Option, } -#[derive(Serialize, Deserialize, Clone, Debug)] -pub struct CachedPublicGroupSummaryPrevious { - pub chat_id: ChatId, - pub last_updated: TimestampMillis, - pub latest_message: Option>, - pub latest_event_index: EventIndex, - pub latest_message_index: Option, - pub participant_count: u32, - pub events_ttl: Option, - pub events_ttl_last_updated: TimestampMillis, - pub gate: Option, -} - -impl From for CachedPublicGroupSummary { - fn from(value: CachedPublicGroupSummaryPrevious) -> Self { - CachedPublicGroupSummary { - chat_id: value.chat_id, - local_user_index_canister_id: local_user_index_canister_id(value.chat_id.into()), - last_updated: value.last_updated, - latest_message: value.latest_message, - latest_event_index: value.latest_event_index, - latest_message_index: value.latest_message_index, - participant_count: value.participant_count, - events_ttl: value.events_ttl, - events_ttl_last_updated: value.events_ttl_last_updated, - gate: value.gate, - } - } -} - impl From for CachedPublicGroupSummary { fn from(summary: PublicGroupSummary) -> Self { CachedPublicGroupSummary { diff --git a/backend/canisters/local_group_index/CHANGELOG.md b/backend/canisters/local_group_index/CHANGELOG.md index 2298a47c21..a85257652c 100644 --- a/backend/canisters/local_group_index/CHANGELOG.md +++ b/backend/canisters/local_group_index/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.978](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.978-local_group_index)] - 2023-12-19 + ### Changed - Add `escrow_canister_id` to Group & Community canister init args ([#4897](https://github.com/open-chat-labs/open-chat/pull/4897)) diff --git a/backend/canisters/local_group_index/api/src/updates/c2c_create_community.rs b/backend/canisters/local_group_index/api/src/updates/c2c_create_community.rs index fa56b94c0a..11a4cb3f80 100644 --- a/backend/canisters/local_group_index/api/src/updates/c2c_create_community.rs +++ b/backend/canisters/local_group_index/api/src/updates/c2c_create_community.rs @@ -1,9 +1,6 @@ use candid::Principal; use serde::{Deserialize, Serialize}; -use types::{ - local_user_index_canister_id, AccessGate, CanisterId, CommunityId, CommunityPermissions, Document, Rules, SourceGroup, - UserId, -}; +use types::{AccessGate, CanisterId, CommunityId, CommunityPermissions, Document, Rules, SourceGroup, UserId}; #[derive(Serialize, Deserialize, Debug)] pub struct Args { @@ -31,22 +28,7 @@ pub enum Response { } #[derive(Serialize, Deserialize, Debug)] -#[serde(from = "SuccessResultPrevious")] pub struct SuccessResult { pub community_id: CommunityId, pub local_user_index_canister_id: CanisterId, } - -#[derive(Serialize, Deserialize, Debug)] -pub struct SuccessResultPrevious { - pub community_id: CommunityId, -} - -impl From for SuccessResult { - fn from(value: SuccessResultPrevious) -> Self { - SuccessResult { - community_id: value.community_id, - local_user_index_canister_id: local_user_index_canister_id(value.community_id.into()), - } - } -} diff --git a/backend/canisters/local_group_index/api/src/updates/c2c_create_group.rs b/backend/canisters/local_group_index/api/src/updates/c2c_create_group.rs index 61f0b4bca5..2a8bf5612d 100644 --- a/backend/canisters/local_group_index/api/src/updates/c2c_create_group.rs +++ b/backend/canisters/local_group_index/api/src/updates/c2c_create_group.rs @@ -1,9 +1,6 @@ use candid::{CandidType, Principal}; use serde::{Deserialize, Serialize}; -use types::{ - local_user_index_canister_id, AccessGate, CanisterId, ChatId, Document, GroupPermissions, GroupSubtype, Milliseconds, - Rules, UserId, -}; +use types::{AccessGate, CanisterId, ChatId, Document, GroupPermissions, GroupSubtype, Milliseconds, Rules, UserId}; #[derive(CandidType, Serialize, Deserialize, Debug)] pub struct Args { @@ -33,17 +30,3 @@ pub struct SuccessResult { pub chat_id: ChatId, pub local_user_index_canister_id: CanisterId, } - -#[derive(CandidType, Serialize, Deserialize, Debug)] -pub struct SuccessResultPrevious { - pub chat_id: ChatId, -} - -impl From for SuccessResult { - fn from(value: SuccessResultPrevious) -> Self { - SuccessResult { - chat_id: value.chat_id, - local_user_index_canister_id: local_user_index_canister_id(value.chat_id.into()), - } - } -} diff --git a/backend/canisters/local_group_index/impl/src/lib.rs b/backend/canisters/local_group_index/impl/src/lib.rs index 84f9ef57b8..b584ce5dc5 100644 --- a/backend/canisters/local_group_index/impl/src/lib.rs +++ b/backend/canisters/local_group_index/impl/src/lib.rs @@ -115,7 +115,6 @@ struct Data { pub communities_requiring_upgrade: CanistersRequiringUpgrade, pub cycles_dispenser_canister_id: CanisterId, pub proposals_bot_user_id: UserId, - #[serde(default = "escrow_canister_id")] pub escrow_canister_id: CanisterId, pub canister_pool: canister::Pool, pub total_cycles_spent_on_canisters: Cycles, @@ -127,10 +126,6 @@ struct Data { pub rng_seed: [u8; 32], } -fn escrow_canister_id() -> CanisterId { - CanisterId::from_text("s4yi7-yiaaa-aaaar-qacpq-cai").unwrap() -} - impl Data { #[allow(clippy::too_many_arguments)] pub fn new( diff --git a/backend/canisters/local_user_index/CHANGELOG.md b/backend/canisters/local_user_index/CHANGELOG.md index f9eac9b352..7fe0237664 100644 --- a/backend/canisters/local_user_index/CHANGELOG.md +++ b/backend/canisters/local_user_index/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.976](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.976-local_user_index)] - 2023-12-19 + ### Added - Support getting batches of summary updates via LocalUserIndex ([#4983](https://github.com/open-chat-labs/open-chat/pull/4983)) diff --git a/backend/canisters/local_user_index/api/src/lib.rs b/backend/canisters/local_user_index/api/src/lib.rs index c7e0353a27..333649231f 100644 --- a/backend/canisters/local_user_index/api/src/lib.rs +++ b/backend/canisters/local_user_index/api/src/lib.rs @@ -2,9 +2,8 @@ use candid::{CandidType, Principal}; use serde::{Deserialize, Serialize}; use types::nns::CryptoAmount; use types::{ - local_user_index_canister_id, CanisterId, ChannelLatestMessageIndex, ChatId, CommunityId, Cryptocurrency, - DiamondMembershipPlanDuration, MessageContent, MessageIndex, PhoneNumber, ReferralType, SuspensionDuration, - TimestampMillis, UserId, + CanisterId, ChannelLatestMessageIndex, ChatId, CommunityId, Cryptocurrency, DiamondMembershipPlanDuration, MessageContent, + MessageIndex, PhoneNumber, ReferralType, SuspensionDuration, TimestampMillis, UserId, }; mod lifecycle; @@ -97,7 +96,6 @@ pub struct UserSuspended { } #[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(from = "UserJoinedGroupPrevious")] pub struct UserJoinedGroup { pub user_id: UserId, pub chat_id: ChatId, @@ -106,25 +104,6 @@ pub struct UserJoinedGroup { } #[derive(Serialize, Deserialize, Clone, Debug)] -pub struct UserJoinedGroupPrevious { - pub user_id: UserId, - pub chat_id: ChatId, - pub latest_message_index: Option, -} - -impl From for UserJoinedGroup { - fn from(value: UserJoinedGroupPrevious) -> Self { - UserJoinedGroup { - user_id: value.user_id, - chat_id: value.chat_id, - local_user_index_canister_id: local_user_index_canister_id(value.chat_id.into()), - latest_message_index: value.latest_message_index, - } - } -} - -#[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(from = "UserJoinedCommunityOrChannelPrevious")] pub struct UserJoinedCommunityOrChannel { pub user_id: UserId, pub community_id: CommunityId, @@ -132,24 +111,6 @@ pub struct UserJoinedCommunityOrChannel { pub channels: Vec, } -#[derive(Serialize, Deserialize, Clone, Debug)] -pub struct UserJoinedCommunityOrChannelPrevious { - pub user_id: UserId, - pub community_id: CommunityId, - pub channels: Vec, -} - -impl From for UserJoinedCommunityOrChannel { - fn from(value: UserJoinedCommunityOrChannelPrevious) -> Self { - UserJoinedCommunityOrChannel { - user_id: value.user_id, - community_id: value.community_id, - local_user_index_canister_id: local_user_index_canister_id(value.community_id.into()), - channels: value.channels, - } - } -} - #[derive(Serialize, Deserialize, Clone, Debug)] pub struct DiamondMembershipPaymentReceived { pub user_id: UserId, diff --git a/backend/canisters/local_user_index/impl/src/lib.rs b/backend/canisters/local_user_index/impl/src/lib.rs index ff68adbfd3..4547f55734 100644 --- a/backend/canisters/local_user_index/impl/src/lib.rs +++ b/backend/canisters/local_user_index/impl/src/lib.rs @@ -196,7 +196,6 @@ struct Data { pub notifications_canister_id: CanisterId, pub proposals_bot_canister_id: CanisterId, pub cycles_dispenser_canister_id: CanisterId, - #[serde(default = "escrow_canister_id")] pub escrow_canister_id: CanisterId, pub internet_identity_canister_id: CanisterId, pub canisters_requiring_upgrade: CanistersRequiringUpgrade, @@ -214,10 +213,6 @@ struct Data { pub rng_seed: [u8; 32], } -fn escrow_canister_id() -> CanisterId { - CanisterId::from_text("s4yi7-yiaaa-aaaar-qacpq-cai").unwrap() -} - #[derive(Serialize, Deserialize)] pub struct FailedMessageUsers { pub sender: UserId, diff --git a/backend/canisters/local_user_index/impl/src/model/global_user_map.rs b/backend/canisters/local_user_index/impl/src/model/global_user_map.rs index ce333f1d2e..7f0723039e 100644 --- a/backend/canisters/local_user_index/impl/src/model/global_user_map.rs +++ b/backend/canisters/local_user_index/impl/src/model/global_user_map.rs @@ -10,7 +10,6 @@ pub struct GlobalUserMap { principal_to_user_id: HashMap, platform_moderators: HashSet, bots: HashSet, - #[serde(default)] diamond_membership_expiry_dates: HashMap, } diff --git a/backend/canisters/market_maker/CHANGELOG.md b/backend/canisters/market_maker/CHANGELOG.md index 82a8638a57..8d38fe6fc7 100644 --- a/backend/canisters/market_maker/CHANGELOG.md +++ b/backend/canisters/market_maker/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.981](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.981-market_maker)] - 2023-12-19 + ### Changed - Use dynamic buffer size when reading from stable memory ([#4683](https://github.com/open-chat-labs/open-chat/pull/4683)) diff --git a/backend/canisters/market_maker/impl/src/lib.rs b/backend/canisters/market_maker/impl/src/lib.rs index 31229ecd68..9d314aa985 100644 --- a/backend/canisters/market_maker/impl/src/lib.rs +++ b/backend/canisters/market_maker/impl/src/lib.rs @@ -91,7 +91,6 @@ struct Data { pub orders_log: OrdersLog, pub my_open_orders: HashMap, pub market_makers_in_progress: HashMap, - #[serde(default)] pub rng_seed: [u8; 32], pub test_mode: bool, } diff --git a/backend/canisters/online_users/CHANGELOG.md b/backend/canisters/online_users/CHANGELOG.md index 154ad7268e..a9b91355c5 100644 --- a/backend/canisters/online_users/CHANGELOG.md +++ b/backend/canisters/online_users/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.982](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.982-online_users)] - 2023-12-19 + ### Changed - Use dynamic buffer size when reading from stable memory ([#4683](https://github.com/open-chat-labs/open-chat/pull/4683)) diff --git a/backend/canisters/online_users/impl/src/lib.rs b/backend/canisters/online_users/impl/src/lib.rs index ef6b94dc6a..fcb992fc0f 100644 --- a/backend/canisters/online_users/impl/src/lib.rs +++ b/backend/canisters/online_users/impl/src/lib.rs @@ -54,7 +54,6 @@ struct Data { pub cycles_dispenser_canister_id: CanisterId, pub mark_as_online_count: u64, pub cached_active_users: ActiveUsers, - #[serde(default)] pub rng_seed: [u8; 32], pub test_mode: bool, } diff --git a/backend/canisters/storage_bucket/CHANGELOG.md b/backend/canisters/storage_bucket/CHANGELOG.md index a29ecf845c..0bdf360bec 100644 --- a/backend/canisters/storage_bucket/CHANGELOG.md +++ b/backend/canisters/storage_bucket/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.984](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.984-storage_bucket)] - 2023-12-19 + ### Changed - Use dynamic buffer size when reading from stable memory ([#4683](https://github.com/open-chat-labs/open-chat/pull/4683)) diff --git a/backend/canisters/storage_bucket/impl/src/lib.rs b/backend/canisters/storage_bucket/impl/src/lib.rs index c16afd073f..c2b84c1688 100644 --- a/backend/canisters/storage_bucket/impl/src/lib.rs +++ b/backend/canisters/storage_bucket/impl/src/lib.rs @@ -77,7 +77,6 @@ struct Data { index_sync_state: IndexSyncState, created: TimestampMillis, freezing_limit: Timestamped>, - #[serde(default)] rng_seed: [u8; 32], test_mode: bool, } diff --git a/backend/canisters/storage_index/CHANGELOG.md b/backend/canisters/storage_index/CHANGELOG.md index 18c48fa764..e2e2f0d1bb 100644 --- a/backend/canisters/storage_index/CHANGELOG.md +++ b/backend/canisters/storage_index/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.983](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.983-storage_index)] - 2023-12-19 + ### Changed - Use dynamic buffer size when reading from stable memory ([#4683](https://github.com/open-chat-labs/open-chat/pull/4683)) diff --git a/backend/canisters/storage_index/impl/src/lib.rs b/backend/canisters/storage_index/impl/src/lib.rs index b5310279d6..70fac11094 100644 --- a/backend/canisters/storage_index/impl/src/lib.rs +++ b/backend/canisters/storage_index/impl/src/lib.rs @@ -96,7 +96,6 @@ struct Data { pub canisters_requiring_upgrade: CanistersRequiringUpgrade, pub total_cycles_spent_on_canisters: Cycles, pub cycles_dispenser_config: CyclesDispenserConfig, - #[serde(default)] pub rng_seed: [u8; 32], pub test_mode: bool, } diff --git a/backend/canisters/user_index/CHANGELOG.md b/backend/canisters/user_index/CHANGELOG.md index 5f7df3f698..72dd543fc4 100644 --- a/backend/canisters/user_index/CHANGELOG.md +++ b/backend/canisters/user_index/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [unreleased] +## [[2.0.977](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.977-user_index)] - 2023-12-19 + ### Changed - Some adjustments to modclub submissions ([#5000](https://github.com/open-chat-labs/open-chat/pull/5000)) diff --git a/canister_commit_ids.json b/canister_commit_ids.json index dfdf975f4b..56dccb44e0 100644 --- a/canister_commit_ids.json +++ b/canister_commit_ids.json @@ -1,20 +1,20 @@ { - "community": "8fc7321a630a859cfe7208fbe00319363d0f6dd4", - "cycles_dispenser": "496fd2aa54d194c29a7ba014ee1b6d7d1a2f9a00", - "group": "b898b4f27cb7941dfaeb4e71c830cc4875ad8032", - "group_index": "f61321c254e82bb07646160b9ca0fc5dd0a759ea", - "local_group_index": "bfb8dc5b93c36c34f21e88b52c36ad5d30b68e09", - "local_user_index": "f886c1630c5790e6518077d7b1fa8f85906f3fb2", - "market_maker": "9a6a38f86194b57dc8718c2a595ef4b00cf82d47", + "community": "d000cb13d031463e1c2938cf725e7102c98171b7", + "cycles_dispenser": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", + "group": "d000cb13d031463e1c2938cf725e7102c98171b7", + "group_index": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", + "local_group_index": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", + "local_user_index": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", + "market_maker": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", "neuron_controller": "70cd194427a9eb48972ae8924b6e8a6be74199f4", "notifications": "91512f09ac773c85622fa84a7ea602d4273dcc8b", "notifications_index": "91512f09ac773c85622fa84a7ea602d4273dcc8b", - "online_users": "9a6a38f86194b57dc8718c2a595ef4b00cf82d47", + "online_users": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa", "proposals_bot": "23c4e18dfa32ad868ebf3588bd821d7c0d68d008", "proposal_validation": "03647d5475bd4cb1b6299c5688e6d4f97928559a", "registry": "2ab7483426e2248c5de9d54ad7fd4765771cd917", - "storage_bucket": "5c4fb8d98e68053c6d93050dfafbd2dbb4c3c9b9", - "storage_index": "8426b83456957cdc997374c8a01d9b641d1d3d08", + "storage_bucket": "d000cb13d031463e1c2938cf725e7102c98171b7", + "storage_index": "d000cb13d031463e1c2938cf725e7102c98171b7", "user": "6343c6c2a37fcf3e500dcc2df7b2b678155f2fd2", - "user_index": "91512f09ac773c85622fa84a7ea602d4273dcc8b" + "user_index": "2914f73daa7a4d7b76cfbaf5b89b0df740443ffa" } diff --git a/upgrade_order.md b/upgrade_order.md index a30c736119..e69de29bb2 100644 --- a/upgrade_order.md +++ b/upgrade_order.md @@ -1,5 +0,0 @@ -Group/Community -> User/ProposalsBot - -Because User and ProposalsBot canisters now use the new `c2c_send_message` endpoint which need to be released first. - -UserIndex -> LocalUserIndex because `display_name` has been removed from `UserRegistered` event \ No newline at end of file