mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
TSK-810 Rename Team -> Project, Project -> Component (#2756)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -11,18 +11,18 @@ import core, {
|
||||
TxOperations,
|
||||
WorkspaceId
|
||||
} from '@hcengineering/core'
|
||||
import tracker, { calcRank, Issue, IssuePriority, IssueStatus } from '../../../plugins/tracker/lib'
|
||||
import tracker, { calcRank, Issue, IssuePriority, IssueStatus } from '@hcengineering/tracker'
|
||||
|
||||
import { connect } from './connect'
|
||||
|
||||
let objectId: Ref<Issue> = generateId()
|
||||
const space = tracker.team.DefaultTeam
|
||||
const space = tracker.project.DefaultProject
|
||||
|
||||
const object: AttachedData<Issue> = {
|
||||
title: '',
|
||||
description: '',
|
||||
assignee: null,
|
||||
project: null,
|
||||
component: null,
|
||||
sprint: null,
|
||||
number: 0,
|
||||
rank: '',
|
||||
@@ -67,7 +67,7 @@ export async function generateIssues (
|
||||
async function genIssue (client: TxOperations): Promise<void> {
|
||||
const lastOne = await client.findOne<Issue>(tracker.class.Issue, {}, { sort: { rank: SortingOrder.Descending } })
|
||||
const incResult = await client.updateDoc(
|
||||
tracker.class.Team,
|
||||
tracker.class.Project,
|
||||
core.space.Space,
|
||||
space,
|
||||
{
|
||||
@@ -79,7 +79,7 @@ async function genIssue (client: TxOperations): Promise<void> {
|
||||
title: faker.name.title(),
|
||||
description: faker.lorem.paragraphs(),
|
||||
assignee: object.assignee,
|
||||
project: object.project,
|
||||
component: object.component,
|
||||
sprint: object.sprint,
|
||||
number: (incResult as any).object.sequence,
|
||||
status: object.status,
|
||||
|
||||
Reference in New Issue
Block a user