Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/subnet/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func ProcessUploadInfo(info interface{}, uploadType string, filename string) ([]
if uploadType == "health" {
return processHealthReport(info, filename)
}
return nil, "", errors.New("invalid Subnet upload type")
return nil, "", errors.New("invalid SUBNET upload type")
}

func UploadFileToSubnet(info []byte, client *xhttp.Client, reqURL string, headers map[string]string, formDataType string) (string, error) {
Expand Down
13 changes: 7 additions & 6 deletions portal-ui/src/api/consoleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1711,9 +1711,10 @@ export class HttpClient<SecurityDataType = unknown> {
? { "Content-Type": type }
: {}),
},
signal: cancelToken
? this.createAbortSignal(cancelToken)
: requestParams.signal,
signal:
(cancelToken
? this.createAbortSignal(cancelToken)
: requestParams.signal) || null,
body:
typeof body === "undefined" || body === null
? null
Expand Down Expand Up @@ -4001,7 +4002,7 @@ export class Api<
*
* @tags Subnet
* @name SubnetRegToken
* @summary Subnet registraton token
* @summary SUBNET registraton token
* @request GET:/subnet/registration-token
* @secure
*/
Expand Down Expand Up @@ -4080,7 +4081,7 @@ export class Api<
*
* @tags Subnet
* @name SubnetLogin
* @summary Login to subnet
* @summary Login to SUBNET
* @request POST:/subnet/login
* @secure
*/
Expand All @@ -4100,7 +4101,7 @@ export class Api<
*
* @tags Subnet
* @name SubnetLoginMfa
* @summary Login to subnet using mfa
* @summary Login to SUBNET using mfa
* @request POST:/subnet/login/mfa
* @secure
*/
Expand Down
10 changes: 5 additions & 5 deletions portal-ui/src/screens/Console/HealthInfo/HealthInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ const HealthInfo = () => {
!subnetResponse.toLowerCase().includes("error") && (
<Grid item xs={12}>
<strong>
Health report uploaded to Subnet successfully!
Health report uploaded to SUBNET successfully!
</strong>
&nbsp;{" "}
<strong>
See the results on your{" "}
<a href={subnetResponse}>Subnet Dashboard</a>{" "}
<a href={subnetResponse}>SUBNET Dashboard</a>{" "}
</strong>
</Grid>
)}
Expand All @@ -263,12 +263,12 @@ const HealthInfo = () => {
<Grid item xs={12}>
<strong>
Something went wrong uploading your Health report to
Subnet.
SUBNET.
</strong>
&nbsp;{" "}
<strong>
Log into your{" "}
<a href="https://subnet.min.io">Subnet Account</a> to
<a href="https://subnet.min.io">SUBNET Account</a> to
manually upload your Health report.
</strong>
</Grid>
Expand Down Expand Up @@ -330,7 +330,7 @@ const HealthInfo = () => {
<br />
<HelpBox
title={
"Cluster Health Report will be uploaded to Subnet, and is viewable from your Subnet Diagnostics dashboard."
"Cluster Health Report will be uploaded to SUBNET, and is viewable from your SUBNET Diagnostics dashboard."
}
iconComponent={<InfoIcon />}
help={
Expand Down
12 changes: 6 additions & 6 deletions restapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion restapi/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var (
ErrEncryptionConfigNotFound = errors.New("encryption configuration not found")
ErrPolicyNotFound = errors.New("policy does not exist")
ErrLoginNotAllowed = errors.New("login not allowed")
ErrSubnetUploadFail = errors.New("Subnet upload failed")
ErrSubnetUploadFail = errors.New("SUBNET upload failed")
ErrHealthReportFail = errors.New("failure to generate Health report")
)

Expand Down
2 changes: 1 addition & 1 deletion restapi/operations/subnet/subnet_login.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion restapi/operations/subnet/subnet_login_m_f_a.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion restapi/operations/subnet/subnet_reg_token.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ paths:
- Profile
/subnet/registration-token:
get:
summary: Subnet registraton token
summary: SUBNET registraton token
operationId: SubnetRegToken
responses:
200:
Expand Down Expand Up @@ -2466,7 +2466,7 @@ paths:

/subnet/login:
post:
summary: Login to subnet
summary: Login to SUBNET
operationId: SubnetLogin
parameters:
- name: body
Expand All @@ -2488,7 +2488,7 @@ paths:

/subnet/login/mfa:
post:
summary: Login to subnet using mfa
summary: Login to SUBNET using mfa
operationId: SubnetLoginMFA
parameters:
- name: body
Expand Down