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

comment in a read-only Pad? #68

Open
gulaschskanone opened this issue Jun 30, 2015 · 20 comments
Open

comment in a read-only Pad? #68

gulaschskanone opened this issue Jun 30, 2015 · 20 comments

Comments

@gulaschskanone
Copy link
Contributor

How do you think? Could it be possible to comment in a read-only Pad?
They are stored to database, too

key:

comments:padID 

value:

"commentId":{ "author": data.author, "name": data.name, "text": data.text, "changeTo": data.changeTo, "changeFrom": data.changeFrom, "timestamp": new Date().getTime()}

(commentManager.js, line 62, right?)

But in

key:

pad:padId

there won't be the comment (commentId), so after reload the pad the comment won't be shown.
Is that the consciously behavior? Does anyone know a way / fix to save comments on read-only pads?

@JohnMcLear
Copy link
Member

You can already comment in a read only pad afaik.

@JohnMcLear
Copy link
Member

Or is it you can see them but not reply?

@JohnMcLear JohnMcLear reopened this Jun 30, 2015
@gulaschskanone
Copy link
Contributor Author

After press on "Comment" the input is visible like in the editable view - but after reload no more. In the database I also can't find the given input. Deletion comments in read-only mode (saved in editable mode) will also not working persistently.
It's a uncommon behavior on my system, right?

@JohnMcLear
Copy link
Member

I swear I added support for this.. Did you checkout latest version?

@gulaschskanone
Copy link
Contributor Author

I added via "npm install ep_comments_page" version 0.0.32
after reinstall via "git clone" it's unfortunately the same behavior

@JohnMcLear
Copy link
Member

Mheh, will take a look tonight or tomorrow.

@JohnMcLear JohnMcLear self-assigned this Jun 30, 2015
@JohnMcLear
Copy link
Member

#39

@JohnMcLear
Copy link
Member

I'm not gonna get time to look at this now until Late August, apologies!

@JohnMcLear JohnMcLear removed their assignment Jun 30, 2015
@gulaschskanone
Copy link
Contributor Author

Hey, how would you fix this? Maybe one of us can try.

@JohnMcLear
Copy link
Member

Just allow comments through as an allowed message type and add the comments container to the read only view.

@gulaschskanone
Copy link
Contributor Author

If you say that, it sounds so easy...
I have no idea how I can define comments as allowed.

@JohnMcLear
Copy link
Member

@gulaschskanone I'm available as a gun for hire if you want to get this done sooner than I get spare time?

@thmo
Copy link

thmo commented May 1, 2020

Current (ep: 1.8.3, ep_comments: 0.1.0) behavior is like this: Comments can be added on the pad as well as on the read-only pad, but the contents of the comments cannot be seen in the other version. The corresponding regions are highlighted in both though.

Would be nice if one could also see the contents of the comments in both, pad and read-only pad, regardless of the origin of the comment.

@JohnMcLear
Copy link
Member

@thmo it's probably not a huge job to fix, assuming this is for a commercial project did you want to setup a bounty so we can get more eyes on it else it's gonna just fall naturally on our roadmap.

@thmo
Copy link

thmo commented May 1, 2020

Just found a real bug: You can make and later accept a suggestion in a read-only pad, resulting the original pad text to be changed.

(No, it's not for a commercial project.)

@JohnMcLear
Copy link
Member

Ah okies, well when we're doing our next big push on ep_comments we will try address these bugs. Fair point RE the security issue, that should be getting rejected!

@pr4xx
Copy link
Contributor

pr4xx commented Oct 1, 2020

Is there any activity on this? Or can someone point out where the issue could be? I might be able to come up with a fix.

@JohnMcLear
Copy link
Member

Take a stab!

@pr4xx
Copy link
Contributor

pr4xx commented Oct 10, 2020

I did some more testing and my PR did not seem to resolve the issue completely. I have to take another look.
Right now live syncing does not happen, only after refresh. And the readonly side cannot make new comments but only comment an existing one.

@erkaner
Copy link

erkaner commented Jun 2, 2021

Hello, I can make comments in readonly pad but they disappear after the refresh. Is this an expected behaviour? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants