Commit ffbd1dc3 authored by Coung Ngo's avatar Coung Ngo Committed by Peter Hegman

Add search filters to issues page refactor

Adds:
- Confidential filtering
- MyReaction filtering, including !=
- Author != filtering
- Type != filtering
- Including subepics when filtering by epic

The refactor from Haml to Vue of the group/project
issues page is behind the feature flag `vue_issues_list`
parent 86168e37
...@@ -288,6 +288,7 @@ export default { ...@@ -288,6 +288,7 @@ export default {
avatar_url: gon.current_user_avatar_url, avatar_url: gon.current_user_avatar_url,
}); });
} }
const tokens = [ const tokens = [
{ {
type: TOKEN_TYPE_AUTHOR, type: TOKEN_TYPE_AUTHOR,
...@@ -297,7 +298,6 @@ export default { ...@@ -297,7 +298,6 @@ export default {
dataType: 'user', dataType: 'user',
unique: true, unique: true,
defaultAuthors: [], defaultAuthors: [],
operators: OPERATOR_IS_ONLY,
fetchAuthors: this.fetchUsers, fetchAuthors: this.fetchUsers,
preloadedAuthors, preloadedAuthors,
}, },
...@@ -333,7 +333,6 @@ export default { ...@@ -333,7 +333,6 @@ export default {
title: TOKEN_TITLE_TYPE, title: TOKEN_TITLE_TYPE,
icon: 'issues', icon: 'issues',
token: GlFilteredSearchToken, token: GlFilteredSearchToken,
operators: OPERATOR_IS_ONLY,
options: [ options: [
{ icon: 'issue-type-issue', title: 'issue', value: 'issue' }, { icon: 'issue-type-issue', title: 'issue', value: 'issue' },
{ icon: 'issue-type-incident', title: 'incident', value: 'incident' }, { icon: 'issue-type-incident', title: 'incident', value: 'incident' },
...@@ -349,7 +348,6 @@ export default { ...@@ -349,7 +348,6 @@ export default {
icon: 'thumb-up', icon: 'thumb-up',
token: EmojiToken, token: EmojiToken,
unique: true, unique: true,
operators: OPERATOR_IS_ONLY,
fetchEmojis: this.fetchEmojis, fetchEmojis: this.fetchEmojis,
}); });
......
...@@ -271,6 +271,7 @@ export const filters = { ...@@ -271,6 +271,7 @@ export const filters = {
[OPERATOR_IS]: { [OPERATOR_IS]: {
[NORMAL_FILTER]: 'label_name[]', [NORMAL_FILTER]: 'label_name[]',
[SPECIAL_FILTER]: 'label_name[]', [SPECIAL_FILTER]: 'label_name[]',
[ALTERNATIVE_FILTER]: 'label_name',
}, },
[OPERATOR_IS_NOT]: { [OPERATOR_IS_NOT]: {
[NORMAL_FILTER]: 'not[label_name][]', [NORMAL_FILTER]: 'not[label_name][]',
...@@ -280,12 +281,13 @@ export const filters = { ...@@ -280,12 +281,13 @@ export const filters = {
[TOKEN_TYPE_TYPE]: { [TOKEN_TYPE_TYPE]: {
[API_PARAM]: { [API_PARAM]: {
[NORMAL_FILTER]: 'types', [NORMAL_FILTER]: 'types',
[SPECIAL_FILTER]: 'types',
}, },
[URL_PARAM]: { [URL_PARAM]: {
[OPERATOR_IS]: { [OPERATOR_IS]: {
[NORMAL_FILTER]: 'type[]', [NORMAL_FILTER]: 'type[]',
[SPECIAL_FILTER]: 'type[]', },
[OPERATOR_IS_NOT]: {
[NORMAL_FILTER]: 'not[type][]',
}, },
}, },
}, },
...@@ -299,6 +301,9 @@ export const filters = { ...@@ -299,6 +301,9 @@ export const filters = {
[NORMAL_FILTER]: 'my_reaction_emoji', [NORMAL_FILTER]: 'my_reaction_emoji',
[SPECIAL_FILTER]: 'my_reaction_emoji', [SPECIAL_FILTER]: 'my_reaction_emoji',
}, },
[OPERATOR_IS_NOT]: {
[NORMAL_FILTER]: 'not[my_reaction_emoji]',
},
}, },
}, },
[TOKEN_TYPE_CONFIDENTIAL]: { [TOKEN_TYPE_CONFIDENTIAL]: {
......
...@@ -11,9 +11,11 @@ query getIssues( ...@@ -11,9 +11,11 @@ query getIssues(
$assigneeId: String $assigneeId: String
$assigneeUsernames: [String!] $assigneeUsernames: [String!]
$authorUsername: String $authorUsername: String
$confidential: Boolean
$labelName: [String] $labelName: [String]
$milestoneTitle: [String] $milestoneTitle: [String]
$milestoneWildcardId: MilestoneWildcardId $milestoneWildcardId: MilestoneWildcardId
$myReactionEmoji: String
$types: [IssueType!] $types: [IssueType!]
$not: NegatedIssueFilterInput $not: NegatedIssueFilterInput
$beforeCursor: String $beforeCursor: String
...@@ -30,9 +32,11 @@ query getIssues( ...@@ -30,9 +32,11 @@ query getIssues(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
before: $beforeCursor before: $beforeCursor
...@@ -57,9 +61,11 @@ query getIssues( ...@@ -57,9 +61,11 @@ query getIssues(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
before: $beforeCursor before: $beforeCursor
......
...@@ -5,9 +5,11 @@ query getIssuesCount( ...@@ -5,9 +5,11 @@ query getIssuesCount(
$assigneeId: String $assigneeId: String
$assigneeUsernames: [String!] $assigneeUsernames: [String!]
$authorUsername: String $authorUsername: String
$confidential: Boolean
$labelName: [String] $labelName: [String]
$milestoneTitle: [String] $milestoneTitle: [String]
$milestoneWildcardId: MilestoneWildcardId $milestoneWildcardId: MilestoneWildcardId
$myReactionEmoji: String
$types: [IssueType!] $types: [IssueType!]
$not: NegatedIssueFilterInput $not: NegatedIssueFilterInput
) { ) {
...@@ -19,9 +21,11 @@ query getIssuesCount( ...@@ -19,9 +21,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
...@@ -34,9 +38,11 @@ query getIssuesCount( ...@@ -34,9 +38,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
...@@ -49,9 +55,11 @@ query getIssuesCount( ...@@ -49,9 +55,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
...@@ -65,9 +73,11 @@ query getIssuesCount( ...@@ -65,9 +73,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
...@@ -79,9 +89,11 @@ query getIssuesCount( ...@@ -79,9 +89,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
...@@ -93,9 +105,11 @@ query getIssuesCount( ...@@ -93,9 +105,11 @@ query getIssuesCount(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
not: $not not: $not
) { ) {
......
...@@ -22,6 +22,7 @@ import { ...@@ -22,6 +22,7 @@ import {
SPECIAL_FILTER, SPECIAL_FILTER,
SPECIAL_FILTER_VALUES, SPECIAL_FILTER_VALUES,
TOKEN_TYPE_ASSIGNEE, TOKEN_TYPE_ASSIGNEE,
TOKEN_TYPE_CONFIDENTIAL,
TOKEN_TYPE_ITERATION, TOKEN_TYPE_ITERATION,
TOKEN_TYPE_MILESTONE, TOKEN_TYPE_MILESTONE,
TOKEN_TYPE_TYPE, TOKEN_TYPE_TYPE,
...@@ -200,10 +201,15 @@ const isWildcardValue = (tokenType, value) => ...@@ -200,10 +201,15 @@ const isWildcardValue = (tokenType, value) =>
const requiresUpperCaseValue = (tokenType, value) => const requiresUpperCaseValue = (tokenType, value) =>
tokenType === TOKEN_TYPE_TYPE || isWildcardValue(tokenType, value); tokenType === TOKEN_TYPE_TYPE || isWildcardValue(tokenType, value);
const formatData = (token) => const formatData = (token) => {
requiresUpperCaseValue(token.type, token.value.data) if (requiresUpperCaseValue(token.type, token.value.data)) {
? token.value.data.toUpperCase() return token.value.data.toUpperCase();
: token.value.data; }
if (token.type === TOKEN_TYPE_CONFIDENTIAL) {
return token.value.data === 'yes';
}
return token.value.data;
};
export const convertToApiParams = (filterTokens) => { export const convertToApiParams = (filterTokens) => {
const params = {}; const params = {};
......
...@@ -11,9 +11,11 @@ query getIssues( ...@@ -11,9 +11,11 @@ query getIssues(
$assigneeId: String $assigneeId: String
$assigneeUsernames: [String!] $assigneeUsernames: [String!]
$authorUsername: String $authorUsername: String
$confidential: Boolean
$labelName: [String] $labelName: [String]
$milestoneTitle: [String] $milestoneTitle: [String]
$milestoneWildcardId: MilestoneWildcardId $milestoneWildcardId: MilestoneWildcardId
$myReactionEmoji: String
$types: [IssueType!] $types: [IssueType!]
$epicId: String $epicId: String
$iterationId: [ID] $iterationId: [ID]
...@@ -27,6 +29,7 @@ query getIssues( ...@@ -27,6 +29,7 @@ query getIssues(
) { ) {
group(fullPath: $fullPath) @skip(if: $isProject) { group(fullPath: $fullPath) @skip(if: $isProject) {
issues( issues(
includeSubepics: true
includeSubgroups: true includeSubgroups: true
search: $search search: $search
sort: $sort sort: $sort
...@@ -34,9 +37,11 @@ query getIssues( ...@@ -34,9 +37,11 @@ query getIssues(
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -62,15 +67,18 @@ query getIssues( ...@@ -62,15 +67,18 @@ query getIssues(
} }
project(fullPath: $fullPath) @include(if: $isProject) { project(fullPath: $fullPath) @include(if: $isProject) {
issues( issues(
includeSubepics: true
search: $search search: $search
sort: $sort sort: $sort
state: $state state: $state
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
......
...@@ -5,9 +5,11 @@ query getIssuesCount( ...@@ -5,9 +5,11 @@ query getIssuesCount(
$assigneeId: String $assigneeId: String
$assigneeUsernames: [String!] $assigneeUsernames: [String!]
$authorUsername: String $authorUsername: String
$confidential: Boolean
$labelName: [String] $labelName: [String]
$milestoneTitle: [String] $milestoneTitle: [String]
$milestoneWildcardId: MilestoneWildcardId $milestoneWildcardId: MilestoneWildcardId
$myReactionEmoji: String
$types: [IssueType!] $types: [IssueType!]
$epicId: String $epicId: String
$iterationId: [ID] $iterationId: [ID]
...@@ -17,15 +19,18 @@ query getIssuesCount( ...@@ -17,15 +19,18 @@ query getIssuesCount(
) { ) {
group(fullPath: $fullPath) @skip(if: $isProject) { group(fullPath: $fullPath) @skip(if: $isProject) {
openedIssues: issues( openedIssues: issues(
includeSubepics: true
includeSubgroups: true includeSubgroups: true
state: opened state: opened
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -36,15 +41,18 @@ query getIssuesCount( ...@@ -36,15 +41,18 @@ query getIssuesCount(
count count
} }
closedIssues: issues( closedIssues: issues(
includeSubepics: true
includeSubgroups: true includeSubgroups: true
state: closed state: closed
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -55,15 +63,18 @@ query getIssuesCount( ...@@ -55,15 +63,18 @@ query getIssuesCount(
count count
} }
allIssues: issues( allIssues: issues(
includeSubepics: true
includeSubgroups: true includeSubgroups: true
state: all state: all
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -76,14 +87,17 @@ query getIssuesCount( ...@@ -76,14 +87,17 @@ query getIssuesCount(
} }
project(fullPath: $fullPath) @include(if: $isProject) { project(fullPath: $fullPath) @include(if: $isProject) {
openedIssues: issues( openedIssues: issues(
includeSubepics: true
state: opened state: opened
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -94,14 +108,17 @@ query getIssuesCount( ...@@ -94,14 +108,17 @@ query getIssuesCount(
count count
} }
closedIssues: issues( closedIssues: issues(
includeSubepics: true
state: closed state: closed
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
...@@ -112,14 +129,17 @@ query getIssuesCount( ...@@ -112,14 +129,17 @@ query getIssuesCount(
count count
} }
allIssues: issues( allIssues: issues(
includeSubepics: true
state: all state: all
search: $search search: $search
assigneeId: $assigneeId assigneeId: $assigneeId
assigneeUsernames: $assigneeUsernames assigneeUsernames: $assigneeUsernames
authorUsername: $authorUsername authorUsername: $authorUsername
confidential: $confidential
labelName: $labelName labelName: $labelName
milestoneTitle: $milestoneTitle milestoneTitle: $milestoneTitle
milestoneWildcardId: $milestoneWildcardId milestoneWildcardId: $milestoneWildcardId
myReactionEmoji: $myReactionEmoji
types: $types types: $types
epicId: $epicId epicId: $epicId
iterationId: $iterationId iterationId: $iterationId
......
...@@ -101,8 +101,13 @@ export const locationSearch = [ ...@@ -101,8 +101,13 @@ export const locationSearch = [
'label_name[]=tv', 'label_name[]=tv',
'not[label_name][]=live action', 'not[label_name][]=live action',
'not[label_name][]=drama', 'not[label_name][]=drama',
'type[]=issue',
'type[]=feature',
'not[type][]=bug',
'not[type][]=incident',
'my_reaction_emoji=thumbsup', 'my_reaction_emoji=thumbsup',
'confidential=no', 'not[my_reaction_emoji]=thumbsdown',
'confidential=yes',
'iteration_id=4', 'iteration_id=4',
'not[iteration_id]=20', 'not[iteration_id]=20',
'epic_id=12', 'epic_id=12',
...@@ -114,10 +119,9 @@ export const locationSearch = [ ...@@ -114,10 +119,9 @@ export const locationSearch = [
export const locationSearchWithSpecialValues = [ export const locationSearchWithSpecialValues = [
'assignee_id=123', 'assignee_id=123',
'assignee_username=bart', 'assignee_username=bart',
'type[]=issue',
'type[]=incident',
'my_reaction_emoji=None', 'my_reaction_emoji=None',
'iteration_id=Current', 'iteration_id=Current',
'label_name[]=None',
'milestone_title=Upcoming', 'milestone_title=Upcoming',
'epic_id=None', 'epic_id=None',
'weight=None', 'weight=None',
...@@ -136,8 +140,13 @@ export const filteredTokens = [ ...@@ -136,8 +140,13 @@ export const filteredTokens = [
{ type: 'labels', value: { data: 'tv', operator: OPERATOR_IS } }, { type: 'labels', value: { data: 'tv', operator: OPERATOR_IS } },
{ type: 'labels', value: { data: 'live action', operator: OPERATOR_IS_NOT } }, { type: 'labels', value: { data: 'live action', operator: OPERATOR_IS_NOT } },
{ type: 'labels', value: { data: 'drama', operator: OPERATOR_IS_NOT } }, { type: 'labels', value: { data: 'drama', operator: OPERATOR_IS_NOT } },
{ type: 'type', value: { data: 'issue', operator: OPERATOR_IS } },
{ type: 'type', value: { data: 'feature', operator: OPERATOR_IS } },
{ type: 'type', value: { data: 'bug', operator: OPERATOR_IS_NOT } },
{ type: 'type', value: { data: 'incident', operator: OPERATOR_IS_NOT } },
{ type: 'my_reaction_emoji', value: { data: 'thumbsup', operator: OPERATOR_IS } }, { type: 'my_reaction_emoji', value: { data: 'thumbsup', operator: OPERATOR_IS } },
{ type: 'confidential', value: { data: 'no', operator: OPERATOR_IS } }, { type: 'my_reaction_emoji', value: { data: 'thumbsdown', operator: OPERATOR_IS_NOT } },
{ type: 'confidential', value: { data: 'yes', operator: OPERATOR_IS } },
{ type: 'iteration', value: { data: '4', operator: OPERATOR_IS } }, { type: 'iteration', value: { data: '4', operator: OPERATOR_IS } },
{ type: 'iteration', value: { data: '20', operator: OPERATOR_IS_NOT } }, { type: 'iteration', value: { data: '20', operator: OPERATOR_IS_NOT } },
{ type: 'epic_id', value: { data: '12', operator: OPERATOR_IS } }, { type: 'epic_id', value: { data: '12', operator: OPERATOR_IS } },
...@@ -151,10 +160,9 @@ export const filteredTokens = [ ...@@ -151,10 +160,9 @@ export const filteredTokens = [
export const filteredTokensWithSpecialValues = [ export const filteredTokensWithSpecialValues = [
{ type: 'assignee_username', value: { data: '123', operator: OPERATOR_IS } }, { type: 'assignee_username', value: { data: '123', operator: OPERATOR_IS } },
{ type: 'assignee_username', value: { data: 'bart', operator: OPERATOR_IS } }, { type: 'assignee_username', value: { data: 'bart', operator: OPERATOR_IS } },
{ type: 'type', value: { data: 'issue', operator: OPERATOR_IS } },
{ type: 'type', value: { data: 'incident', operator: OPERATOR_IS } },
{ type: 'my_reaction_emoji', value: { data: 'None', operator: OPERATOR_IS } }, { type: 'my_reaction_emoji', value: { data: 'None', operator: OPERATOR_IS } },
{ type: 'iteration', value: { data: 'Current', operator: OPERATOR_IS } }, { type: 'iteration', value: { data: 'Current', operator: OPERATOR_IS } },
{ type: 'labels', value: { data: 'None', operator: OPERATOR_IS } },
{ type: 'milestone', value: { data: 'Upcoming', operator: OPERATOR_IS } }, { type: 'milestone', value: { data: 'Upcoming', operator: OPERATOR_IS } },
{ type: 'epic_id', value: { data: 'None', operator: OPERATOR_IS } }, { type: 'epic_id', value: { data: 'None', operator: OPERATOR_IS } },
{ type: 'weight', value: { data: 'None', operator: OPERATOR_IS } }, { type: 'weight', value: { data: 'None', operator: OPERATOR_IS } },
...@@ -165,8 +173,9 @@ export const apiParams = { ...@@ -165,8 +173,9 @@ export const apiParams = {
assigneeUsernames: ['bart', 'lisa'], assigneeUsernames: ['bart', 'lisa'],
milestoneTitle: 'season 4', milestoneTitle: 'season 4',
labelName: ['cartoon', 'tv'], labelName: ['cartoon', 'tv'],
types: ['ISSUE', 'FEATURE'],
myReactionEmoji: 'thumbsup', myReactionEmoji: 'thumbsup',
confidential: 'no', confidential: true,
iterationId: '4', iterationId: '4',
epicId: '12', epicId: '12',
weight: '1', weight: '1',
...@@ -175,6 +184,8 @@ export const apiParams = { ...@@ -175,6 +184,8 @@ export const apiParams = {
assigneeUsernames: ['patty', 'selma'], assigneeUsernames: ['patty', 'selma'],
milestoneTitle: 'season 20', milestoneTitle: 'season 20',
labelName: ['live action', 'drama'], labelName: ['live action', 'drama'],
types: ['BUG', 'INCIDENT'],
myReactionEmoji: 'thumbsdown',
iterationId: '20', iterationId: '20',
epicId: '34', epicId: '34',
weight: '3', weight: '3',
...@@ -184,7 +195,7 @@ export const apiParams = { ...@@ -184,7 +195,7 @@ export const apiParams = {
export const apiParamsWithSpecialValues = { export const apiParamsWithSpecialValues = {
assigneeId: '123', assigneeId: '123',
assigneeUsernames: 'bart', assigneeUsernames: 'bart',
types: ['ISSUE', 'INCIDENT'], labelName: 'None',
myReactionEmoji: 'None', myReactionEmoji: 'None',
iterationWildcardId: 'CURRENT', iterationWildcardId: 'CURRENT',
milestoneWildcardId: 'UPCOMING', milestoneWildcardId: 'UPCOMING',
...@@ -201,8 +212,11 @@ export const urlParams = { ...@@ -201,8 +212,11 @@ export const urlParams = {
'not[milestone_title]': 'season 20', 'not[milestone_title]': 'season 20',
'label_name[]': ['cartoon', 'tv'], 'label_name[]': ['cartoon', 'tv'],
'not[label_name][]': ['live action', 'drama'], 'not[label_name][]': ['live action', 'drama'],
'type[]': ['issue', 'feature'],
'not[type][]': ['bug', 'incident'],
my_reaction_emoji: 'thumbsup', my_reaction_emoji: 'thumbsup',
confidential: 'no', 'not[my_reaction_emoji]': 'thumbsdown',
confidential: 'yes',
iteration_id: '4', iteration_id: '4',
'not[iteration_id]': '20', 'not[iteration_id]': '20',
epic_id: '12', epic_id: '12',
...@@ -214,7 +228,7 @@ export const urlParams = { ...@@ -214,7 +228,7 @@ export const urlParams = {
export const urlParamsWithSpecialValues = { export const urlParamsWithSpecialValues = {
assignee_id: '123', assignee_id: '123',
'assignee_username[]': 'bart', 'assignee_username[]': 'bart',
'type[]': ['issue', 'incident'], 'label_name[]': 'None',
my_reaction_emoji: 'None', my_reaction_emoji: 'None',
iteration_id: 'Current', iteration_id: 'Current',
milestone_title: 'Upcoming', milestone_title: 'Upcoming',
......
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