Commit 41fda088 authored by Kushal Pandya's avatar Kushal Pandya

Remove Milestone token wildcard values

Remove wildcard values for milestone token as
GraphQL query doesn't support it yet.

Changelog: fixed
EE: true
parent da9a8aa0
......@@ -9,8 +9,6 @@ import {
OPERATOR_IS_NOT,
OPERATOR_IS,
OPERATOR_IS_AND_IS_NOT,
DEFAULT_MILESTONE_UPCOMING,
DEFAULT_MILESTONE_STARTED,
} from '~/vue_shared/components/filtered_search_bar/constants';
import AuthorToken from '~/vue_shared/components/filtered_search_bar/tokens/author_token.vue';
import EmojiToken from '~/vue_shared/components/filtered_search_bar/tokens/emoji_token.vue';
......@@ -122,7 +120,7 @@ export default {
symbol: '%',
token: MilestoneToken,
operators: OPERATOR_IS_ONLY,
defaultMilestones: [DEFAULT_MILESTONE_UPCOMING, DEFAULT_MILESTONE_STARTED],
defaultMilestones: [], // TODO: Add support for wildcards once https://gitlab.com/gitlab-org/gitlab/-/issues/356756 is resolved
fetchMilestones: (search = '') => {
return axios.get(this.groupMilestonesPath).then(({ data }) => {
// TODO: Remove below condition check once either of the following is supported.
......
......@@ -827,7 +827,7 @@ export const mockMilestoneTokenConfig = {
token: MilestoneToken,
operators: OPERATOR_IS_ONLY,
fetchMilestones: expect.any(Function),
defaultMilestones: expect.any(Array),
defaultMilestones: [],
};
export const mockConfidentialTokenConfig = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment