When there's no authenticated user, we should display a message like "Sign in to comment."
One thing to be careful is presenting a green "Create Thread" button when the user isn't logged in. This can prompt them to write up a detailed message, only to later realize they have no account and can't post it. That'd be a bad thing.
We can display a green Create Thread button on the main tracker page because it redirects to a page where you can start typing it (and prompt you to login first if you're not). But not on the threads pages where you post replies in-place.
/cc @renfredxh FYI.
We should be able to accomplish this by adding a user context to the Sourcegraph front-end, so we can check if the user is logged in and display a link to sign up/sign in otherwise.
I've talked with @renfredxh just now. We now have the Current User available in the frontend JS world, which was a blocker previously.
This issue was external and no longer applies to issuesapp itself. The feature of creating issues from source files is not currently available or supported.
Closing.
Repro:
The error console shows that it redirects you to a URL consisting of the entire HTML page body.
This is especially bad because you lose what you typed in.
Originally filed by @sqs at https://trello.com/c/pjfcS6q2/994-creating-a-tracker-issue-from-a-source-file-when-anonymous-fails-silently.