Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Temporarily comment out bot endpoints to reduce size below limit (#7100)" #7101

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions backend/canisters/user_index/impl/src/model/user_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub struct Bot {
}

impl Bot {
#[allow(dead_code)]
pub fn to_match(&self, id: UserId, score: u32) -> BotMatch {
BotMatch {
id,
Expand Down Expand Up @@ -376,7 +375,6 @@ 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 @@ -474,7 +472,6 @@ 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
Loading