-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Add option to disable Show Local button #6529
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6529 +/- ##
=======================================
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.
|
Thank you, this is awesome! I should be able to review more thoroughly this week but at first glance it looks good. You can ignore the error on the One thought in the meantime, do we need the Thinking out loud, I could see a use for something like a |
@code-asher Thanks! I agree that the Another, related feature that I was hoping to add was the option to log uploads and downloads. It would involve something like adding
to: Is that something you would consider accepting? |
Got it, so what we want in the end is
To me this feels like something that should be logged at trace level, would that meet your needs? Or, depending on your goals, maybe you could use the telemetry data. Also, that will log more than just uploads/downloads, right? Is that OK for your use case? |
@code-asher Sure, I can remove the Is |
Yup, that sounds perfect to me. Feel free to use it for the uploads diff as well if you want (although we should probably rename it if we do).
Exactly, it would be
Ahhh yeah that makes sense, I think only the browser-side code knows that it is an upload/download. I thought the browser logs also got stored server-side in a file but it seems I am wrong about that, or at least when I checked just now I did not see any, so |
@code-asher Is it ok to roll this into one PR? I was going to do two separate ones for download/upload but if I put them in one diff file its simpler as one. Would it be ok to put the trace statement in there as well? |
Yup both things sound good to me! |
I am closing this in favor of PR #6557 |
Fixes #5118
The PR does two things: It hides the "Show Local" button for Save/"Save As"/"Save Workspace As" when the --disable-file-downloads flag is used and it also introduces a new --disable-show-local flag that disables the "Show Local" button for Save/"Save As"/"Save Workspace As" and Open File. I also had to modify the
navigateMenus
test code so that I could target "Save" specifically. Without the changes it was choosing "Save Workspace As" when asked to navigate to "Save".