mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
TSK-1263 Inbox configurator (#3067)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user