Skip to content

Commit 2bc2ceb

Browse files
authored
[2024-06-01] Update tooling for 4.6 EOL (#4931)
* Update tooling for 4.6 eol No-Issue * Token insights - remove MyDistribution query, drop synclist url reverts #4198 / reapplies #3708, #3346, #3893 (AAP 2.3 is EOL, no need to support it on cloud) keep 2.4 synclist deprecation notice
1 parent 0ab7a72 commit 2bc2ceb

File tree

6 files changed

+2
-111
lines changed

6 files changed

+2
-111
lines changed

.github/dependabot.yml

-50
Original file line numberDiff line numberDiff line change
@@ -53,40 +53,6 @@ updates:
5353
- dependency-name: 'react-dom'
5454
update-types: ['version-update:semver-major']
5555

56-
- package-ecosystem: 'npm'
57-
directory: '/'
58-
target-branch: 'stable-4.6'
59-
schedule:
60-
interval: 'monthly'
61-
commit-message:
62-
prefix: '[stable-4.6] '
63-
groups:
64-
babel:
65-
patterns:
66-
- "@babel/*"
67-
- "babel-core"
68-
- "babel-loader"
69-
lingui:
70-
patterns:
71-
- "@lingui/*"
72-
react:
73-
patterns:
74-
- "react"
75-
- "react-dom"
76-
- "@types/react"
77-
- "@types/react-dom"
78-
ignore:
79-
- dependency-name: '@lingui/*'
80-
update-types: ['version-update:semver-major']
81-
- dependency-name: '@patternfly/*'
82-
update-types: ['version-update:semver-major']
83-
- dependency-name: '@types/*'
84-
update-types: ['version-update:semver-major']
85-
- dependency-name: 'react'
86-
update-types: ['version-update:semver-major']
87-
- dependency-name: 'react-dom'
88-
update-types: ['version-update:semver-major']
89-
9056
# npm in test/
9157

9258
- package-ecosystem: 'npm'
@@ -102,14 +68,6 @@ updates:
10268
commit-message:
10369
prefix: '[stable-4.9] '
10470

105-
- package-ecosystem: 'npm'
106-
directory: '/test'
107-
target-branch: 'stable-4.6'
108-
schedule:
109-
interval: 'monthly'
110-
commit-message:
111-
prefix: '[stable-4.6] '
112-
11371
# github-actions
11472

11573
- package-ecosystem: 'github-actions'
@@ -124,11 +82,3 @@ updates:
12482
prefix: '[stable-4.9] '
12583
schedule:
12684
interval: "monthly"
127-
128-
- package-ecosystem: 'github-actions'
129-
directory: '/'
130-
target-branch: 'stable-4.6'
131-
commit-message:
132-
prefix: '[stable-4.6] '
133-
schedule:
134-
interval: 'monthly'

.github/workflows/i18n.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
matrix:
1616
branch:
1717
- 'master'
18-
- 'stable-4.6'
1918
- 'stable-4.9'
2019

2120
steps:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ To map between the two:
113113

114114
|AAP version|AAH version|
115115
|-|-|
116-
|2.3|4.6|
117116
|2.4|4.9|
118117

119118
[Table with component versions](https://github.com/ansible/galaxy_ng/wiki/Galaxy-NG-Version-Matrix)

src/api/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export { LegacyImportAPI } from './legacy-import';
2424
export { LegacyNamespaceAPI } from './legacy-namespace';
2525
export { LegacyRoleAPI } from './legacy-role';
2626
export { LegacySyncAPI } from './legacy-sync';
27-
export { MyDistributionAPI } from './my-distribution';
2827
export { MyNamespaceAPI } from './my-namespace';
2928
export { MySyncListAPI } from './my-synclist';
3029
export { NamespaceAPI } from './namespace';

src/api/my-distribution.ts

-7
This file was deleted.

src/containers/token/token-insights.tsx

+2-51
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { Trans, t } from '@lingui/macro';
22
import { Button } from '@patternfly/react-core';
33
import React, { Component } from 'react';
4-
import { MyDistributionAPI } from 'src/api';
54
import {
6-
Alert,
75
AlertList,
86
type AlertType,
97
BaseHeader,
@@ -14,16 +12,10 @@ import {
1412
closeAlert,
1513
} from 'src/components';
1614
import { AppContext } from 'src/loaders/app-context';
17-
import {
18-
type RouteProps,
19-
getRepoURL,
20-
jsxErrorMessage,
21-
withRouter,
22-
} from 'src/utilities';
15+
import { type RouteProps, getRepoURL, withRouter } from 'src/utilities';
2316

2417
interface IState {
2518
alerts: AlertType[];
26-
synclistBasePath?: string;
2719
tokenData?: {
2820
access_token: string;
2921
expires_in: number;
@@ -44,14 +36,12 @@ class TokenInsights extends Component<RouteProps, IState> {
4436

4537
this.state = {
4638
alerts: [],
47-
synclistBasePath: null,
4839
tokenData: null,
4940
};
5041
}
5142

5243
componentDidMount() {
5344
this.getTokenData();
54-
this.getSynclistBasePath();
5545
}
5646

5747
getTokenData() {
@@ -67,34 +57,8 @@ class TokenInsights extends Component<RouteProps, IState> {
6757
.then(({ data: tokenData }) => this.setState({ tokenData }));
6858
}
6959

70-
getSynclistBasePath() {
71-
MyDistributionAPI.list()
72-
.then(({ data }) => {
73-
const syncDistro = data.data.find(({ base_path }) =>
74-
base_path.includes('synclist'),
75-
);
76-
this.setState({
77-
synclistBasePath: syncDistro?.base_path,
78-
});
79-
})
80-
.catch((e) => {
81-
const { status, statusText } = e.response;
82-
this.setState({
83-
synclistBasePath: null,
84-
alerts: [
85-
...this.state.alerts,
86-
{
87-
variant: 'danger',
88-
title: t`Server URL could not be displayed.`,
89-
description: jsxErrorMessage(status, statusText),
90-
},
91-
],
92-
});
93-
});
94-
}
95-
9660
render() {
97-
const { alerts, synclistBasePath, tokenData } = this.state;
61+
const { alerts, tokenData } = this.state;
9862
const renewTokenCmd = `curl https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token -d grant_type=refresh_token -d client_id="cloud-services" -d refresh_token="${
9963
tokenData?.refresh_token ?? '{{ user_token }}'
10064
}" --fail --silent --show-error --output /dev/null`;
@@ -200,21 +164,8 @@ class TokenInsights extends Component<RouteProps, IState> {
200164
Synclists are deprecated in AAP 2.4 and will be removed in a
201165
future release, use client-side <code>requirements.yml</code>{' '}
202166
instead.
203-
<br />
204-
If you&apos;re using sync toggles with AAP 2.3 or older, you
205-
will need to use a different URL:
206167
</Trans>
207168
</p>
208-
{synclistBasePath ? (
209-
<CopyURL url={getRepoURL(synclistBasePath)} />
210-
) : (
211-
<Alert
212-
variant='danger'
213-
isInline
214-
title={t`Synclist distribution was not found.`}
215-
className='hub-content-alert-fix'
216-
/>
217-
)}
218169
</section>
219170
<section className='body'>
220171
<h2>{t`SSO URL`}</h2>

0 commit comments

Comments
 (0)