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

Deprecate fslist1 channel #21055

Merged

Conversation

martinpitt
Copy link
Member

Part of #19999

fsinfo supersedes it, and we don't want new code to use this channel.
This was the last user of the old fslist1 channel in all known Cockpit
projects.

Part of cockpit-project#19999
@martinpitt martinpitt marked this pull request as ready for review September 30, 2024 14:30
@@ -91,38 +93,25 @@ export class FileAutoComplete extends React.Component {

onCreateOption(newValue) {
this.setState(prevState => ({
displayFiles: [...prevState.displayFiles, { type: "file", path: newValue }]
displayFiles: [...prevState.displayFiles, { type: "reg", path: newValue }]
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.

fsinfo(path, ['type', 'entries'], { superuser: this.props.superuser })
.then(info => {
const results = [];
for (const name in info.entries ?? {}) {
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.

const results = [];
for (const name in info.entries ?? {}) {
const type = info.entries[name].type;
if (!this.props.onlyDirectories || type == 'dir')
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.

Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

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

Thanks!

@martinpitt martinpitt merged commit 03fcd56 into cockpit-project:main Oct 1, 2024
88 checks passed
@martinpitt martinpitt deleted the file-autocomplete-fslist branch October 1, 2024 08:29
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.

3 participants