mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 04:49:00 +00:00
Improve kanban view (#4441)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
b15f94f885
commit
5a9774cc30
@ -120,13 +120,9 @@
|
|||||||
|
|
||||||
const lookup: Lookup<Issue> = {
|
const lookup: Lookup<Issue> = {
|
||||||
...(options?.lookup ?? {}),
|
...(options?.lookup ?? {}),
|
||||||
space: tracker.class.Project,
|
attachedTo: tracker.class.Issue,
|
||||||
status: tracker.class.IssueStatus,
|
|
||||||
component: tracker.class.Component,
|
|
||||||
milestone: tracker.class.Milestone,
|
|
||||||
_id: {
|
_id: {
|
||||||
subIssues: tracker.class.Issue,
|
subIssues: tracker.class.Issue
|
||||||
labels: tags.class.TagReference
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,6 +457,7 @@ abstract class MongoAdapterBase implements DbAdapter {
|
|||||||
res = (await cursor.toArray())[0]
|
res = (await cursor.toArray())[0]
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('error during executing cursor in findWithPipeline', clazz, cutObjectArray(query), options, e)
|
console.error('error during executing cursor in findWithPipeline', clazz, cutObjectArray(query), options, e)
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
const result = res.results as WithLookup<T>[]
|
const result = res.results as WithLookup<T>[]
|
||||||
const total = options?.total === true ? res.totalCount?.shift()?.count ?? 0 : -1
|
const total = options?.total === true ? res.totalCount?.shift()?.count ?? 0 : -1
|
||||||
|
Loading…
Reference in New Issue
Block a user