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

Filemanager external api e2e #2916

Merged
merged 4 commits into from
Jun 29, 2020
Merged

Filemanager external api e2e #2916

merged 4 commits into from
Jun 29, 2020

Conversation

ioedeveloper
Copy link
Member

@ioedeveloper ioedeveloper commented Jun 24, 2020


this.fileRenamedEvent(oldPath, newPath, !isFile)
if (isFile) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like fileRenameEvent is not called and that the event located at https://github.com/ethereum/remix-ide/pull/2916/files#diff-f28e4232b4dbf7d53c7b5543bdc9ad4fR314 will never be trigerred

Copy link
Member Author

Choose a reason for hiding this comment

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

fileRenamedEvent is triggered after rename from provider.

this._deps.browserExplorer.event.register('fileRenamed', (oldName, newName, isFolder) => { this.fileRenamedEvent(oldName, newName, isFolder) })

So the changes are in order.

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding a call to the fileRenamedEvent event in rename function triggers it twice. You can try it out locally.

Copy link
Collaborator

Choose a reason for hiding this comment

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

does that mean it was actually a bug?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it was.

@ioedeveloper ioedeveloper force-pushed the filemanager-api-e2e branch 2 times, most recently from 4041bef to 1b2bac5 Compare June 29, 2020 15:52
@yann300 yann300 merged commit fe184a0 into master Jun 29, 2020
@yann300 yann300 deleted the filemanager-api-e2e branch June 29, 2020 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Manager external functiones should be e2e tested
3 participants