Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another tsc run pass which found some invalid properties #20769

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

jelly
Copy link
Member

@jelly jelly commented Jul 16, 2024

No description provided.

@jelly jelly requested a review from martinpitt July 16, 2024 16:44
@jelly
Copy link
Member Author

jelly commented Jul 16, 2024

especially fun cockpit.warn :)

Copy link
Member

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg/networkmanager/interfaces.js has another instance of cockpit.warn(), probably worth fixing too

@jelly
Copy link
Member Author

jelly commented Jul 16, 2024

pkg/networkmanager/interfaces.js has another instance of cockpit.warn(), probably worth fixing too

yes! Nicely spotted!

@@ -123,7 +123,6 @@ export const PasswordFormFields = ({
</button>
</Popover>
}
validated={error_password ? "warning" : "default"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder what the intention was here. This kinda looks like a variant field, except this component doesn't have one.

In any case, this doesn't make anything worse.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validated property normally goes into the input element inside of the FormGroup, like e.g. here in kdump. Firewall and lots of other places use that, too.

In this case it was meant to go into the TextInput className="check-passwords" below, but that already has it. So removing it here is correct.

@martinpitt
Copy link
Member

Ugh, lots and lots of failures, but they all look unsystematic/flakes. Retrying once.

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

@@ -123,7 +123,6 @@ export const PasswordFormFields = ({
</button>
</Popover>
}
validated={error_password ? "warning" : "default"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validated property normally goes into the input element inside of the FormGroup, like e.g. here in kdump. Firewall and lots of other places use that, too.

In this case it was meant to go into the TextInput className="check-passwords" below, but that already has it. So removing it here is correct.

@@ -1455,7 +1455,7 @@ export function settings_applier(model, device, connection) {
} else if (device) {
return device.activate_with_settings(settings);
} else {
cockpit.warn("No way to apply settings", connection, settings);
console.warn("No way to apply settings", connection, settings);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added line is not executed by any test.

@martinpitt martinpitt merged commit f0bec52 into cockpit-project:main Jul 17, 2024
76 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants