Skip to content

Commit 5ade3dd

Browse files
[tools] Fix inconsistency in KPI view
1 parent 59d65bd commit 5ade3dd

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

tools-public/toolpad/pages/issuesWithoutLabels/page.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ spec:
5555
searchParams:
5656
- name: q
5757
value: is:issue no:label repo:mui/mui-x repo:mui/mui-design-kits
58-
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
58+
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
59+
repo:mui/base-ui repo:mui/pigment-css
5960
- name: order
6061
value: desc
6162
- name: sort

tools-public/toolpad/pages/missingGitHubLabel/page.yml

+29-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ spec:
1111
columnSize: 1
1212
props:
1313
value:
14-
$$jsExpression: |
15-
queryOpenNoLabels.data
14+
$$jsExpression: |-
15+
queryOpenNoLabels.data.items
1616
.concat(queryIssueCloseNoLabels.data)
17-
.concat(queryPRmergedNoLabels.data).length
17+
.concat(queryPRmergedNoLabels.data)
18+
.filter(item => !item.draft).length
1819
warning: 1
1920
problem: 10
2021
unit: ' issues or PRs'
@@ -27,10 +28,19 @@ spec:
2728
searchParams:
2829
- name: q
2930
value: no:label is:open org:mui
30-
headers: []
31+
headers:
32+
[
33+
{
34+
name: Authorization,
35+
value: { $$jsExpression: '`Bearer ${parameters.GITHUB_TOKEN}`' },
36+
},
37+
]
3138
method: GET
3239
transform: return data.items.filter(item => !item.draft);
33-
transformEnabled: true
40+
parameters:
41+
- name: GITHUB_TOKEN
42+
value:
43+
$$env: GITHUB_TOKEN
3444
- name: queryIssueCloseNoLabels
3545
query:
3646
kind: rest
@@ -39,6 +49,7 @@ spec:
3949
- name: q
4050
value: is:issue no:label is:close repo:mui/mui-x repo:mui/mui-design-kits
4151
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
52+
repo:mui/base-ui repo:mui/pigment-css
4253
headers: []
4354
method: GET
4455
transform: return data.items.filter(item => !item.draft);
@@ -50,11 +61,22 @@ spec:
5061
searchParams:
5162
- name: q
5263
value: is:pull-request no:label is:merged repo:mui/mui-x
53-
repo:mui/mui-design-kits repo:mui/material-ui
54-
headers: []
64+
repo:mui/mui-design-kits repo:mui/material-ui repo:mui/base-ui
65+
repo:mui/pigment-css
66+
headers:
67+
[
68+
{
69+
name: Authorization,
70+
value: { $$jsExpression: '`Bearer ${parameters.GITHUB_TOKEN}`' },
71+
},
72+
]
5573
method: GET
5674
transform: return data.items.filter(item => !item.draft);
5775
transformEnabled: true
76+
parameters:
77+
- name: GITHUB_TOKEN
78+
value:
79+
$$env: GITHUB_TOKEN
5880
display: shell
5981
alias:
6082
- bse3h9c

0 commit comments

Comments
 (0)