Skip to content

Commit 2896b5e

Browse files
authored
Merge pull request #417 from PagerDuty/release/0.12.1-beta.0
2 parents 329a583 + f99733e commit 2896b5e

File tree

7 files changed

+541
-450
lines changed

7 files changed

+541
-450
lines changed

.github/workflows/cd-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
VITE_PD_SUBDOMAIN_ALLOW_LIST: '*'
3131
VITE_PD_OAUTH_CLIENT_ID: ${{ secrets.PD_OAUTH_CLIENT_ID }}
3232
VITE_PD_OAUTH_CLIENT_SECRET: ${{ secrets.PD_OAUTH_CLIENT_SECRET }}
33-
VITE_PD_REQUIRED_ABILITY: ${{ secrets.PD_REQUIRED_ABILITY }}
33+
VITE_PD_REQUIRED_ABILITY: 'teams'
3434
VITE_DD_APPLICATION_ID: ${{ secrets.DD_APPLICATION_ID }}
3535
VITE_DD_CLIENT_TOKEN: ${{ secrets.DD_CLIENT_TOKEN }}
3636
VITE_DD_SITE: ${{ secrets.DD_SITE }}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pd-live-react",
33
"homepage": "https://pagerduty.github.io/pd-live-react",
4-
"version": "0.12.0-beta.0",
4+
"version": "0.12.1-beta.0",
55
"private": true,
66
"dependencies": {
77
"@chakra-ui/icons": "^2.1.1",
@@ -15,11 +15,11 @@
1515
"@fortawesome/free-solid-svg-icons": "^6.4.2",
1616
"@fortawesome/react-fontawesome": "^0.2.0",
1717
"@pagerduty/pdjs": "^2.2.3",
18-
"@types/jest": "^29.5.4",
18+
"@types/jest": "^29.5.12",
1919
"@types/node": "^20.10.8",
2020
"@types/react": "^18.2.55",
2121
"@types/react-dom": "^18.2.17",
22-
"axios": "^1.6.2",
22+
"axios": "^1.6.7",
2323
"bootstrap": "^4.6.2",
2424
"bottleneck": "^2.19.5",
2525
"chakra-react-select": "^4.7.0",
@@ -106,13 +106,13 @@
106106
"@testing-library/react": "^14.1.2",
107107
"@testing-library/react-hooks": "^8.0.1",
108108
"@testing-library/user-event": "^14.4.3",
109-
"@vitejs/plugin-react": "^4.0.4",
109+
"@vitejs/plugin-react": "^4.2.1",
110110
"@welldone-software/why-did-you-render": "^7.0.1",
111111
"babel-jest": "^29.6.3",
112112
"cypress": "^13.5.1",
113113
"cypress-fail-fast": "^7.0.3",
114114
"cypress-real-events": "^1.11.0",
115-
"dotenv": "^16.3.1",
115+
"dotenv": "^16.4.4",
116116
"eslint": "^8.43.0",
117117
"eslint-config-airbnb": "^18.2.1",
118118
"eslint-config-prettier": "^9.0.0",
@@ -129,9 +129,9 @@
129129
"eslint-plugin-styled-components-a11y": "^2.1.31",
130130
"genversion": "^3.1.1",
131131
"gh-pages": "^6.1.1",
132-
"i18next-parser": "^8.9.0",
132+
"i18next-parser": "^8.12.0",
133133
"identity-obj-proxy": "^3.0.0",
134-
"jest": "^29.6.3",
134+
"jest": "^29.7.0",
135135
"jest-canvas-mock": "^2.5.2",
136136
"jest-environment-jsdom": "^29.7.0",
137137
"jest-environment-node": "^29.7.0",

src/components/IncidentTable/subcomponents/NumAlertsComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const NumAlertsComponent = ({
5151
};
5252
const getAlertsForIncidents = useCallback(
5353
(ids) => {
54-
dispatch(getAlertsForIncidentsAsyncConnected(ids));
54+
dispatch(getAlertsForIncidentsAsyncConnected(ids, true));
5555
},
5656
[dispatch],
5757
);

src/config/version.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/redux/incidents/actions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ export const getIncidentsAsync = () => ({
3737
type: FETCH_INCIDENTS_REQUESTED,
3838
});
3939

40-
export const getAlertsForIncidentsAsync = (incidentIds) => ({
40+
export const getAlertsForIncidentsAsync = (incidentIds, isRefetch = false) => ({
4141
type: FETCH_ALERTS_FOR_INCIDENTS_REQUESTED,
4242
incidentIds,
43+
isRefetch,
4344
});
4445

4546
export const getNotesForIncidentsAsync = (incidentIds) => ({

src/redux/incidents/reducers.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,19 @@ const incidents = produce(
6363
break;
6464

6565
case FETCH_ALERTS_FOR_INCIDENTS_REQUESTED:
66-
draft.incidentAlerts = {
67-
...draft.incidentAlerts,
68-
// dict with keys as the strings of incident ids array and values as { status: 'fetching' }
69-
...action.incidentIds.reduce((acc, incidentId) => {
70-
// eslint-disable-next-line no-param-reassign
71-
acc[incidentId] = {
72-
status: 'fetching',
73-
};
74-
return acc;
75-
}, {}),
76-
};
66+
if (!(action.isRefetch)) {
67+
draft.incidentAlerts = {
68+
...draft.incidentAlerts,
69+
// dict with keys as the strings of incident ids array and values as { status: 'fetching' }
70+
...action.incidentIds.reduce((acc, incidentId) => {
71+
// eslint-disable-next-line no-param-reassign
72+
acc[incidentId] = {
73+
status: 'fetching',
74+
};
75+
return acc;
76+
}, {}),
77+
};
78+
}
7779
draft.status = FETCH_ALERTS_FOR_INCIDENTS_REQUESTED;
7880
break;
7981

0 commit comments

Comments
 (0)