Commit 9be3299a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ps-rename-utils-workers-module' into 'master'

Rename utils/worker to tree_worker_utils

See merge request gitlab-org/gitlab!63561
parents 2693c74f 9ff4a7c4
import { sortTree } from '~/ide/stores/utils'; import { sortTree } from '~/ide/stores/utils';
import { generateTreeList } from '../utils/workers'; import { generateTreeList } from '../utils/tree_worker_utils';
// eslint-disable-next-line no-restricted-globals // eslint-disable-next-line no-restricted-globals
self.addEventListener('message', (e) => { self.addEventListener('message', (e) => {
......
...@@ -51,7 +51,7 @@ import { ...@@ -51,7 +51,7 @@ import {
} from '~/diffs/store/actions'; } from '~/diffs/store/actions';
import * as types from '~/diffs/store/mutation_types'; import * as types from '~/diffs/store/mutation_types';
import * as utils from '~/diffs/store/utils'; import * as utils from '~/diffs/store/utils';
import * as workerUtils from '~/diffs/utils/workers'; import * as treeWorkerUtils from '~/diffs/utils/tree_worker_utils';
import createFlash from '~/flash'; import createFlash from '~/flash';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import * as commonUtils from '~/lib/utils/common_utils'; import * as commonUtils from '~/lib/utils/common_utils';
...@@ -253,7 +253,7 @@ describe('DiffsStoreActions', () => { ...@@ -253,7 +253,7 @@ describe('DiffsStoreActions', () => {
// Workers are synchronous in Jest environment (see https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58805) // Workers are synchronous in Jest environment (see https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58805)
{ {
type: types.SET_TREE_DATA, type: types.SET_TREE_DATA,
payload: workerUtils.generateTreeList(diffMetadata.diff_files), payload: treeWorkerUtils.generateTreeList(diffMetadata.diff_files),
}, },
], ],
[], [],
......
import { generateTreeList, getLowestSingleFolder, flattenTree } from '~/diffs/utils/workers'; import {
generateTreeList,
getLowestSingleFolder,
flattenTree,
} from '~/diffs/utils/tree_worker_utils';
describe('~/diffs/utils/workers', () => { describe('~/diffs/utils/tree_worker_utils', () => {
describe('generateTreeList', () => { describe('generateTreeList', () => {
let files; let files;
......
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