Skip to content

Commit

Permalink
Remove deprecated candid endpoints (#6396)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Sep 16, 2024
1 parent e31b6c4 commit f9279bf
Show file tree
Hide file tree
Showing 72 changed files with 78 additions and 1,117 deletions.
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions backend/canisters/group_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Add `ReferredByMember` access gate ([#6377](https://github.com/open-chat-labs/open-chat/pull/6377))

### Removed

- Remove deprecated candid endpoints ([#6396](https://github.com/open-chat-labs/open-chat/pull/6396))

## [[2.0.1332](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1332-group_index)] - 2024-09-06

### Added
Expand Down
1 change: 0 additions & 1 deletion backend/canisters/group_index/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"

[dependencies]
candid = { workspace = true }
candid_gen = { path = "../../../libraries/candid_gen" }
human_readable = { path = "../../../libraries/human_readable" }
serde = { workspace = true }
serde_bytes = { workspace = true }
Expand Down
291 changes: 0 additions & 291 deletions backend/canisters/group_index/api/can.did

This file was deleted.

24 changes: 0 additions & 24 deletions backend/canisters/group_index/api/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
use candid_gen::generate_candid_method;
use std::env;
use ts_export::generate_ts_method;

#[allow(deprecated)]
fn main() {
generate_candid_method!(group_index, active_groups, query);
generate_candid_method!(group_index, explore_communities, query);
generate_candid_method!(group_index, explore_groups, query);
generate_candid_method!(group_index, lookup_channel_by_group_id, query);
generate_candid_method!(group_index, recommended_groups, query);
generate_candid_method!(group_index, search, query);

generate_candid_method!(group_index, add_hot_group_exclusion, update);
generate_candid_method!(group_index, delete_frozen_group, update);
generate_candid_method!(group_index, freeze_community, update);
generate_candid_method!(group_index, freeze_group, update);
generate_candid_method!(group_index, mark_local_group_index_full, update);
generate_candid_method!(group_index, remove_hot_group_exclusion, update);
generate_candid_method!(group_index, set_community_moderation_flags, update);
generate_candid_method!(group_index, set_community_upgrade_concurrency, update);
generate_candid_method!(group_index, set_group_upgrade_concurrency, update);
generate_candid_method!(group_index, unfreeze_community, update);
generate_candid_method!(group_index, unfreeze_group, update);

let directory = env::current_dir().unwrap().join("tsBindings/groupIndex");
if directory.exists() {
std::fs::remove_dir_all(&directory).unwrap();
Expand All @@ -46,7 +25,4 @@ fn main() {
generate_ts_method!(group_index, set_group_upgrade_concurrency);
generate_ts_method!(group_index, unfreeze_community);
generate_ts_method!(group_index, unfreeze_group);

candid::export_service!();
std::print!("{}", __export_service());
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{read_state, RuntimeState};
use canister_api_macros::query;
use group_index_canister::active_groups::{Response::*, *};

#[query(candid = true, msgpack = true)]
#[query(msgpack = true)]
fn active_groups(args: Args) -> Response {
read_state(|state| active_groups_impl(args, state))
}
Expand Down
Loading

0 comments on commit f9279bf

Please sign in to comment.