Skip to content

Commit 6e62467

Browse files
authored
Renamed Subnet strings to SUBNET (#3026)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent f8e4f74 commit 6e62467

File tree

9 files changed

+26
-25
lines changed

9 files changed

+26
-25
lines changed

pkg/subnet/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func ProcessUploadInfo(info interface{}, uploadType string, filename string) ([]
8383
if uploadType == "health" {
8484
return processHealthReport(info, filename)
8585
}
86-
return nil, "", errors.New("invalid Subnet upload type")
86+
return nil, "", errors.New("invalid SUBNET upload type")
8787
}
8888

8989
func UploadFileToSubnet(info []byte, client *xhttp.Client, reqURL string, headers map[string]string, formDataType string) (string, error) {

portal-ui/src/api/consoleApi.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,9 +1711,10 @@ export class HttpClient<SecurityDataType = unknown> {
17111711
? { "Content-Type": type }
17121712
: {}),
17131713
},
1714-
signal: cancelToken
1715-
? this.createAbortSignal(cancelToken)
1716-
: requestParams.signal,
1714+
signal:
1715+
(cancelToken
1716+
? this.createAbortSignal(cancelToken)
1717+
: requestParams.signal) || null,
17171718
body:
17181719
typeof body === "undefined" || body === null
17191720
? null
@@ -4001,7 +4002,7 @@ export class Api<
40014002
*
40024003
* @tags Subnet
40034004
* @name SubnetRegToken
4004-
* @summary Subnet registraton token
4005+
* @summary SUBNET registraton token
40054006
* @request GET:/subnet/registration-token
40064007
* @secure
40074008
*/
@@ -4080,7 +4081,7 @@ export class Api<
40804081
*
40814082
* @tags Subnet
40824083
* @name SubnetLogin
4083-
* @summary Login to subnet
4084+
* @summary Login to SUBNET
40844085
* @request POST:/subnet/login
40854086
* @secure
40864087
*/
@@ -4100,7 +4101,7 @@ export class Api<
41004101
*
41014102
* @tags Subnet
41024103
* @name SubnetLoginMfa
4103-
* @summary Login to subnet using mfa
4104+
* @summary Login to SUBNET using mfa
41044105
* @request POST:/subnet/login/mfa
41054106
* @secure
41064107
*/

portal-ui/src/screens/Console/HealthInfo/HealthInfo.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ const HealthInfo = () => {
248248
!subnetResponse.toLowerCase().includes("error") && (
249249
<Grid item xs={12}>
250250
<strong>
251-
Health report uploaded to Subnet successfully!
251+
Health report uploaded to SUBNET successfully!
252252
</strong>
253253
&nbsp;{" "}
254254
<strong>
255255
See the results on your{" "}
256-
<a href={subnetResponse}>Subnet Dashboard</a>{" "}
256+
<a href={subnetResponse}>SUBNET Dashboard</a>{" "}
257257
</strong>
258258
</Grid>
259259
)}
@@ -263,12 +263,12 @@ const HealthInfo = () => {
263263
<Grid item xs={12}>
264264
<strong>
265265
Something went wrong uploading your Health report to
266-
Subnet.
266+
SUBNET.
267267
</strong>
268268
&nbsp;{" "}
269269
<strong>
270270
Log into your{" "}
271-
<a href="https://subnet.min.io">Subnet Account</a> to
271+
<a href="https://subnet.min.io">SUBNET Account</a> to
272272
manually upload your Health report.
273273
</strong>
274274
</Grid>
@@ -330,7 +330,7 @@ const HealthInfo = () => {
330330
<br />
331331
<HelpBox
332332
title={
333-
"Cluster Health Report will be uploaded to Subnet, and is viewable from your Subnet Diagnostics dashboard."
333+
"Cluster Health Report will be uploaded to SUBNET, and is viewable from your SUBNET Diagnostics dashboard."
334334
}
335335
iconComponent={<InfoIcon />}
336336
help={

restapi/embedded_spec.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

restapi/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var (
7171
ErrEncryptionConfigNotFound = errors.New("encryption configuration not found")
7272
ErrPolicyNotFound = errors.New("policy does not exist")
7373
ErrLoginNotAllowed = errors.New("login not allowed")
74-
ErrSubnetUploadFail = errors.New("Subnet upload failed")
74+
ErrSubnetUploadFail = errors.New("SUBNET upload failed")
7575
ErrHealthReportFail = errors.New("failure to generate Health report")
7676
)
7777

restapi/operations/subnet/subnet_login.go

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

restapi/operations/subnet/subnet_login_m_f_a.go

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

restapi/operations/subnet/subnet_reg_token.go

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

swagger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ paths:
23942394
- Profile
23952395
/subnet/registration-token:
23962396
get:
2397-
summary: Subnet registraton token
2397+
summary: SUBNET registraton token
23982398
operationId: SubnetRegToken
23992399
responses:
24002400
200:
@@ -2466,7 +2466,7 @@ paths:
24662466

24672467
/subnet/login:
24682468
post:
2469-
summary: Login to subnet
2469+
summary: Login to SUBNET
24702470
operationId: SubnetLogin
24712471
parameters:
24722472
- name: body
@@ -2488,7 +2488,7 @@ paths:
24882488

24892489
/subnet/login/mfa:
24902490
post:
2491-
summary: Login to subnet using mfa
2491+
summary: Login to SUBNET using mfa
24922492
operationId: SubnetLoginMFA
24932493
parameters:
24942494
- name: body

0 commit comments

Comments
 (0)