8

I hold the gold badge of . I can flag a post with this tag as a duplicate and close it immediately. Is there any way to view all of them?

I checked the All actions page where I found lists of my comments, edits, reviews, etc. except my duplicate flags. Also the helpful flags page doesn't list this.

1
  • 2
    Users with close vote privilege cannot flag for closure anymore, instead they have to vote for closure. All close votes cast by the user are listed on ?tab=votes&sort=closure, but that page cannot filter by close vote types.
    – Andrew T.
    Commented Nov 16, 2022 at 4:31

2 Answers 2

9

You can use the SEDE query My dupehammered close votes by Spevacus, which will list all the questions you've closed as duplicate with a gold tag badge (hammered). Note that SEDE will not show you questions that have been deleted.

If you want to find all the questions that you've closed as duplicate with a gold tag badge, including deleted questions, you can use the ?tab=votes&sort=closure page in your profile, as Andrew T. mentioned in a comment. However, this page lists all your close votes, so you will have to manually go through the list to find the ones you hammered as a duplicate.

1
  • 1
    Just as a general note, users who have not earned the privilege to see deleted posts will not be able to view close votes that they cast on questions which are now deleted as they will not appear in the list of votes in their profile. (This would not impact gold tag-badge holders since the requirement to earn a gold tag badge would also require having at least 10,000 reputation, but it may affect other users looking to audit their close vote history)
    – Henry Ecker Mod
    Commented Nov 16, 2022 at 16:44
3

If they're going to copy/re-use/adapt my query, at least take one that was updated to use newer features of SQL Server. Here is the SEDE query that uses OpenJson to decipher the Json blob that is present in the Text column of the PostHistory table for PostHistoryTypeId = 10. The Comment field holds the close reason, which is 101 for the Duplicates you're interested in.

-- userid: your user id on the site "found in the url of your profile"

declare @userid int = ##userid:int##

select postid [Post Link]
     , creationdate [Closing complete date]
     , Goldtagbadge [Badge]
from posthistory
cross apply openjson(text, '$.Voters') 
    with (Id int  '$.Id',
    GoldTagBadge nvarchar(50) '$.BindingReason.GoldTagBadge'
         ) as voters
where posthistorytypeid = 10
and voters.Id = @userid
and comment = 101
and Goldtagbadge is not null

When run today this is what the result looks like for your account:

result set of query

Keep in mind SEDE is updated once a week on Sunday.
Use the awesome SEDE Tutorial written by the unforgettable Monica Cellio.
Say "Hi" in SEDE chat.

1
  • Hey this OpenJson stuff is pretty neat, and I wasn't aware of it (Not the biggest SQL person...) otherwise I would have used it in my version of your query (mentioned in cigien's answer) from way back when.
    – Spevacus
    Commented Nov 21, 2022 at 18:33

You must log in to answer this question.

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