Improve Redux types part 7/Remove unused actions (#26006)

* Remove unused setFirstChannelName action

* Remove makeOnMoveHistoryIndex

* Remove selectPostFromRightHandSideSearchByPostId

* Remove selectPostAndParentChannel

* Remove searchMoreChannels

* Remove fetchRemoteListing

* Remove sendGenericPostMessage

* Remove unused version of periodic status update code

* Remove unused code around non-global items in storage

Either pre-Redux or early in our usage of Redux, I think this code was
meant to let us store things in localStorage on a per-user basis. If we
ever used it, it hasn't been for a while now.

* Remove unused loadProfilesAndStatusesInChannel action

* Remove collapseCategory and expandCategory

* Removed unused actions from mattermost-redux/actions/channels

* Remove unused getDataRetentionPolicy action and state

* Remove unused getWarnMetricsStatus action

* Remove unused getFirstAdminVisitMarketplaceStatus action

* Remove unused getReactionsForPost action

* Remove now-unused state.entities.posts.selectedPostId

* asdf marketplace stuff in general

* Remove unused makeDirectChannelVisibleIfNecessary and makeGroupMessageVisibleIfNecessary

* Remove old searchFiles action

* Remove unused search actions

* Remove non-graceful addUsersToTeam action

* Remove unused version of joinTeam action

* Remove unused updateTeamMemberRoles action

* Remove another unused verison of the periodic status update code

* Remove unused getUserAccessTokens action

* Fix linting

* Remove unit tests involving recent search results

* Fix another test
Этот коммит содержится в:
Harrison Healey
2024-02-02 15:59:00 -05:00
коммит произвёл GitHub
родитель 45633198ca
Коммит 25073a99e4
61 изменённых файлов: 35 добавлений и 1803 удалений

Просмотреть файл

@@ -5,7 +5,6 @@ import {ClientConfig, ClientLicense, WarnMetricStatus} from './config';
export type GeneralState = {
config: Partial<ClientConfig>;
dataRetentionPolicy: any;
firstAdminVisitMarketplaceStatus: boolean;
firstAdminCompleteSetup: boolean;
license: ClientLicense;

Просмотреть файл

@@ -146,7 +146,6 @@ export type PostsState = {
reactions: RelationOneToOne<Post, Record<string, Reaction>>;
openGraph: RelationOneToOne<Post, Record<string, OpenGraphMetadata>>;
pendingPostIds: string[];
selectedPostId: string;
postEditHistory: Post[];
currentFocusedPostId: string;
messagesHistory: MessageHistory;
@@ -221,4 +220,4 @@ export type PostInfo = {
team_type: TeamType;
team_display_name: string;
has_joined_team: boolean;
}
}

Просмотреть файл

@@ -12,7 +12,6 @@ export type ChannelsRequestsStatuses = {
getAllChannels: RequestStatusType;
myChannels: RequestStatusType;
createChannel: RequestStatusType;
updateChannel: RequestStatusType;
};
export type GeneralRequestsStatuses = {
@@ -32,7 +31,6 @@ export type ThreadsRequestStatuses = {
export type TeamsRequestsStatuses = {
getMyTeams: RequestStatusType;
getTeams: RequestStatusType;
joinTeam: RequestStatusType;
};
export type UsersRequestsStatuses = {

Просмотреть файл

@@ -15,9 +15,6 @@ export type SearchState = {
isSearchingTerm: boolean;
isSearchGettingMore: boolean;
isLimitedResults: number;
recent: {
[x: string]: Search[];
};
matches: {
[x: string]: string[];
};