Remove insights (#23952)
* removed server side * Updated store layer * unused import * Updated autogenerated code template * Updated tests * lint fix * unused translations * webapp side * Updated i18n * lint fix: * type fix * Updated snapshots * Removed insights from API specs * updated e2e * Updated e2e tests * Updated e2e tests * Removed insights tests * Removed Insights as possible channel to load in sidebar from test * Removed more insights tests * More e2e fixed * More cleanup * Lint * More cleanup in client4 and boards api * More cleanup * Fixes * lint fix --------- Co-authored-by: maria.nunez <maria.nunez@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e37459cd00
Коммит
26617fcbdc
@@ -138,7 +138,6 @@ import {
|
||||
} from '@mattermost/types/data_retention';
|
||||
import {CompleteOnboardingRequest} from '@mattermost/types/setup';
|
||||
import {UserThreadList, UserThread, UserThreadWithPost} from '@mattermost/types/threads';
|
||||
import {LeastActiveChannelsResponse, TopChannelResponse, TopReactionResponse, TopThreadResponse, TopDMsResponse} from '@mattermost/types/insights';
|
||||
|
||||
import {cleanUrlForLogging} from './errors';
|
||||
import {buildQueryString} from './helpers';
|
||||
@@ -2177,74 +2176,6 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
getTopReactionsForTeam = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopReactionResponse>(
|
||||
`${this.getTeamRoute(teamId)}/top/reactions${buildQueryString({page, per_page: perPage, time_range: timeRange})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getMyTopReactions = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopReactionResponse>(
|
||||
`${this.getUsersRoute()}/me/top/reactions${buildQueryString({page, per_page: perPage, time_range: timeRange, team_id: teamId})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getTopChannelsForTeam = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopChannelResponse>(
|
||||
`${this.getTeamRoute(teamId)}/top/channels${buildQueryString({page, per_page: perPage, time_range: timeRange})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getMyTopChannels = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopChannelResponse>(
|
||||
`${this.getUsersRoute()}/me/top/channels${buildQueryString({page, per_page: perPage, time_range: timeRange, team_id: teamId})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getTopThreadsForTeam = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopThreadResponse>(
|
||||
`${this.getTeamRoute(teamId)}/top/threads${buildQueryString({page, per_page: perPage, time_range: timeRange})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getMyTopThreads = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopThreadResponse>(
|
||||
`${this.getUsersRoute()}/me/top/threads${buildQueryString({page, per_page: perPage, time_range: timeRange, team_id: teamId})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getLeastActiveChannelsForTeam = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<LeastActiveChannelsResponse>(
|
||||
`${this.getTeamRoute(teamId)}/top/inactive_channels${buildQueryString({page, per_page: perPage, time_range: timeRange})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
getMyTopDMs = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopDMsResponse>(
|
||||
`${this.getUsersRoute()}/me/top/dms${buildQueryString({page, per_page: perPage, time_range: timeRange, team_id: teamId})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
getMyLeastActiveChannels = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<LeastActiveChannelsResponse>(
|
||||
`${this.getUsersRoute()}/me/top/inactive_channels${buildQueryString({page, per_page: perPage, time_range: timeRange, team_id: teamId})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
getNewTeamMembers = (teamId: string, page: number, perPage: number, timeRange: string) => {
|
||||
return this.doFetch<TopDMsResponse>(
|
||||
`${this.getTeamRoute(teamId)}/top/team_members${buildQueryString({page, per_page: perPage, time_range: timeRange})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
searchPostsWithParams = (teamId: string, params: any) => {
|
||||
this.trackEvent('api', 'api_posts_search', {team_id: teamId});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user