Skip to content

Commit 6500cb8

Browse files
authored
chore: disable package downloads and dependency (#3519)
1 parent 09071ab commit 6500cb8

2 files changed

Lines changed: 24 additions & 20 deletions

File tree

  • frontend/src/modules/admin/modules/insights-projects
  • services/libs/types/src/enums

frontend/src/modules/admin/modules/insights-projects/widgets.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export enum Widgets {
1313
// GITHUB_MENTIONS = 'githubMentions',
1414
// PRESS_MENTIONS = 'pressMentions',
1515
SEARCH_QUERIES = 'searchQueries',
16-
PACKAGE_DOWNLOADS = 'packageDownloads',
17-
PACKAGE_DEPENDENCY = 'packageDependency',
16+
// PACKAGE_DOWNLOADS = 'packageDownloads',
17+
// PACKAGE_DEPENDENCY = 'packageDependency',
1818
MAILING_LIST_MESSAGES = 'mailingListMessages',
1919
ISSUES_RESOLUTION = 'issuesResolution',
2020
COMMIT_ACTIVITIES = 'commitActivities',
@@ -77,6 +77,7 @@ export const WIDGETS_GROUPS = [
7777
name: 'Forks',
7878
key: Widgets.FORKS,
7979
},
80+
// NOTE: Not implemented yet
8081
// {
8182
// name: 'Social mentions',
8283
// key: Widgets.SOCIAL_MENTIONS,
@@ -93,14 +94,15 @@ export const WIDGETS_GROUPS = [
9394
name: 'Search queries',
9495
key: Widgets.SEARCH_QUERIES,
9596
},
96-
{
97-
name: 'Package downloads',
98-
key: Widgets.PACKAGE_DOWNLOADS,
99-
},
100-
{
101-
name: 'Package dependency',
102-
key: Widgets.PACKAGE_DEPENDENCY,
103-
},
97+
// NOTE: Temporary disabled due to legal issues
98+
// {
99+
// name: 'Package downloads',
100+
// key: Widgets.PACKAGE_DOWNLOADS,
101+
// },
102+
// {
103+
// name: 'Package dependency',
104+
// key: Widgets.PACKAGE_DEPENDENCY,
105+
// },
104106
{
105107
name: 'Mailing lists messages',
106108
key: Widgets.MAILING_LIST_MESSAGES,

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export enum Widgets {
1515
// GITHUB_MENTIONS = 'githubMentions',
1616
// PRESS_MENTIONS = 'pressMentions',
1717
SEARCH_QUERIES = 'searchQueries',
18-
PACKAGE_DOWNLOADS = 'packageDownloads',
19-
PACKAGE_DEPENDENCY = 'packageDependency',
18+
// PACKAGE_DOWNLOADS = 'packageDownloads',
19+
// PACKAGE_DEPENDENCY = 'packageDependency',
2020
MAILING_LIST_MESSAGES = 'mailingListMessages',
2121
ISSUES_RESOLUTION = 'issuesResolution',
2222
COMMIT_ACTIVITIES = 'commitActivities',
@@ -79,6 +79,7 @@ export const DEFAULT_WIDGET_VALUES: Record<
7979
enabled: true,
8080
platform: [PlatformType.GITHUB, PlatformType.GITHUB_NANGO, PlatformType.GITLAB],
8181
},
82+
// NOTE: Not implemented yet
8283
// [Widgets.SOCIAL_MENTIONS]: {
8384
// enabled: false,
8485
// platform: [ALL_PLATFORM_TYPES],
@@ -95,14 +96,15 @@ export const DEFAULT_WIDGET_VALUES: Record<
9596
enabled: true,
9697
platform: ALL_PLATFORM_TYPES,
9798
},
98-
[Widgets.PACKAGE_DOWNLOADS]: {
99-
enabled: true,
100-
platform: [PlatformType.GITHUB, PlatformType.GITHUB_NANGO],
101-
},
102-
[Widgets.PACKAGE_DEPENDENCY]: {
103-
enabled: true,
104-
platform: [PlatformType.GITHUB, PlatformType.GITHUB_NANGO],
105-
},
99+
// NOTE: Temporary disabled due to legal issues
100+
// [Widgets.PACKAGE_DOWNLOADS]: {
101+
// enabled: true,
102+
// platform: [PlatformType.GITHUB, PlatformType.GITHUB_NANGO],
103+
// },
104+
// [Widgets.PACKAGE_DEPENDENCY]: {
105+
// enabled: true,
106+
// platform: [PlatformType.GITHUB, PlatformType.GITHUB_NANGO],
107+
// },
106108
[Widgets.MAILING_LIST_MESSAGES]: {
107109
enabled: true,
108110
platform: [PlatformType.GROUPSIO],

0 commit comments

Comments
 (0)