-
Notifications
You must be signed in to change notification settings - Fork 159
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
Remove config options "disablePreviews", "displayThumbnails" and "previewFileMimeTypes" #11209
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
9de9e1d
to
f10d93b
Compare
f10d93b
to
c1bc000
Compare
@ScharfViktor I have the gut feeling, that this makes the e2e tests flaky. |
I see this step I'll try to reproduce it localy and fix |
We found one more: |
3635976
to
2966fca
Compare
Quality Gate passedIssues Measures |
@@ -864,7 +864,7 @@ export default defineComponent({ | |||
return this.clipboardResources.some((r) => r.id === resource.id) | |||
}, | |||
shouldDisplayThumbnails(item: Resource) { | |||
return this.areThumbnailsDisplayed && !isResourceTxtFileAlmostEmpty(item) | |||
return !isResourceTxtFileAlmostEmpty(item) |
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.
What do you think about dropping this whole function as well? While I get the intention, I still always think that it might be confusing at the same time that sometimes .txt files have a preview/thumbnail and sometimes they don't. Yes, the thumbnail is a white box if the text file is empty. But well, so be it... I'm in favour of reducing complexity / confusion and remove the helper and its usages entirely. Would fit in this PR...
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.
Currently idk, it seems that the server is throwing an error, when you request a preview on an empty text file which triggers, the CI to fail.
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.
🏅
…viewFileMimeTypes" (#11209) * Purge config previewFileMimeTypes, displayThumbnails and disablePreviews option --------- Co-authored-by: Viktor Scharf <[email protected]>
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Open tasks: