You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This work-item is created to scope what all work will entail to stock take work needed to write extension level *.zip for case when\if periscope tool removes *.zip from their upload to azure storage.
How much upfront work will be needed to render the azure storage and use jszip.
With initial investigation it will definitely involve writing the zipper function within the vscode.
Origination of this thought/idea and key issue:
Currently for the the vscode x periscope feature leverage the *.zip file which was always there by design form the initial days of periscope tool
Now, given Periscope tool is cleaning up and as part of clean up holding the *.zip of something which already exist, is in the possible re-think.
Key challenge:
Current way we can rely on the vscode default browser behaviour of download since we will handle the zip at vscode level how can we trigger default save behaviour?
Update 20th June
Gained more clarity by implementing the functionality and there were challenges but more succinct version is below and I will tag a PR with this for the associated changes.
Goal To implement the vscode level download and zipping mechanism and to move away from the browser click mechanism. This enhancement decouples the underlying periscope implementation to calling mechanism only and no point of being dependent on a zip file which was populated earlier by the tool.
Implementation
For the click mechanism I will utilise the vscode -> webview messaging call back to invoke 2 key aspects.
⚠️ 💡 Implication of doing this in VsCode are following:
Here is what we found the implications/Poor experience are from the draft POC implementation here: #75
Poor Download U/X experience: The current downside to move away from the link to browser will be gone, and replaced with only message driven approach. ( this is something which seems inevitable)
Slower U/X experience: This will happen because the underlying code now deal with directly downloading the blob from storage and stream the download into the zip file and save it into the download folder all within vscode.
Maintenance of this code needs some guarantee and contract form the persicope tool that the blob folder structure will not change in future.
Breaking change: As an user-experience and tool related breaking change the vscode changes need to go first before any tool related changes to remove zip upload is removed.
Tatsinnit
changed the title
Scope work for zipping periscope blob.
Scope work for zipping blob.
Jun 17, 2021
Tatsinnit
changed the title
Scope work for zipping blob.
Scope work for zipping blob within vscode and decouple dependency on zip file from periscope tool.
Jun 20, 2021
💡Update: This is not longer necessary because the zip functionality is added back with latest enhancement. Thanks. PR at the periscope end where discussion took place et. al. is here: Azure/aks-periscope#65
Initial description
This work-item is created to scope what all work will entail to stock take work needed to write extension level
*.zip
for case when\if periscope tool removes*.zip
from their upload toazure storage
.azure storage
and usejszip
.zipper
function within the vscode.Origination of this thought/idea and key issue:
vscode x periscope
feature leverage the*.zip
file which was always there by design form the initial days of periscope tool*.zip
of something which already exist, is in the possible re-think.Key challenge:
zip
at vscode level how can we trigger default save behaviour?Update 20th June
Gained more clarity by implementing the functionality and there were challenges but more succinct version is below and I will tag a PR with this for the associated changes.
Goal To implement the
vscode
level download and zipping mechanism and to move away from the browser click mechanism. This enhancement decouples the underlying periscope implementation to calling mechanism only and no point of being dependent on a zip file which was populated earlier by the tool.Implementation
click
mechanism I will utilise thevscode -> webview
messaging call back to invoke 2 key aspects.storage
to get thenode
logs, and stream read it and download like here: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs-legacy#download-a-blobzip
those files usingjszip
and store it ad thedownloadFolder
locationUpdate 21 June - Draft POC PR
Here is what we found the implications/Poor experience are from the draft POC implementation here: #75
Poor Download U/X experience: The current downside to move away from the
link to browser
will be gone, and replaced with only message driven approach. ( this is something which seems inevitable)Slower U/X experience: This will happen because the underlying code now deal with directly downloading the blob from storage and stream the download into the zip file and save it into the download folder all within vscode.
Maintenance of this code needs some guarantee and contract form the persicope tool that the blob folder structure will not change in future.
Breaking change: As an user-experience and tool related breaking change the
vscode
changes need to go first before any tool related changes to removezip
upload is removed.Periscope Tool level PR: Remove usage of files aks-periscope#65
Thanks,
The text was updated successfully, but these errors were encountered: