Skip to content
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

Make FileSystemCommands.UPLOAD to return FileUploadResult #8766

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Make FileSystemCommands.UPLOAD to return FileUploadResult #8766

merged 1 commit into from
Dec 3, 2020

Conversation

tomer-epstein
Copy link
Contributor

@tomer-epstein tomer-epstein commented Nov 20, 2020

Signed-off-by: Tomer Epstein tomer.epstein@sap.com

What it does

Make FileSystemCommands.UPLOAD to return FileUploadResult

How to test

git clone https://github.com/tomer-epstein/vscode-theia-tomer.git
cd vscode-theia-tomer
npm i && npm run package
copy vscode-theia-tomer-0.0.1.vsix to plugins folder
Right click on a folder in the Explorer, choose 'Open Theia Upload Dialog'.

image

image

Review checklist

Reminder for reviewers

@tomer-epstein
Copy link
Contributor Author

Adding reference to Refactor upload functionality

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomer-epstein can you clarify what the pull-request is attempting to fix and why, it is not clear with the current provided description. In addition, it would help to provide a sample vscode extension for reviewers to test with (it may also help understanding why the changes are necessary).

@tomer-epstein
Copy link
Contributor Author

@vince-fugnitto , Sure as usual I'll provide a sample vscode ext to test the change.
We would like to perform some tasks (like unzip) on the uploaded files, for this we need the command to return the upload result.

@vince-fugnitto vince-fugnitto added enhancement issues that are enhancements to current functionality - nice to haves filesystem issues related to the filesystem labels Nov 20, 2020
@amiramw amiramw self-requested a review November 22, 2020 13:20
Copy link
Member

@amiramw amiramw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, also tested successfully.

@vince-fugnitto do you think we should update changelog for this command new return value?

@vince-fugnitto
Copy link
Member

@vince-fugnitto do you think we should update changelog for this command new return value?

@amiramw I do not believe so since the original return value is void and adding a new value would not be a breaking change.
I do add changes when I prepare the changelog for a release :)

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that the changes work correctly 👍

  • verified the code
  • verified that the plugin works correctly when uploading the file
  • verified both on the browser and electron targets:
    • browser: successfully uploads
    • electron: the upload functionality is disabled on electron correctly resulting in undefined

@tomer-epstein
Copy link
Contributor Author

@vince-fugnitto may you merge? I don't have perms.

@vince-fugnitto
Copy link
Member

@vince-fugnitto may you merge? I don't have perms.

@tomer-epstein I'd love to, but we decided as a community in our last dev meeting that we should not merge any new pull-requests (no matter how small) until we perform the release (this Thursday) or we have CI running again. We are currently working on bringing CI back by re-implementing it using GitHub Actions.

@vince-fugnitto
Copy link
Member

@tomer-epstein do you mind rebasing the pull-request against master (so we can run ci again using github actions), I'll merge shortly afterwards :)

Signed-off-by: Tomer Epstein <tomer.epstein@sap.com>
@tomer-epstein
Copy link
Contributor Author

@vince-fugnitto you may merge.

@amiramw amiramw merged commit 75bf8df into eclipse-theia:master Dec 3, 2020
@tomer-epstein tomer-epstein deleted the FileSystemCommands.UPLOAD branch December 3, 2020 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves filesystem issues related to the filesystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants