Skip to content

Commit 7814cd5

Browse files
committed
turned off git integration for non-github for current version
Signed-off-by: RAWx18 <rawx18.dev@gmail.com>
1 parent d16b278 commit 7814cd5

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

backend/src/api/integration/helpers/gitAuthenticate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import Permissions from '../../../security/permissions'
22
import IntegrationService from '../../../services/integrationService'
33
import PermissionChecker from '../../../services/user/permissionChecker'
44

5+
// TODO: Git integration is temporarily disabled from the UI
6+
// Will be re-enabled in the future to support syncing with different Git platforms
7+
// (GitLab, Bitbucket, self-hosted Git servers, etc.)
58
export default async (req, res) => {
69
new PermissionChecker(req).validateHas(Permissions.values.tenantEdit)
710
const payload = await new IntegrationService(req).gitConnectOrUpdate(req.body)

backend/src/api/integration/helpers/gitGetRemotes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import Permissions from '../../../security/permissions'
22
import IntegrationService from '../../../services/integrationService'
33
import PermissionChecker from '../../../services/user/permissionChecker'
44

5+
// TODO: Git integration is temporarily disabled from the UI
6+
// Will be re-enabled in the future to support syncing with different Git platforms
7+
// (GitLab, Bitbucket, self-hosted Git servers, etc.)
58
export default async (req, res) => {
69
new PermissionChecker(req).validateHas(Permissions.values.tenantEdit)
710
const payload = await new IntegrationService(req).gitGetRemotes()

backend/src/api/integration/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export default (app) => {
4848
app.put(`/reddit-onboard/:tenantId`, safeWrap(require('./helpers/redditOnboard').default))
4949
app.put('/linkedin-connect/:tenantId', safeWrap(require('./helpers/linkedinConnect').default))
5050
app.post('/linkedin-onboard/:tenantId', safeWrap(require('./helpers/linkedinOnboard').default))
51+
// TODO: Git integration endpoints are temporarily disabled from the UI
52+
// Will be re-enabled in the future to support syncing with different Git platforms
5153
app.put(`/tenant/:tenantId/git-connect`, safeWrap(require('./helpers/gitAuthenticate').default))
5254
app.get('/tenant/:tenantId/git', safeWrap(require('./helpers/gitGetRemotes').default))
5355
app.get(

backend/src/services/integrationService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,9 @@ export default class IntegrationService {
12571257

12581258
/**
12591259
* Adds/updates Git integration
1260+
* TODO: Git integration is temporarily disabled from the UI
1261+
* Will be re-enabled in the future to support syncing with different Git platforms
1262+
* (GitLab, Bitbucket, self-hosted Git servers, etc.)
12601263
* @param integrationData to create the integration object
12611264
* @returns integration object
12621265
*/
@@ -1285,6 +1288,8 @@ export default class IntegrationService {
12851288

12861289
/**
12871290
* Get all remotes for the Git integration, by segment
1291+
* TODO: Git integration is temporarily disabled from the UI
1292+
* Will be re-enabled in the future to support syncing with different Git platforms
12881293
* @returns Remotes for the Git integration
12891294
*/
12901295
async gitGetRemotes() {

frontend/src/integrations/git/config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
import config from '@/config';
1+
// import config from '@/config';
22
import GitConnect from './components/git-connect.vue';
33

44
export default {
5-
enabled: config.isGitEnabled,
6-
hideAsIntegration: !config.isGitEnabled,
5+
// TODO: Git integration is temporarily disabled from the UI
6+
// Will be re-enabled in the future to support syncing with different Git platforms
7+
// (GitLab, Bitbucket, self-hosted Git servers, etc.)
8+
enabled: false, // config.isGitEnabled,
9+
hideAsIntegration: true, // !config.isGitEnabled,
710
name: 'Git',
811
backgroundColor: '#FFFFFF',
912
borderColor: '#FFFFFF',

services/libs/types/src/enums/platforms.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export enum PlatformType {
1515
PRODUCTHUNT = 'producthunt',
1616
YOUTUBE = 'youtube',
1717
DISCOURSE = 'discourse',
18+
// TODO: Git integration is temporarily disabled from the UI
19+
// Will be re-enabled in the future to support syncing with different Git platforms
20+
// (GitLab, Bitbucket, self-hosted Git servers, etc.)
1821
GIT = 'git',
1922
CRUNCHBASE = 'crunchbase',
2023
HUBSPOT = 'hubspot',
@@ -36,6 +39,8 @@ export enum IntegrationType {
3639
LINKEDIN = 'linkedin',
3740
GITMESH = 'gitmesh',
3841
DISCOURSE = 'discourse',
42+
// TODO: Git integration is temporarily disabled from the UI
43+
// Will be re-enabled in the future to support syncing with different Git platforms
3944
GIT = 'git',
4045
HUBSPOT = 'hubspot',
4146
}

0 commit comments

Comments
 (0)