mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-30 11:49:42 +02:00
Remove unstable/unused Github project support (#8891)
* Remove unstable/unused Github project support Signed-off-by: Andrey Sobolev <haiodo@gmail.com> * Fix unused file Signed-off-by: Andrey Sobolev <haiodo@gmail.com> --------- Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -79,13 +79,11 @@ import { createNotification } from './notifications'
|
||||
import { InstallationRecord, PlatformWorker } from './platform'
|
||||
import { CommentSyncManager } from './sync/comments'
|
||||
import { IssueSyncManager } from './sync/issues'
|
||||
import { ProjectsSyncManager } from './sync/projects'
|
||||
import { PullRequestSyncManager } from './sync/pullrequests'
|
||||
import { RepositorySyncMapper } from './sync/repository'
|
||||
import { ReviewCommentSyncManager } from './sync/reviewComments'
|
||||
import { ReviewThreadSyncManager } from './sync/reviewThreads'
|
||||
import { ReviewSyncManager } from './sync/reviews'
|
||||
import { syncConfig } from './sync/syncConfig'
|
||||
import { UsersSyncManager, fetchViewerDetails } from './sync/users'
|
||||
import { errorToObj } from './sync/utils'
|
||||
import {
|
||||
@@ -407,10 +405,6 @@ export class GithubWorker implements IntegrationManager {
|
||||
|
||||
this.mappers = [
|
||||
{ _class: [github.mixin.GithubProject], mapper: this.repositoryManager },
|
||||
{
|
||||
_class: [github.class.GithubIntegration, tracker.class.Milestone],
|
||||
mapper: new ProjectsSyncManager(this.ctx.newChild('project', {}), this._client, this.liveQuery)
|
||||
},
|
||||
{
|
||||
_class: [tracker.class.Issue],
|
||||
mapper: new IssueSyncManager(this.ctx.newChild('issue', {}), this._client, this.liveQuery, this.collaborator)
|
||||
@@ -861,7 +855,6 @@ export class GithubWorker implements IntegrationManager {
|
||||
installationName: inst?.installationName ?? '',
|
||||
enabled: !inst.suspended,
|
||||
synchronized: new Set(),
|
||||
projectStructure: new Map(),
|
||||
syncLock: new Map()
|
||||
}
|
||||
this.integrations.set(it.installationId, current)
|
||||
@@ -1287,7 +1280,7 @@ export class GithubWorker implements IntegrationManager {
|
||||
if (it.enabled) {
|
||||
const _projects = []
|
||||
for (const p of allProjects) {
|
||||
if (p.integration === it.integration._id && (!syncConfig.MainProject || it.projectStructure.has(p._id))) {
|
||||
if (p.integration === it.integration._id) {
|
||||
_projects.push(p)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user