question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`quick-comment-edit` appears on other users' comments in issues

See original GitHub issue

Please ensure:

  • The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.

Description

Open an issue, e.g.: https://github.com/facebook/jest/issues/6316 and scroll through the comments in the conversations tab. You will see edit buttons on all comments, including comments from other users. When you click on the edit button, you see an error message: Sorry, something went wrong.

Console errors

A 403 Forbidden when the page attempts to retrieve the edit form for that comment:

XHR GET https://github.com/facebook/jest/issue_comments/.../edit_form?textarea_id=issuecomment-...-body&comment_context= [HTTP/2 403 Forbidden 321 ms]

Example URL

https://github.com/facebook/jest/issues/6316 (locked issue) https://github.com/facebook/jest/issues/11791 (regular issue)

Browser(s) used

Firefox

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Aug 30, 2021

There’s a variety of signals we can use to determine whether the current user can edit every comment, it’s just a matter of finding them in each supported page.

Example:

  • Can I edit the issue/PR sidebar?
  • Can I edit the title even if I’m not the author?
  • Is there a settings tab? (only for the owner)
  • Is there a “you are a collaborator” anywhere on the page?

However I also see an element that’s missing from the Jest conversation:

Screen Shot 6

but is available in this repo:

Screen Shot 5

So maybe we should look for that in every comment:

js-previewable-comment-form previewable-comment-form write-selected

Even if this only works on some pages, it’s better than showing a broken element for now.

1reaction
gamemaker1commented, Aug 25, 2021

I see the ('[data-url$="variables%5BdeferredEditForm%5D=false"]') on your comment just now too - but I should not be able to edit your comment right?

Edit: Even my own comments seem to have that variable, and it is set to false

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
quick-comment-edit appears on other users ' comments in issues refined-github/refined-github#4712. Closed. Fix: edit-comments-faster appears ...
Read more >
Unable to select users when mentioning in coments
Solved: Hi everyone, With my account, I have the following two problems: When entering a comment and trying to mention a user by...
Read more >
Commenting on an issue - Amazon CodeCatalyst
Describes how to comment on an issue. ... In the comments you can tag other space members, other projects in the space, related...
Read more >
TikTok Comments Not Showing: What To Do and Why It Matters
Though TikTok appears to have mostly resolved that bug for users, problems with the comments section are common on the app.
Read more >
Modern Comments in Word - Microsoft Support
With this update, you no longer have to worry about your comments being seen by others before you're finished editing them. After you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found