Skip to content

Commit

Permalink
[tools] Fix inconsistency in KPI view
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 31, 2024
1 parent 59d65bd commit 5ade3dd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
3 changes: 2 additions & 1 deletion tools-public/toolpad/pages/issuesWithoutLabels/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ spec:
searchParams:
- name: q
value: is:issue no:label repo:mui/mui-x repo:mui/mui-design-kits
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
repo:mui/base-ui repo:mui/pigment-css
- name: order
value: desc
- name: sort
Expand Down
36 changes: 29 additions & 7 deletions tools-public/toolpad/pages/missingGitHubLabel/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ spec:
columnSize: 1
props:
value:
$$jsExpression: |
queryOpenNoLabels.data
$$jsExpression: |-
queryOpenNoLabels.data.items
.concat(queryIssueCloseNoLabels.data)
.concat(queryPRmergedNoLabels.data).length
.concat(queryPRmergedNoLabels.data)
.filter(item => !item.draft).length
warning: 1
problem: 10
unit: ' issues or PRs'
Expand All @@ -27,10 +28,19 @@ spec:
searchParams:
- name: q
value: no:label is:open org:mui
headers: []
headers:
[
{
name: Authorization,
value: { $$jsExpression: '`Bearer ${parameters.GITHUB_TOKEN}`' },
},
]
method: GET
transform: return data.items.filter(item => !item.draft);
transformEnabled: true
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
- name: queryIssueCloseNoLabels
query:
kind: rest
Expand All @@ -39,6 +49,7 @@ spec:
- name: q
value: is:issue no:label is:close repo:mui/mui-x repo:mui/mui-design-kits
repo:mui/material-ui repo:mui/mui-private repo:mui/mui-public
repo:mui/base-ui repo:mui/pigment-css
headers: []
method: GET
transform: return data.items.filter(item => !item.draft);
Expand All @@ -50,11 +61,22 @@ spec:
searchParams:
- name: q
value: is:pull-request no:label is:merged repo:mui/mui-x
repo:mui/mui-design-kits repo:mui/material-ui
headers: []
repo:mui/mui-design-kits repo:mui/material-ui repo:mui/base-ui
repo:mui/pigment-css
headers:
[
{
name: Authorization,
value: { $$jsExpression: '`Bearer ${parameters.GITHUB_TOKEN}`' },
},
]
method: GET
transform: return data.items.filter(item => !item.draft);
transformEnabled: true
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
display: shell
alias:
- bse3h9c
Expand Down

0 comments on commit 5ade3dd

Please sign in to comment.