-
Notifications
You must be signed in to change notification settings - Fork 10
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
Comments tied to a Standalone notebook are invisible and easily lost #97
Comments
@tobiszuts-at-affirm Thanks for reporting. There are 2 types of comments in ReviewNB-
These are two separate functionalities built for slightly different use cases that you can read more about here. The crux of the issue is, the standalone notebook (and any comments on it) are not tied to any pull request as such. Standalone notebooks are more like a GoogleDoc for Jupyter Notebooks. Some of the confusion might be because we link to standalone notebook from the PR diff page. So it feels like they're connected to the PR (but they're not).
Everybody "watching" the repository on GitHub are automatically notified of comments on any standalone notebook in the repo. So anyone who's interested in receiving updates should just mark themselves as "watching" the repository on GitHub. As I explained above, standalone notebooks are not tied to any PR so we don't automatically subscribe the PR author to these notifications.
All comments on a standalone notebook should be visible on the same standalone notebook (even if the comments are made at different commits). The only way you could loose comments is if subsequent commit renamed the notebook. If this is happening outside of that, do let us know & we'll look into it. |
Hi Amit,
Thank you kindly for the great explanation - I was making a lot of
assumptions about how things are worked, and it's now clear to me how these
different use cases interact. (I didn't know about the standalone notebook
features, and I'll start using them more!)
The commit in question moved the notebook to a new directory although the
name remains the same, so it's probably that known use case you mention.
Still, it would be a nice feature not to lose any comments when moving a
notebook around: I regularly refactor like this as a project develops, and
it's unfortunate that such a simple action can cause comments to be deleted
forever.
Thanks again for the quick response!
Tobi
…On Thu, Jul 15, 2021 at 10:46 PM Amit Rathi ***@***.***> wrote:
@tobiszuts-at-affirm <https://github.com/tobiszuts-at-affirm> Thanks for
reporting.
There are 2 types of comments in ReviewNB-
- PR Comments: These are posted on a pull request diff.
- JDoc Comments: These are posted on a standalone notebook file.
These are two *separate* functionalities built for slightly different use
cases that you can read more about here
<https://blog.reviewnb.com/commenting-for-jupyter/>. The crux of the
issue is, the standalone notebook (and any comments on it) are not tied to
any pull request as such. Standalone notebooks are more like a GoogleDoc
for Jupyter Notebooks.
I can understand that some of the confusion is arising because we link to
standalone notebook from the PR diff page. So it feels like they're
connected to the PR (but they're not).
the owner of the PR is not automatically notified of these comments (they
would need to go to the same notebook in Standalone mode and toggle the
switch to subscribe to comments).
Everybody "watching" the repository on GitHub are automatically notified
of comments on any standalone notebook in the repo. So anyone who's
interested in receiving updates should just mark themselves as "watching"
the repository on GitHub. As I explained above, standalone notebooks are
not tied to any PR so we don't automatically subscribe the PR author to
these notifications.
New commits cause the comments (which are tied to the old standalone
notebook) to be lost, since old commits no longer have associated
Standalone notebooks
All comments on a standalone notebook should be visible on the same
standalone notebook (even if the comments are made at different commits).
The only way you could *loose comments* is if subsequent commit renamed
the notebook. If this is happening outside of that, do let us know & we'll
look into it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSKT6P4CY6EZUG3D3HZAF3TX7BR5ANCNFSM5AN6IMZA>
.
|
I agree 100%. I've opened an issue to track this.
These comments are not really deleted, they're still available, just that they're tied to OLD file name + path. E.g. if you move the file to it's old path+name you will see all the comments again. Of course, this is not ideal at all. I'm just suggesting you a workaround for now to recover any important conversations that you might have lost as part of moving files around. If the above workaround is not good enough, feel free to write to me at [email protected] with old & new file paths & we would help you with manual migration of conversations. |
Hi Amit,
Good to know about how to access old comments. I read through them once
and have actually merged that PR, so now need to migrate them, although
thank you very much for the offer! I'm also making sure my team is
commenting in the right place now. :)
Tobi
…On Wed, Jul 21, 2021 at 5:36 AM Amit Rathi ***@***.***> wrote:
Still, it would be a nice feature not to lose any comments when moving a
notebook around: I regularly refactor like this as a project develops, and
it's unfortunate that such a simple action can cause comments to be deleted
forever.
I agree 100%. I've opened an issue
<#98> to track this.
By the way, *these comments are not really deleted, they're still
available, just that they're tied to OLD file name + path*. E.g. if you
move the file to it's old path+name you will see all the comments again. Of
course, this is not ideal at all. I'm just suggesting you a workaround for
now to recover any important conversations that you might have *lost* as
part of moving files around.
If the above workaround is not good enough, feel free to write to me at
***@***.*** with old & new file paths & we would help you with
manual migration of conversations.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSKT6LZNYTR6PGMVOMZRLLTY25MHANCNFSM5AN6IMZA>
.
|
Problem
It's possible to add comments to a notebook that's viewed in 'Standalone' mode. However, doing so has two bugs:
Potential solution
The ideal behavior, from my perspective, would be to log those comments in the main discussion page of the PR (just like when commenting in a notebook not in Standalone mode), send out emails, and retain them even with new commits.
The text was updated successfully, but these errors were encountered: