From 9bad75e7c29fa05ff8279d454572b9db63346b83 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 7 Nov 2023 00:23:19 +0100 Subject: [PATCH] Temporarily removed server stats --- bot/src/bot_graphql/graphql/server.gql | 2 +- bot/src/bot_graphql/queries/server_query.py | 2 +- web/src/app/models/graphql/queries.model.ts | 25 +++++++++++---------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/bot/src/bot_graphql/graphql/server.gql b/bot/src/bot_graphql/graphql/server.gql index be603f3a..9849f6ab 100644 --- a/bot/src/bot_graphql/graphql/server.gql +++ b/bot/src/bot_graphql/graphql/server.gql @@ -38,7 +38,7 @@ type Server implements TableWithHistoryQuery { config: ServerConfig hasFeatureFlag(flag: String): FeatureFlag - statistic(date: String): ServerStatistic +# statistic(date: String): ServerStatistic createdAt: String modifiedAt: String diff --git a/bot/src/bot_graphql/queries/server_query.py b/bot/src/bot_graphql/queries/server_query.py index 14033101..6f2abb1c 100644 --- a/bot/src/bot_graphql/queries/server_query.py +++ b/bot/src/bot_graphql/queries/server_query.py @@ -108,7 +108,7 @@ class ServerQuery(DataQueryWithHistoryABC): "hasFeatureFlag", lambda server, *_, **kwargs: self._resolve_has_feature_flag(server, *_, **kwargs), ) - self.set_field("statistic", lambda server, *_, **kwargs: ServerStatistics(server, kwargs)) + # self.set_field("statistic", lambda server, *_, **kwargs: ServerStatistics(server, kwargs)) @staticmethod def resolve_id(server: Server, *_): diff --git a/web/src/app/models/graphql/queries.model.ts b/web/src/app/models/graphql/queries.model.ts index 09e582d5..0b4c97cb 100644 --- a/web/src/app/models/graphql/queries.model.ts +++ b/web/src/app/models/graphql/queries.model.ts @@ -92,22 +92,23 @@ export class Queries { receivedCommandCount movedUsersCount } - statistic { - achievementsAchieved - messageCount - userCount - activeUserCount - userJoinedVoiceChannelCount - userJoinedVoiceChannelOntime - userJoinedGameServerCount - userJoinedGameServerOntime - userWarningCount - activityScore - } } } `; + // statistic { + // achievementsAchieved + // messageCount + // userCount + // activeUserCount + // userJoinedVoiceChannelCount + // userJoinedVoiceChannelOntime + // userJoinedGameServerCount + // userJoinedGameServerOntime + // userWarningCount + // activityScore + // } + static hasServerFeatureFlag = ` query HasServerFeatureFlag($filter: ServerFilter, $flag: String) { servers(filter: $filter) {