Uh oh!
There was an error while loading. Please reload this page.
Disable "Show Local" button, add --disable-file-uploads option and add file operation trace level logs - #6557
Conversation
…ble and add trace logs for file read/write operations.
code-asher
left a comment
There was a problem hiding this comment.
This looks great! Thank you again.
Some unrelated e2e tests are failing, maybe the switch from text to text-is? Could be it was matching on partial strings before.
code-asher
commented
Dec 4, 2023
One quirk: seems I can edit local files by dragging them to the editor pane, do we want to block that as well? |
jeffmax
commented
Dec 4, 2023
I was looking at that as well.. best I could tell that was actually editing them in place (on the client machine with the client needing to give the browser permissions on the directory) and not actually uploading them to the server. Does that match what you are seeing? |
code-asher
commented
Dec 5, 2023
Yup, that is what I was seeing. My reasoning was that since we remove the "show local" button for opening files (which seems to be doing the same thing) we would want to prevent this as well otherwise it is possible to bypass the button removal by dragging instead. You bring up a good point that it is not actually uploading anything though so leaving it as-is seems fine to me. |
jeffmax
commented
Dec 6, 2023
Is there anything else I need to do, is that prettier error real? |
code-asher
commented
Dec 6, 2023
It claims "should show the Integrated Terminal" and "should have access to VSCODE_PROXY_URI" are failing. Maybe For the Prettier errors, I ran |
code-asher
commented
Dec 6, 2023
Oh wait I think |
jeffmax
commented
Dec 7, 2023
@code-asher I ran |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@## main #6557 +/- ##
=======================================
Coverage 73.13% 73.13% =======================================
Files 31 31 Lines 1906 1906 Branches 409 409 =======================================
Hits 1394 1394 Misses 433 433 Partials 79 79
Continue to review full report in Codecov by Sentry.
|
code-asher
left a comment
There was a problem hiding this comment.
Thanks!! Awesome to have this in.
…d file operation trace level logs (coder#6557)
This PR replaces PR #6529. It adds an option to disable file uploads (--disable-file-uploads) and removes the "Show Local" button on the dialog box for relevant file actions for both --disable-file-uploads and --disable-file-downloads options (fix#5118). It also adds trace level log statements for files that are read from or saved to disk.