UBER-408 Issue as task (#3497)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-07-13 19:33:23 +06:00
committed by GitHub
parent d29a2df4d9
commit ab02db5890
46 changed files with 216 additions and 175 deletions
+2
View File
@@ -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),
+2 -2
View File
@@ -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)
}
)
)