Commit 42fe2b22 authored by Mark Florian's avatar Mark Florian

Merge branch '356572-remove-wildcards-for-milestone-token' into 'master'

Remove Milestone token wildcard values due to lack of GraphQL support

See merge request gitlab-org/gitlab!84561
parents ff58c109 41fda088
......@@ -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