debian-mirror-gitlab/app/assets/javascripts/pages/groups/merge_requests/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-01-01 13:55:28 +05:30
import addExtraTokensForMergeRequests from 'ee_else_ce/filtered_search/add_extra_tokens_for_merge_requests';
2018-12-05 23:21:45 +05:30
import IssuableFilteredSearchTokenKeys from '~/filtered_search/issuable_filtered_search_token_keys';
2022-01-26 12:08:38 +05:30
import { FILTERED_SEARCH } from '~/filtered_search/constants';
2023-03-04 22:38:38 +05:30
import { initBulkUpdateSidebar } from '~/issuable';
2021-03-11 19:13:27 +05:30
import initFilteredSearch from '~/pages/search/init_filtered_search';
2023-04-23 21:23:45 +05:30
import { initNewResourceDropdown } from '~/vue_shared/components/new_resource_dropdown/init_new_resource_dropdown';
import { RESOURCE_TYPE_MERGE_REQUEST } from '~/vue_shared/components/new_resource_dropdown/constants';
import searchUserGroupProjectsWithMergeRequestsEnabled from '~/vue_shared/components/new_resource_dropdown/graphql/search_user_group_projects_with_merge_requests_enabled.query.graphql';
2018-03-17 18:26:18 +05:30
2019-10-12 21:52:04 +05:30
const ISSUABLE_BULK_UPDATE_PREFIX = 'merge_request_';
2021-01-29 00:20:46 +05:30
addExtraTokensForMergeRequests(IssuableFilteredSearchTokenKeys);
2022-03-02 08:16:31 +05:30
initBulkUpdateSidebar(ISSUABLE_BULK_UPDATE_PREFIX);
2018-12-05 23:21:45 +05:30
2021-01-29 00:20:46 +05:30
initFilteredSearch({
page: FILTERED_SEARCH.MERGE_REQUESTS,
isGroupDecendent: true,
useDefaultState: true,
filteredSearchTokenKeys: IssuableFilteredSearchTokenKeys,
2018-03-27 19:54:05 +05:30
});
2023-04-23 21:23:45 +05:30
initNewResourceDropdown({
resourceType: RESOURCE_TYPE_MERGE_REQUEST,
query: searchUserGroupProjectsWithMergeRequestsEnabled,
extractProjects: (data) => data?.group?.projects?.nodes,
});