Skip to content

Commit

Permalink
Temporarily comment out bot endpoints to reduce size below limit
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 19, 2024
1 parent 15ead26 commit e2a4f92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions backend/canisters/user_index/impl/src/model/user_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub struct Bot {
}

impl Bot {
#[allow(dead_code)]
pub fn to_match(&self, id: UserId, score: u32) -> BotMatch {
BotMatch {
id,
Expand Down Expand Up @@ -375,6 +376,7 @@ impl UserMap {
self.users.values()
}

#[allow(dead_code)]
pub fn iter_bots(&self) -> impl Iterator<Item = (&UserId, &Bot)> {
self.bots.iter()
}
Expand Down Expand Up @@ -472,6 +474,7 @@ impl UserMap {

// TODO - When a bot is added/removed to/from a community or group the user_index should be notified
// so it can maintain a popularity score and use this for ordering results
#[allow(dead_code)]
pub fn search_bots(&self, search_term: Option<String>, page_index: u32, page_size: u8) -> (Vec<BotMatch>, u32) {
let query = search_term.map(Query::parse);

Expand Down
4 changes: 2 additions & 2 deletions backend/canisters/user_index/impl/src/queries/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pub mod bot_updates;
// pub mod bot_updates;
pub mod c2c_lookup_user;
pub mod check_username;
pub mod chit_leaderboard;
pub mod current_user;
pub mod diamond_membership_fees;
pub mod explore_bots;
// pub mod explore_bots;
pub mod external_achievements;
pub mod http_request;
pub mod platform_moderators;
Expand Down
2 changes: 1 addition & 1 deletion backend/integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use types::{CanisterId, Cycles, UserId};

mod airdrop_bot_tests;
mod batched_summary_and_event_tests;
mod bot_tests;
// mod bot_tests;
mod change_group_role_tests;
mod chit_tests;
mod client;
Expand Down

0 comments on commit e2a4f92

Please sign in to comment.