mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-29 11:19:44 +02:00
UBERF-8522: Allow to use any assignee for github projects (#8179)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -916,23 +916,26 @@ export function createModel (builder: Builder): void {
|
||||
actions: [view.action.Delete, task.action.Move, tracker.action.MoveToProject]
|
||||
})
|
||||
|
||||
builder.createDoc(presentation.class.DocRules, core.space.Model, {
|
||||
ofClass: tracker.class.Issue,
|
||||
fieldRules: [
|
||||
{
|
||||
field: 'assignee',
|
||||
query: {},
|
||||
mixin: github.mixin.GithubIssue,
|
||||
fieldQuery: {
|
||||
[github.mixin.GithubUser + '.url']: { $exists: true }
|
||||
},
|
||||
fieldQueryFill: {},
|
||||
allowConflict: false,
|
||||
disableUnset: true,
|
||||
disableEdit: true
|
||||
}
|
||||
]
|
||||
})
|
||||
// TODO: Need rework this functionality, for now we need to allow set any user,
|
||||
// and github integration will skip change of field if value is not have a proper mixin instead.
|
||||
|
||||
// builder.createDoc(presentation.class.DocRules, core.space.Model, {
|
||||
// ofClass: tracker.class.Issue,
|
||||
// fieldRules: [
|
||||
// {
|
||||
// field: 'assignee',
|
||||
// query: {},
|
||||
// mixin: github.mixin.GithubIssue,
|
||||
// fieldQuery: {
|
||||
// [github.mixin.GithubUser + '.url']: { $exists: true }
|
||||
// },
|
||||
// fieldQueryFill: {},
|
||||
// allowConflict: false,
|
||||
// disableUnset: true,
|
||||
// disableEdit: true
|
||||
// }
|
||||
// ]
|
||||
// })
|
||||
|
||||
builder.mixin(github.class.DocSyncInfo, core.class.Class, core.mixin.IndexConfiguration, {
|
||||
indexes: [],
|
||||
|
||||
Reference in New Issue
Block a user