-
Notifications
You must be signed in to change notification settings - Fork 23
Add the ability to submit links. Fixes #548 #575
Conversation
I would be great if you could take some time to increase your confidence that this won't break the site. At the very least there is a manual test script that goes through the core activities of the system: https://github.com/tricycle/lesswrong/wiki/Hacking-on-Less-Wrong#manual-tests Additionally, since this changes the link model, which is the core model of the application it will be worth poking at all the places links and comments are shown such as the main listings, sidebar, RSS feeds, user messages, the front page, user profile page listings. Wesley Moore
|
Good idea, will do. |
I fixed a few issues with rss feeds, side-bar, and front page links not being correct (linking to the url instead of the lesswrong post). I ran through the manual tests. This should be good to go. |
Thank for catching these issues. I'll reproduce them and update the PR with fixes. |
I was able to reproduce your bugs. Two of them were a bit tricky to reproduce. The do not appear to have anything to do with captchas. Here are the steps: Bug 1 - Links turn into articles:
Expected behavior: brings you to the page for a newly created link Bug 2 - article editor is too small:
Expected behavior: the text editor is 500px tall. |
…ng from link tab.
Also change article submission tab text.
PR updated. I was not able to reproduce the "That link has already been submitted." flash message. If it still happens, please provide me with steps to reproduce and let me know what browser you're using. Changes are as follows:
When you get a chance, I'd love to get your feedback on this. |
Also note that there is not much validation around URLs. For example, links don't have to be valid urls. I don't think it's that important because people won't upvote broken links. If it turns out we really want better validation, we can always do it in another issue. Also note that it's not possible to edit a link after submitting it, only the title. If we want admins to be able to edit links, we can do that as a separate issue. They can still delete them or edit the title, which should be enough for now. |
I think this was only being shown due to the inline validation not working. Now that it is fixed, it doesn't show up for me either. |
This looks good now. I'll deploy in the morning. For future reference I'd prefer you didn't force update an existing PR. If you add commits to address feedback it's easier for me to review just those changes instead of needing to review all changes again. |
Deployed |
This turned out to be non-trivial. I'm not sure what tricycle's release process is like, but someone other than me should probably do some additional regression testing.
I suggest using this link to view the diff while ignoring whitespace changes: https://github.com/tricycle/lesswrong/pull/575/files?w=1