Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6e8c6ec3
Commit
6e8c6ec3
authored
Dec 07, 2021
by
Coung Ngo
Committed by
Ezekiel Kigbo
Dec 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ~/issuable_list to ~/vue_shared
parent
18fc6343
Changes
35
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
47 additions
and
45 deletions
+47
-45
app/assets/javascripts/issues_list/components/issuables_list_app.vue
...javascripts/issues_list/components/issuables_list_app.vue
+1
-1
app/assets/javascripts/issues_list/components/issues_list_app.vue
...ts/javascripts/issues_list/components/issues_list_app.vue
+2
-2
app/assets/javascripts/vue_shared/issuable/list/components/issuable_bulk_edit_sidebar.vue
...d/issuable/list/components/issuable_bulk_edit_sidebar.vue
+0
-0
app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue
...pts/vue_shared/issuable/list/components/issuable_item.vue
+0
-0
app/assets/javascripts/vue_shared/issuable/list/components/issuable_list_root.vue
...ue_shared/issuable/list/components/issuable_list_root.vue
+0
-0
app/assets/javascripts/vue_shared/issuable/list/components/issuable_tabs.vue
...pts/vue_shared/issuable/list/components/issuable_tabs.vue
+0
-0
app/assets/javascripts/vue_shared/issuable/list/constants.js
app/assets/javascripts/vue_shared/issuable/list/constants.js
+0
-0
ee/app/assets/javascripts/epics_list/components/epics_list_empty_state.vue
...ascripts/epics_list/components/epics_list_empty_state.vue
+1
-1
ee/app/assets/javascripts/epics_list/components/epics_list_root.vue
...ets/javascripts/epics_list/components/epics_list_root.vue
+2
-2
ee/app/assets/javascripts/epics_list/constants.js
ee/app/assets/javascripts/epics_list/constants.js
+1
-1
ee/app/assets/javascripts/epics_list/epics_list_bundle.js
ee/app/assets/javascripts/epics_list/epics_list_bundle.js
+1
-1
ee/app/assets/javascripts/external_issues_list/components/external_issues_list_empty_state.vue
...sues_list/components/external_issues_list_empty_state.vue
+1
-1
ee/app/assets/javascripts/external_issues_list/components/external_issues_list_root.vue
...rnal_issues_list/components/external_issues_list_root.vue
+2
-2
ee/app/assets/javascripts/external_issues_list/constants.js
ee/app/assets/javascripts/external_issues_list/constants.js
+1
-1
ee/app/assets/javascripts/external_issues_list/index.js
ee/app/assets/javascripts/external_issues_list/index.js
+1
-1
ee/app/assets/javascripts/integrations/jira/issues_list/graphql/resolvers/jira_issues.js
...rations/jira/issues_list/graphql/resolvers/jira_issues.js
+1
-1
ee/app/assets/javascripts/integrations/zentao/issues_list/graphql/resolvers/zentao_issues.js
...ons/zentao/issues_list/graphql/resolvers/zentao_issues.js
+1
-1
ee/app/assets/javascripts/test_case_list/components/test_case_list_root.vue
...scripts/test_case_list/components/test_case_list_root.vue
+1
-1
ee/spec/frontend/epics_list/components/epics_list_root_spec.js
...ec/frontend/epics_list/components/epics_list_root_spec.js
+7
-6
ee/spec/frontend/external_issues_list/components/external_issues_list_empty_state_spec.js
..._list/components/external_issues_list_empty_state_spec.js
+1
-1
ee/spec/frontend/external_issues_list/components/external_issues_list_root_spec.js
..._issues_list/components/external_issues_list_root_spec.js
+6
-5
ee/spec/frontend/integrations/zentao/issues_list/resolvers/zentao_issues_spec.js
...ations/zentao/issues_list/resolvers/zentao_issues_spec.js
+1
-1
ee/spec/frontend/issues_list/components/issues_list_app_spec.js
...c/frontend/issues_list/components/issues_list_app_spec.js
+1
-1
ee/spec/frontend/test_case_list/components/test_case_list_root_spec.js
...end/test_case_list/components/test_case_list_root_spec.js
+2
-2
ee/spec/frontend/test_case_show/components/test_case_show_root_spec.js
...end/test_case_show/components/test_case_show_root_spec.js
+1
-1
ee/spec/frontend/test_case_show/components/test_case_sidebar_spec.js
...ntend/test_case_show/components/test_case_sidebar_spec.js
+1
-1
ee/spec/frontend/test_case_show/mixins/test_case_graphql_spec.js
.../frontend/test_case_show/mixins/test_case_graphql_spec.js
+1
-1
ee/spec/frontend/test_case_show/mock_data.js
ee/spec/frontend/test_case_show/mock_data.js
+1
-1
spec/frontend/issuable_show/mock_data.js
spec/frontend/issuable_show/mock_data.js
+1
-1
spec/frontend/issues_list/components/issues_list_app_spec.js
spec/frontend/issues_list/components/issues_list_app_spec.js
+2
-2
spec/frontend/vue_shared/issuable/list/components/issuable_bulk_edit_sidebar_spec.js
...suable/list/components/issuable_bulk_edit_sidebar_spec.js
+1
-1
spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js
...vue_shared/issuable/list/components/issuable_item_spec.js
+1
-1
spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js
...hared/issuable/list/components/issuable_list_root_spec.js
+3
-3
spec/frontend/vue_shared/issuable/list/components/issuable_tabs_spec.js
...vue_shared/issuable/list/components/issuable_tabs_spec.js
+1
-1
spec/frontend/vue_shared/issuable/list/mock_data.js
spec/frontend/vue_shared/issuable/list/mock_data.js
+0
-0
No files found.
app/assets/javascripts/issues_list/components/issuables_list_app.vue
View file @
6e8c6ec3
...
@@ -26,7 +26,7 @@ import { emptyStateHelper } from '../service_desk_helper';
...
@@ -26,7 +26,7 @@ import { emptyStateHelper } from '../service_desk_helper';
import
Issuable
from
'
./issuable.vue
'
;
import
Issuable
from
'
./issuable.vue
'
;
/**
/**
* @deprecated Use app/assets/javascripts/
issuable_
list/components/issuable_list_root.vue instead
* @deprecated Use app/assets/javascripts/
vue_shared/issuable/
list/components/issuable_list_root.vue instead
*/
*/
export
default
{
export
default
{
LOADING_LIST_ITEMS_LENGTH
,
LOADING_LIST_ITEMS_LENGTH
,
...
...
app/assets/javascripts/issues_list/components/issues_list_app.vue
View file @
6e8c6ec3
...
@@ -18,8 +18,8 @@ import { convertToGraphQLId, getIdFromGraphQLId } from '~/graphql_shared/utils';
...
@@ -18,8 +18,8 @@ import { convertToGraphQLId, getIdFromGraphQLId } from '~/graphql_shared/utils';
import
{
ITEM_TYPE
}
from
'
~/groups/constants
'
;
import
{
ITEM_TYPE
}
from
'
~/groups/constants
'
;
import
CsvImportExportButtons
from
'
~/issuable/components/csv_import_export_buttons.vue
'
;
import
CsvImportExportButtons
from
'
~/issuable/components/csv_import_export_buttons.vue
'
;
import
IssuableByEmail
from
'
~/issuable/components/issuable_by_email.vue
'
;
import
IssuableByEmail
from
'
~/issuable/components/issuable_by_email.vue
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
IssuableListTabs
,
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableListTabs
,
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
import
{
CREATED_DESC
,
CREATED_DESC
,
i18n
,
i18n
,
...
...
app/assets/javascripts/
issuable_
list/components/issuable_bulk_edit_sidebar.vue
→
app/assets/javascripts/
vue_shared/issuable/
list/components/issuable_bulk_edit_sidebar.vue
View file @
6e8c6ec3
File moved
app/assets/javascripts/
issuable_
list/components/issuable_item.vue
→
app/assets/javascripts/
vue_shared/issuable/
list/components/issuable_item.vue
View file @
6e8c6ec3
File moved
app/assets/javascripts/
issuable_
list/components/issuable_list_root.vue
→
app/assets/javascripts/
vue_shared/issuable/
list/components/issuable_list_root.vue
View file @
6e8c6ec3
File moved
app/assets/javascripts/
issuable_
list/components/issuable_tabs.vue
→
app/assets/javascripts/
vue_shared/issuable/
list/components/issuable_tabs.vue
View file @
6e8c6ec3
File moved
app/assets/javascripts/
issuable_
list/constants.js
→
app/assets/javascripts/
vue_shared/issuable/
list/constants.js
View file @
6e8c6ec3
File moved
ee/app/assets/javascripts/epics_list/components/epics_list_empty_state.vue
View file @
6e8c6ec3
<
script
>
<
script
>
import
{
GlEmptyState
}
from
'
@gitlab/ui
'
;
import
{
GlEmptyState
}
from
'
@gitlab/ui
'
;
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
FilterStateEmptyMessage
}
from
'
../constants
'
;
import
{
FilterStateEmptyMessage
}
from
'
../constants
'
;
...
...
ee/app/assets/javascripts/epics_list/components/epics_list_root.vue
View file @
6e8c6ec3
...
@@ -5,9 +5,9 @@ import EpicsFilteredSearchMixin from 'ee/roadmap/mixins/filtered_search_mixin';
...
@@ -5,9 +5,9 @@ import EpicsFilteredSearchMixin from 'ee/roadmap/mixins/filtered_search_mixin';
import
createFlash
from
'
~/flash
'
;
import
createFlash
from
'
~/flash
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
IssuableListTabs
,
DEFAULT_PAGE_SIZE
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableListTabs
,
DEFAULT_PAGE_SIZE
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
parsePikadayDate
,
dateInWords
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
parsePikadayDate
,
dateInWords
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
...
...
ee/app/assets/javascripts/epics_list/constants.js
View file @
6e8c6ec3
import
{
AvailableSortOptions
}
from
'
~/
issuable_
list/constants
'
;
import
{
AvailableSortOptions
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
__
}
from
'
~/locale
'
;
export
const
EpicsSortOptions
=
[
export
const
EpicsSortOptions
=
[
...
...
ee/app/assets/javascripts/epics_list/epics_list_bundle.js
View file @
6e8c6ec3
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
{
parseBoolean
,
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
parseBoolean
,
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
import
{
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
...
...
ee/app/assets/javascripts/external_issues_list/components/external_issues_list_empty_state.vue
View file @
6e8c6ec3
<
script
>
<
script
>
import
{
GlEmptyState
,
GlButton
,
GlIcon
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
GlEmptyState
,
GlButton
,
GlIcon
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
externalIssuesListEmptyStateI18n
as
i18n
}
from
'
ee/external_issues_list/constants
'
;
import
{
externalIssuesListEmptyStateI18n
as
i18n
}
from
'
ee/external_issues_list/constants
'
;
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
...
ee/app/assets/javascripts/external_issues_list/components/external_issues_list_root.vue
View file @
6e8c6ec3
...
@@ -9,13 +9,13 @@ import {
...
@@ -9,13 +9,13 @@ import {
}
from
'
@gitlab/ui
'
;
}
from
'
@gitlab/ui
'
;
import
*
as
Sentry
from
'
@sentry/browser
'
;
import
*
as
Sentry
from
'
@sentry/browser
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
import
{
IssuableStates
,
IssuableStates
,
IssuableListTabs
,
IssuableListTabs
,
AvailableSortOptions
,
AvailableSortOptions
,
DEFAULT_PAGE_SIZE
,
DEFAULT_PAGE_SIZE
,
}
from
'
~/
issuable_
list/constants
'
;
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
import
{
FILTERED_SEARCH_LABELS
,
FILTERED_SEARCH_LABELS
,
...
...
ee/app/assets/javascripts/external_issues_list/constants.js
View file @
6e8c6ec3
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
export
const
externalIssuesListEmptyStateI18n
=
{
export
const
externalIssuesListEmptyStateI18n
=
{
...
...
ee/app/assets/javascripts/external_issues_list/index.js
View file @
6e8c6ec3
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
import
{
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
...
...
ee/app/assets/javascripts/integrations/jira/issues_list/graphql/resolvers/jira_issues.js
View file @
6e8c6ec3
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
issuable_
list/constants
'
;
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
...
...
ee/app/assets/javascripts/integrations/zentao/issues_list/graphql/resolvers/zentao_issues.js
View file @
6e8c6ec3
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
issuable_
list/constants
'
;
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
...
...
ee/app/assets/javascripts/test_case_list/components/test_case_list_root.vue
View file @
6e8c6ec3
...
@@ -3,7 +3,7 @@ import { GlButton } from '@gitlab/ui';
...
@@ -3,7 +3,7 @@ import { GlButton } from '@gitlab/ui';
import
Api
from
'
~/api
'
;
import
Api
from
'
~/api
'
;
import
createFlash
from
'
~/flash
'
;
import
createFlash
from
'
~/flash
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
updateHistory
,
setUrlParams
,
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
import
{
updateHistory
,
setUrlParams
,
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
...
...
ee/spec/frontend/epics_list/components/epics_list_root_spec.js
View file @
6e8c6ec3
...
@@ -5,15 +5,16 @@ import EpicsListRoot from 'ee/epics_list/components/epics_list_root.vue';
...
@@ -5,15 +5,16 @@ import EpicsListRoot from 'ee/epics_list/components/epics_list_root.vue';
import
{
EpicsSortOptions
}
from
'
ee/epics_list/constants
'
;
import
{
EpicsSortOptions
}
from
'
ee/epics_list/constants
'
;
import
{
mockFormattedEpic
}
from
'
ee_jest/roadmap/mock_data
'
;
import
{
mockFormattedEpic
}
from
'
ee_jest/roadmap/mock_data
'
;
import
{
stubComponent
}
from
'
helpers/stub_component
'
;
import
{
stubComponent
}
from
'
helpers/stub_component
'
;
import
{
mockAuthor
,
mockLabels
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockAuthor
,
mockLabels
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
IssuableListTabs
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableListTabs
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
jest
.
mock
(
'
~/
issuable_
list/constants
'
,
()
=>
({
jest
.
mock
(
'
~/
vue_shared/issuable/
list/constants
'
,
()
=>
({
DEFAULT_PAGE_SIZE
:
2
,
DEFAULT_PAGE_SIZE
:
2
,
IssuableListTabs
:
jest
.
requireActual
(
'
~/issuable_list/constants
'
).
IssuableListTabs
,
IssuableListTabs
:
jest
.
requireActual
(
'
~/vue_shared/issuable/list/constants
'
).
IssuableListTabs
,
AvailableSortOptions
:
jest
.
requireActual
(
'
~/issuable_list/constants
'
).
AvailableSortOptions
,
AvailableSortOptions
:
jest
.
requireActual
(
'
~/vue_shared/issuable/list/constants
'
)
.
AvailableSortOptions
,
}));
}));
const
mockRawEpic
=
{
const
mockRawEpic
=
{
...
...
ee/spec/frontend/external_issues_list/components/external_issues_list_empty_state_spec.js
View file @
6e8c6ec3
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
import
ExternalIssuesListEmptyState
from
'
ee/external_issues_list/components/external_issues_list_empty_state.vue
'
;
import
ExternalIssuesListEmptyState
from
'
ee/external_issues_list/components/external_issues_list_empty_state.vue
'
;
import
{
externalIssuesListEmptyStateI18n
}
from
'
ee/external_issues_list/constants
'
;
import
{
externalIssuesListEmptyStateI18n
}
from
'
ee/external_issues_list/constants
'
;
import
{
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
mockProvide
}
from
'
../mock_data
'
;
import
{
mockProvide
}
from
'
../mock_data
'
;
...
...
ee/spec/frontend/external_issues_list/components/external_issues_list_root_spec.js
View file @
6e8c6ec3
...
@@ -10,7 +10,7 @@ import jiraIssuesResolver from 'ee/integrations/jira/issues_list/graphql/resolve
...
@@ -10,7 +10,7 @@ import jiraIssuesResolver from 'ee/integrations/jira/issues_list/graphql/resolve
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
httpStatus
from
'
~/lib/utils/http_status
'
;
import
httpStatus
from
'
~/lib/utils/http_status
'
;
...
@@ -22,11 +22,12 @@ import {
...
@@ -22,11 +22,12 @@ import {
}
from
'
../mock_data
'
;
}
from
'
../mock_data
'
;
jest
.
mock
(
'
~/flash
'
);
jest
.
mock
(
'
~/flash
'
);
jest
.
mock
(
'
~/
issuable_
list/constants
'
,
()
=>
({
jest
.
mock
(
'
~/
vue_shared/issuable/
list/constants
'
,
()
=>
({
DEFAULT_PAGE_SIZE
:
2
,
DEFAULT_PAGE_SIZE
:
2
,
IssuableStates
:
jest
.
requireActual
(
'
~/issuable_list/constants
'
).
IssuableStates
,
IssuableStates
:
jest
.
requireActual
(
'
~/vue_shared/issuable/list/constants
'
).
IssuableStates
,
IssuableListTabs
:
jest
.
requireActual
(
'
~/issuable_list/constants
'
).
IssuableListTabs
,
IssuableListTabs
:
jest
.
requireActual
(
'
~/vue_shared/issuable/list/constants
'
).
IssuableListTabs
,
AvailableSortOptions
:
jest
.
requireActual
(
'
~/issuable_list/constants
'
).
AvailableSortOptions
,
AvailableSortOptions
:
jest
.
requireActual
(
'
~/vue_shared/issuable/list/constants
'
)
.
AvailableSortOptions
,
}));
}));
jest
.
mock
(
jest
.
mock
(
'
~/vue_shared/components/filtered_search_bar/tokens/label_token.vue
'
,
'
~/vue_shared/components/filtered_search_bar/tokens/label_token.vue
'
,
...
...
ee/spec/frontend/integrations/zentao/issues_list/resolvers/zentao_issues_spec.js
View file @
6e8c6ec3
...
@@ -2,7 +2,7 @@ import MockAdapter from 'axios-mock-adapter';
...
@@ -2,7 +2,7 @@ import MockAdapter from 'axios-mock-adapter';
import
createApolloProvider
from
'
ee/external_issues_list/graphql
'
;
import
createApolloProvider
from
'
ee/external_issues_list/graphql
'
;
import
getZentaoIssues
from
'
ee/integrations/zentao/issues_list/graphql/queries/get_zentao_issues.query.graphql
'
;
import
getZentaoIssues
from
'
ee/integrations/zentao/issues_list/graphql/queries/get_zentao_issues.query.graphql
'
;
import
zentaoIssuesResolver
from
'
ee/integrations/zentao/issues_list/graphql/resolvers/zentao_issues
'
;
import
zentaoIssuesResolver
from
'
ee/integrations/zentao/issues_list/graphql/resolvers/zentao_issues
'
;
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
issuable_
list/constants
'
;
import
{
DEFAULT_PAGE_SIZE
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
{
i18n
}
from
'
~/issues_list/constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
mockZentaoIssues
}
from
'
../mock_data
'
;
import
{
mockZentaoIssues
}
from
'
../mock_data
'
;
...
...
ee/spec/frontend/issues_list/components/issues_list_app_spec.js
View file @
6e8c6ec3
...
@@ -7,7 +7,7 @@ import getIssuesCountsQuery from 'ee_else_ce/issues_list/queries/get_issues_coun
...
@@ -7,7 +7,7 @@ import getIssuesCountsQuery from 'ee_else_ce/issues_list/queries/get_issues_coun
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
{
getIssuesCountsQueryResponse
,
getIssuesQueryResponse
}
from
'
jest/issues_list/mock_data
'
;
import
{
getIssuesCountsQueryResponse
,
getIssuesQueryResponse
}
from
'
jest/issues_list/mock_data
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
import
{
TOKEN_TYPE_ASSIGNEE
,
TOKEN_TYPE_ASSIGNEE
,
TOKEN_TYPE_AUTHOR
,
TOKEN_TYPE_AUTHOR
,
...
...
ee/spec/frontend/test_case_list/components/test_case_list_root_spec.js
View file @
6e8c6ec3
...
@@ -3,9 +3,9 @@ import { nextTick } from 'vue';
...
@@ -3,9 +3,9 @@ import { nextTick } from 'vue';
import
TestCaseListRoot
from
'
ee/test_case_list/components/test_case_list_root.vue
'
;
import
TestCaseListRoot
from
'
ee/test_case_list/components/test_case_list_root.vue
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
{
mockIssuable
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockIssuable
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
jest
.
mock
(
'
~/flash
'
);
jest
.
mock
(
'
~/flash
'
);
jest
.
mock
(
'
ee/test_case_list/constants
'
,
()
=>
({
jest
.
mock
(
'
ee/test_case_list/constants
'
,
()
=>
({
...
...
ee/spec/frontend/test_case_show/components/test_case_show_root_spec.js
View file @
6e8c6ec3
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
import
TestCaseShowRoot
from
'
ee/test_case_show/components/test_case_show_root.vue
'
;
import
TestCaseShowRoot
from
'
ee/test_case_show/components/test_case_show_root.vue
'
;
import
TestCaseSidebar
from
'
ee/test_case_show/components/test_case_sidebar.vue
'
;
import
TestCaseSidebar
from
'
ee/test_case_show/components/test_case_sidebar.vue
'
;
import
{
mockCurrentUserTodo
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockCurrentUserTodo
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
import
IssuableBody
from
'
~/issuable_show/components/issuable_body.vue
'
;
import
IssuableBody
from
'
~/issuable_show/components/issuable_body.vue
'
;
import
IssuableEditForm
from
'
~/issuable_show/components/issuable_edit_form.vue
'
;
import
IssuableEditForm
from
'
~/issuable_show/components/issuable_edit_form.vue
'
;
...
...
ee/spec/frontend/test_case_show/components/test_case_sidebar_spec.js
View file @
6e8c6ec3
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
import
Mousetrap
from
'
mousetrap
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
TestCaseSidebar
from
'
ee/test_case_show/components/test_case_sidebar.vue
'
;
import
TestCaseSidebar
from
'
ee/test_case_show/components/test_case_sidebar.vue
'
;
import
{
mockCurrentUserTodo
,
mockLabels
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockCurrentUserTodo
,
mockLabels
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
import
{
keysFor
,
ISSUABLE_CHANGE_LABEL
}
from
'
~/behaviors/shortcuts/keybindings
'
;
import
{
keysFor
,
ISSUABLE_CHANGE_LABEL
}
from
'
~/behaviors/shortcuts/keybindings
'
;
import
ProjectSelect
from
'
~/vue_shared/components/sidebar/issuable_move_dropdown.vue
'
;
import
ProjectSelect
from
'
~/vue_shared/components/sidebar/issuable_move_dropdown.vue
'
;
...
...
ee/spec/frontend/test_case_show/mixins/test_case_graphql_spec.js
View file @
6e8c6ec3
...
@@ -4,7 +4,7 @@ import TestCaseShowRoot from 'ee/test_case_show/components/test_case_show_root.v
...
@@ -4,7 +4,7 @@ import TestCaseShowRoot from 'ee/test_case_show/components/test_case_show_root.v
import
markTestCaseTodoDone
from
'
ee/test_case_show/queries/mark_test_case_todo_done.mutation.graphql
'
;
import
markTestCaseTodoDone
from
'
ee/test_case_show/queries/mark_test_case_todo_done.mutation.graphql
'
;
import
moveTestCase
from
'
ee/test_case_show/queries/move_test_case.mutation.graphql
'
;
import
moveTestCase
from
'
ee/test_case_show/queries/move_test_case.mutation.graphql
'
;
import
updateTestCase
from
'
ee/test_case_show/queries/update_test_case.mutation.graphql
'
;
import
updateTestCase
from
'
ee/test_case_show/queries/update_test_case.mutation.graphql
'
;
import
{
mockCurrentUserTodo
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockCurrentUserTodo
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
import
Api
from
'
~/api
'
;
import
Api
from
'
~/api
'
;
import
createFlash
from
'
~/flash
'
;
import
createFlash
from
'
~/flash
'
;
...
...
ee/spec/frontend/test_case_show/mock_data.js
View file @
6e8c6ec3
import
{
mockIssuable
,
mockCurrentUserTodo
}
from
'
jest/
issuable_
list/mock_data
'
;
import
{
mockIssuable
,
mockCurrentUserTodo
}
from
'
jest/
vue_shared/issuable/
list/mock_data
'
;
export
const
mockTestCase
=
{
export
const
mockTestCase
=
{
...
mockIssuable
,
...
mockIssuable
,
...
...
spec/frontend/issuable_show/mock_data.js
View file @
6e8c6ec3
import
{
mockIssuable
as
issuable
}
from
'
../issuable_
list/mock_data
'
;
import
{
mockIssuable
as
issuable
}
from
'
jest/vue_shared/issuable/
list/mock_data
'
;
export
const
mockIssuable
=
{
export
const
mockIssuable
=
{
...
issuable
,
...
issuable
,
...
...
spec/frontend/issues_list/components/issues_list_app_spec.js
View file @
6e8c6ec3
...
@@ -21,8 +21,8 @@ import createFlash, { FLASH_TYPES } from '~/flash';
...
@@ -21,8 +21,8 @@ import createFlash, { FLASH_TYPES } from '~/flash';
import
{
convertToGraphQLId
,
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
convertToGraphQLId
,
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
CsvImportExportButtons
from
'
~/issuable/components/csv_import_export_buttons.vue
'
;
import
CsvImportExportButtons
from
'
~/issuable/components/csv_import_export_buttons.vue
'
;
import
IssuableByEmail
from
'
~/issuable/components/issuable_by_email.vue
'
;
import
IssuableByEmail
from
'
~/issuable/components/issuable_by_email.vue
'
;
import
IssuableList
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableList
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
{
IssuableListTabs
,
IssuableStates
}
from
'
~/
issuable_
list/constants
'
;
import
{
IssuableListTabs
,
IssuableStates
}
from
'
~/
vue_shared/issuable/
list/constants
'
;
import
IssuesListApp
from
'
~/issues_list/components/issues_list_app.vue
'
;
import
IssuesListApp
from
'
~/issues_list/components/issues_list_app.vue
'
;
import
NewIssueDropdown
from
'
~/issues_list/components/new_issue_dropdown.vue
'
;
import
NewIssueDropdown
from
'
~/issues_list/components/new_issue_dropdown.vue
'
;
import
{
import
{
...
...
spec/frontend/
issuable_
list/components/issuable_bulk_edit_sidebar_spec.js
→
spec/frontend/
vue_shared/issuable/
list/components/issuable_bulk_edit_sidebar_spec.js
View file @
6e8c6ec3
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
IssuableBulkEditSidebar
from
'
~/
issuable_
list/components/issuable_bulk_edit_sidebar.vue
'
;
import
IssuableBulkEditSidebar
from
'
~/
vue_shared/issuable/
list/components/issuable_bulk_edit_sidebar.vue
'
;
const
createComponent
=
({
expanded
=
true
}
=
{})
=>
const
createComponent
=
({
expanded
=
true
}
=
{})
=>
shallowMount
(
IssuableBulkEditSidebar
,
{
shallowMount
(
IssuableBulkEditSidebar
,
{
...
...
spec/frontend/
issuable_
list/components/issuable_item_spec.js
→
spec/frontend/
vue_shared/issuable/
list/components/issuable_item_spec.js
View file @
6e8c6ec3
import
{
GlLink
,
GlLabel
,
GlIcon
,
GlFormCheckbox
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
GlLink
,
GlLabel
,
GlIcon
,
GlFormCheckbox
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
useFakeDate
}
from
'
helpers/fake_date
'
;
import
{
useFakeDate
}
from
'
helpers/fake_date
'
;
import
{
shallowMountExtended
as
shallowMount
}
from
'
helpers/vue_test_utils_helper
'
;
import
{
shallowMountExtended
as
shallowMount
}
from
'
helpers/vue_test_utils_helper
'
;
import
IssuableItem
from
'
~/
issuable_
list/components/issuable_item.vue
'
;
import
IssuableItem
from
'
~/
vue_shared/issuable/
list/components/issuable_item.vue
'
;
import
IssuableAssignees
from
'
~/vue_shared/components/issue/issue_assignees.vue
'
;
import
IssuableAssignees
from
'
~/vue_shared/components/issue/issue_assignees.vue
'
;
import
{
mockIssuable
,
mockRegularLabel
,
mockScopedLabel
}
from
'
../mock_data
'
;
import
{
mockIssuable
,
mockRegularLabel
,
mockScopedLabel
}
from
'
../mock_data
'
;
...
...
spec/frontend/
issuable_
list/components/issuable_list_root_spec.js
→
spec/frontend/
vue_shared/issuable/
list/components/issuable_list_root_spec.js
View file @
6e8c6ec3
...
@@ -4,9 +4,9 @@ import VueDraggable from 'vuedraggable';
...
@@ -4,9 +4,9 @@ import VueDraggable from 'vuedraggable';
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
IssuableItem
from
'
~/
issuable_
list/components/issuable_item.vue
'
;
import
IssuableItem
from
'
~/
vue_shared/issuable/
list/components/issuable_item.vue
'
;
import
IssuableListRoot
from
'
~/
issuable_
list/components/issuable_list_root.vue
'
;
import
IssuableListRoot
from
'
~/
vue_shared/issuable/
list/components/issuable_list_root.vue
'
;
import
IssuableTabs
from
'
~/
issuable_
list/components/issuable_tabs.vue
'
;
import
IssuableTabs
from
'
~/
vue_shared/issuable/
list/components/issuable_tabs.vue
'
;
import
FilteredSearchBar
from
'
~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue
'
;
import
FilteredSearchBar
from
'
~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue
'
;
import
{
mockIssuableListProps
,
mockIssuables
}
from
'
../mock_data
'
;
import
{
mockIssuableListProps
,
mockIssuables
}
from
'
../mock_data
'
;
...
...
spec/frontend/
issuable_
list/components/issuable_tabs_spec.js
→
spec/frontend/
vue_shared/issuable/
list/components/issuable_tabs_spec.js
View file @
6e8c6ec3
import
{
GlTab
,
GlBadge
}
from
'
@gitlab/ui
'
;
import
{
GlTab
,
GlBadge
}
from
'
@gitlab/ui
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
IssuableTabs
from
'
~/
issuable_
list/components/issuable_tabs.vue
'
;
import
IssuableTabs
from
'
~/
vue_shared/issuable/
list/components/issuable_tabs.vue
'
;
import
{
mockIssuableListProps
}
from
'
../mock_data
'
;
import
{
mockIssuableListProps
}
from
'
../mock_data
'
;
...
...
spec/frontend/
issuable_
list/mock_data.js
→
spec/frontend/
vue_shared/issuable/
list/mock_data.js
View file @
6e8c6ec3
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment