-
Notifications
You must be signed in to change notification settings - Fork 323
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
Remote changes notification #962
Remote changes notification #962
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting this @andrewfulton9
I'm not a fan of mixing that information within the files
array in the status reply. Could you change the logic to request the _changedFiles
when reacting to the model.statusChanged
emission in the GitPanel
(src/components/GitPanel.tsx#L148). You could then add a new state attributes in the panel for the remote changed files.
Other than that, this looks good - don't forget to remove the console.log
statements and to lint the code.
adds dialog notification for remote changed files that are opened
changed on remote
Hey @fcollonval, I finally got a chance to get back to this. I pulled the remote changed files out of files and added a notification popup for when an open file changes on the remote. Could you take another look at this when you get a chance and let me know what you think? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing on this @andrewfulton9 I left some suggestions and questions.
removes gitfilediff command Co-authored-by: Frédéric Collonval <[email protected]>
puts remote changed section above untracked section Co-authored-by: Frédéric Collonval <[email protected]>
removed commented out diff button Co-authored-by: Frédéric Collonval <[email protected]>
removes commented out diffButton Co-authored-by: Frédéric Collonval <[email protected]>
fixes docstring grammer Co-authored-by: Frédéric Collonval <[email protected]>
removes redundant ok button label Co-authored-by: Frédéric Collonval <[email protected]>
Co-authored-by: Frédéric Collonval <[email protected]>
to CommandIds.gitPull
…o remote_changes_notification
@fcollonval, I have addressed the things you brought up in your previous review. I ended up, making the remote changes into a signal that the GitPanel connects to from which a dialog is shown with all the open files that are behind the remote branch. If you could take another look at it, I'd really appreciate it. It also looks like 3 tests are failing now. I don't understand why though. If you could point me in the right direction, I'll try to get those fixed asap as well. |
@andrewfulton9 The relevant error is:
I'll have another pass at the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @andrewfulton9,
In the current status, the PR is breaking the Git Panel (tested on binder). The error comes from undefined file at:
https://github.com/andrewfulton9/jupyterlab-git/blob/5f896919e1515cebcd980f49ff0f251ebc5243ee/src/components/FileList.tsx#L290
I posted some suggestions in the code too.
awaits gitPull command in remote behind dialog Co-authored-by: Frédéric Collonval <[email protected]>
Changes cancelButton label on remote behind dialoog Co-authored-by: Frédéric Collonval <[email protected]>
changes title of remote behind dialog to be explicitely pass as args to trans.__ Co-authored-by: Frédéric Collonval <[email protected]>
Improve openFilesBehindWarning setting description Co-authored-by: Frédéric Collonval <[email protected]>
…9/jupyterlab-git into remote_changes_notification
Hey @fcollonval, I think I have everything all worked out here. I am now passing the tests, and it should be building on binder. Is there anything else you think I should do here? |
Thanks for the correction @andrewfulton9 Testing it on Binder, there is an issue with the behind file list refresh. It seems that the list is not cleared as the file list is growing at each refresh trigger: Otherwise this looks good |
Whoops, I accidentally took out the line where I reset that list. Should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for the patience @andrewfulton9
Thanks @fcollonval! I really appreciate all the help getting this through! |
PR for issue #858