TSK-1263 Inbox configurator (#3067)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-04-25 15:34:38 +07:00
committed by GitHub
parent aa218ab898
commit 98d71a25df
66 changed files with 1348 additions and 679 deletions
@@ -13,7 +13,6 @@
// limitations under the License.
//
import { Employee } from '@hcengineering/contact'
import core, {
AttachedDoc,
concatLink,
@@ -32,7 +31,6 @@ import core, {
} from '@hcengineering/core'
import { getMetadata } from '@hcengineering/platform'
import serverCore, { TriggerControl } from '@hcengineering/server-core'
import { addAssigneeNotification } from '@hcengineering/server-task-resources'
import tracker, { Component, Issue, IssueParentInfo, TimeSpendReport, trackerId } from '@hcengineering/tracker'
import { workbenchId } from '@hcengineering/workbench'
@@ -71,19 +69,6 @@ export async function issueTextPresenter (doc: Doc, control: TriggerControl): Pr
return issueName
}
/**
* @public
*/
export async function addTrackerAssigneeNotification (
control: TriggerControl,
res: Tx[],
issue: Issue,
assignee: Ref<Employee>,
ptx: TxCollectionCUD<Issue, AttachedDoc>
): Promise<void> {
await addAssigneeNotification(control, res, issue, assignee, ptx)
}
/**
* @public
*/
@@ -137,15 +122,6 @@ export async function OnIssueUpdate (tx: Tx, control: TriggerControl): Promise<T
const res: Tx[] = []
updateIssueParentEstimations(issue, res, control, [], issue.parents)
if (issue.assignee != null) {
await addTrackerAssigneeNotification(
control,
res,
issue,
issue.assignee,
tx as TxCollectionCUD<Issue, AttachedDoc>
)
}
return res
}
}
@@ -279,10 +255,6 @@ async function doIssueUpdate (
return currentIssue
}
if (updateTx.operations.assignee != null) {
await addTrackerAssigneeNotification(control, res, await getCurrentIssue(), updateTx.operations.assignee, tx)
}
if (Object.prototype.hasOwnProperty.call(updateTx.operations, 'attachedTo')) {
const [newParent] = await control.findAll(
tracker.class.Issue,