Deletion via Low Quality review should be recorded in Data Explorer

0

Please login or register to vote for this query.

(click on this box to dismiss)

https://meta.stackexchange.com/questions/233763

Interpersonal Skills

Q&A for people looking to improve their interpersonal communication skills

; with scoreovertime as 
(
select rt.postid
     , rt.id
     , sum(case when votetypeid=2 then 1 else -1 end)  score
from reviewtasks rt
inner join votes v on v.postid = rt.postid
where completedbyreviewtaskid is not null 
and ReviewTaskTypeId = 3
and v.votetypeid in (2,3)
and v.creationdate <= rt.deletiondate
group by rt.postid, rt.id
)

select top 1000 
       rt.postid [Post Link]
     , concat('site://posts/',rt.postid,'/timeline|timeline') [Timeline Link]
     , concat('site://review/low-quality-posts/', rt.id,'|review') [Review Link]
from reviewtasks rt
inner join reviewtaskresults rtr 
  on rtr.reviewtaskid = rt.id
left outer join scoreovertime sot 
  on sot.postid = rt.postid and sot.id = rt.id
where completedbyreviewtaskid is not null 
and ReviewTaskTypeId = 3
and (sot.postid is null or sot.score < 1)
group by rt.postid, rt.id
having sum(case when reviewtaskresulttypeid = 9 
                then 1 
                else 0 
                end) > (case db_name() when 'StackOverflow' then 3 else 5 end) -- rec del
    or sum(case when reviewtaskresulttypeid = 4 
                then 1 
                else 0 
                end) > 2 -- del

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results