UBERF-8522: Allow to use any assignee for github projects (#8179)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-03-10 09:04:25 +07:00
committed by GitHub
parent 86cee505b1
commit d5547a623e
7 changed files with 118 additions and 85 deletions
+20 -17
View File
@@ -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: [],