Skip to content

Commit db94311

Browse files
committed
enable list deprecations for workspace and resolve existing
Signed-off-by: Kurt King <[email protected]>
1 parent e6f17b0 commit db94311

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@backstage-community/plugin-gocd': patch
3+
---
4+
5+
Replaces global JSX with React.JSX

workspaces/gocd/bcp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"autoVersionBump": true,
3-
"knipReports": false
3+
"knipReports": false,
4+
"listDeprecations": true
45
}

workspaces/gocd/plugins/gocd/src/api/gocdApi.client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { setupRequestMockHandlers } from '@backstage/test-utils';
17+
import { registerMswTestHooks } from '@backstage/test-utils';
1818
import { GoCdClientApi } from './gocdApi.client';
1919
import { HttpResponse, http } from 'msw';
2020
import { setupServer } from 'msw/node';
2121
import { PipelineHistory } from './gocdApi.model';
2222

2323
describe('GoCdClientApi', () => {
2424
const server = setupServer();
25-
setupRequestMockHandlers(server);
25+
registerMswTestHooks(server);
2626

2727
it('makes requests through the proxy, using the provided fetch api', async () => {
2828
const response: PipelineHistory = {

workspaces/gocd/plugins/gocd/src/components/GoCdBuildsComponent/GoCdBuildsComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { useState } from 'react';
16+
import { useState, JSX } from 'react';
1717
import { Entity } from '@backstage/catalog-model';
1818
import {
1919
useEntity,

workspaces/gocd/plugins/gocd/src/components/GoCdBuildsInsights/GoCdBuildsInsights.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import { JSX } from 'react';
1617
import { groupBy, mean } from 'lodash';
1718
import {
1819
PipelineHistory,

workspaces/gocd/plugins/gocd/src/components/GoCdBuildsTable/GoCdBuildsTable.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { useState } from 'react';
17-
18-
import * as React from 'react';
16+
import { useState, JSX } from 'react';
1917
import { Entity, getEntitySourceLocation } from '@backstage/catalog-model';
2018
import { useEntity } from '@backstage/plugin-catalog-react';
2119
import Alert from '@material-ui/lab/Alert';

workspaces/gocd/plugins/gocd/src/components/Select/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import { JSX } from 'react';
1617
import FormControl from '@material-ui/core/FormControl';
1718
import InputLabel from '@material-ui/core/InputLabel';
1819
import MenuItem from '@material-ui/core/MenuItem';
1920
import Select from '@material-ui/core/Select';
2021
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
21-
import * as React from 'react';
2222

2323
export type Item = {
2424
label: string;

0 commit comments

Comments
 (0)