What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

I just started to use the new review process for First Posts.

Could we have the list of related questions show when we review a question, as it helps to see duplicate questions?

share|improve this question
    
Was just about to request the same feature and happened upon this question. It would help with flagging duplicate questions as mentioned by Mark. –  Ren Nov 30 '12 at 15:05
    
@Ren Have a look at the script below if you have GreaseMonkey. –  Asad Dec 6 '12 at 22:18
3  
@Asad I don't have GreaseMonkey (yet). I was hoping this could be added as a feature to the site for all reviewers. It doesn't seem like that is going to happen though and your solution does what I want :) –  Ren Dec 7 '12 at 9:08

2 Answers 2

up vote 1 down vote accepted

I think this really needs to be added as a standard feature.

I find it a little irritating to have to leave the review queue to perform a thorough review, and in my mind a thorough review should include checking for duplicates.

Part of the purpose of the having the First Posts Review is to educate new users, part of that education should be to show them that they should search before asking and that duplicates should be closed. If the question is left open long enough to gather an answer and possibly even a few up-votes the opposite lesson is received.

share|improve this answer
1  
and if you do the full correct review someone else will have clicked on the review and passed or failed it, Good reviews are penalised –  Mark Jul 13 '13 at 18:39

Screenshot:

The related questions sidebar item is similar to the one on your right, but indicates which questions have accepted answers by coloring them green, additionally displaying the number of answers for each question in parentheses.

enter image description here

Description:

This is a short GreaseMonkey script that adds related questions to the sidebar, similar to how you see them on questions:

// ==UserScript==
// @name        firstposts
// @namespace   firstposts
// @include     *stackoverflow.com/review/first-posts*
// @version     1
// ==/UserScript==

$(document).ajaxComplete(function(e, xhr, settings){
    if(settings.url == "/review/next-task"){
        var response = JSON.parse(xhr.responseText);
        if (response.postId){
            $.getJSON("http://api.stackexchange.com/2.1/questions/" + response.postId + "/related?site=stackoverflow", function(data){
                var items = data.items;
                if(items.length){
                    var container = $('<div class="related" />');
                    for(var i = 0; i < items.length; i++){
                        var link = $('<a class="question-hyperlink" />').attr({href : items[i].link, target: '_blank'}).css('color', items[i].is_answered?"rgb(50,200,50)":"rgb(61,61,61)").text(items[i].title + " (" + items[i].answer_count + ")");
                        $('<div class="spacer" />').append(link).appendTo(container);
                    }
                    $('<div class="module sidebar-related" />').append($('<h4 />').text('Related')).append(container).appendTo($('.sidebar'));
                }
            });
        }
    }
});

Here's a minified version for bookmarking:

javascript:(function(){$(document).ajaxComplete(function(e,t,n){if(n.url=="/review/next-task"){var%20r=JSON.parse(t.responseText);if(r.postId){$.getJSON("http://api.stackexchange.com/2.1/questions/"+r.postId+"/related?site=stackoverflow",function(e){var%20t=e.items;if(t.length){var%20n=$('<div%20class="related"%20/>');for(var%20r=0;r<t.length;r++){var%20i=$('<a%20class="question-hyperlink"%20/>').attr({href:t[r].link,target:"_blank"}).css("color",t[r].is_answered?"rgb(50,200,50)":"rgb(61,61,61)").text(t[r].title+"%20("+t[r].answer_count+")");$('<div%20class="spacer"%20/>').append(i).appendTo(n)}$('<div%20class="module%20sidebar-related"%20/>').append($("<h4%20/>").text("Related")).append(n).appendTo($(".sidebar"))}})}}})})();

If any one finds any bugs / has ideas for improvements / has any ideas on how to turn this into an addon, I'm all ears.

share|improve this answer
    
Awarded the bounty to this answer :) I would still prefer if it were to be built in as a feature of the site for all reviewers to use though :P –  Ren Dec 7 '12 at 16:33
    
@Ren Totally agree. It shouldn't be too hard to implement. –  Asad Dec 7 '12 at 21:28
    
2ren is it worth the bounty as doesn't Greasemonkey only work on Firefox –  Mark Dec 10 '12 at 12:23
    
@Mark This works as a bookmark as well, across browsers. Btw, Greasemonkey works on Chrome as well. –  Asad Dec 10 '12 at 12:24
    
@Mark I've added a bookmarkable version to the answer –  Asad Dec 10 '12 at 12:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .