Skip to content

Commit a95085f

Browse files
authored
feat(widgets): add commit activities to widgets (#3067)
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 3f0c2ec commit a95085f

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
UPDATE "insightsProjects"
2+
SET widgets = ARRAY_REMOVE(widgets, 'commitActivities'),
3+
"updatedAt" = CURRENT_TIMESTAMP
4+
WHERE widgets IS NOT NULL;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
UPDATE "insightsProjects"
2+
SET widgets = ARRAY(
3+
SELECT DISTINCT unnest(
4+
widgets || ARRAY [
5+
'commitActivities'
6+
]
7+
)
8+
),
9+
"updatedAt" = CURRENT_TIMESTAMP
10+
WHERE widgets IS NOT NULL;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const WIDGETS_GROUPS = [
3333
name: 'Development',
3434
widgets: [
3535
{ name: 'Issues resolution', key: 'issuesResolution' },
36+
{ name: 'Commit activities', key: 'commitActivities' },
3637
{ name: 'Pull requests', key: 'pullRequests' },
3738
{ name: 'Active days', key: 'activeDays' },
3839
{

0 commit comments

Comments
 (0)