mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
UBER-408 Issue as task (#3497)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -26,6 +26,7 @@ const object: AttachedData<Issue> = {
|
||||
milestone: null,
|
||||
number: 0,
|
||||
rank: '',
|
||||
doneState: null,
|
||||
status: '' as Ref<IssueStatus>,
|
||||
priority: IssuePriority.NoPriority,
|
||||
dueDate: null,
|
||||
@@ -86,6 +87,7 @@ async function genIssue (client: TxOperations, statuses: Ref<IssueStatus>[]): Pr
|
||||
component: object.component,
|
||||
milestone: object.milestone,
|
||||
number: (incResult as any).object.sequence,
|
||||
doneState: null,
|
||||
status: faker.random.arrayElement(statuses),
|
||||
priority: faker.random.arrayElement(Object.values(IssuePriority)) as IssuePriority,
|
||||
rank: calcRank(lastOne, undefined),
|
||||
|
||||
@@ -158,7 +158,7 @@ async function genApplicant (
|
||||
const applicant: AttachedData<Applicant> = {
|
||||
number: faker.datatype.number(),
|
||||
assignee: faker.random.arrayElement(emoloyeeIds),
|
||||
state: faker.random.arrayElement(states),
|
||||
status: faker.random.arrayElement(states),
|
||||
doneState: null,
|
||||
rank: rank as string,
|
||||
startDate: null,
|
||||
@@ -201,7 +201,7 @@ async function genApplicant (
|
||||
recruit.class.Applicant,
|
||||
'applications',
|
||||
{
|
||||
state: faker.random.arrayElement(states)
|
||||
status: faker.random.arrayElement(states)
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user