-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Deprecate fslist1 channel #21055
Conversation
We want to deprecate fslist1.
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
18c9798
to
34b46b4
Compare
@@ -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 }] |
There was a problem hiding this comment.
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 ?? {}) { |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Part of #19999