1:24 AM
I wanted to get some query which counts Enlightened badges also for deleted user (i.e., how many they would get if they still had an account).
For some users I get correct number, but for some users there are differences: data.stackexchange.com/mathoverflow/query/1175429/…
Can the difference be caused by the fact that some of the Englightened badges are for answers to deleted question? For deleted questions, the info about accepted answer isn't stored in SEDE, right?
Here are the two queries for Meta Stack Exchange: data.stackexchange.com/meta.stackexchange/query/1175429/… data.stackexchange.com/meta.stackexchange/query/1511197/…
For this user, I get 15 badges from one query and 14 from the other one: data.stackexchange.com/meta.stackexchange/query/1511197/… data.stackexchange.com/meta.stackexchange/query/1511199/…
This answer is in the list: meta.stackexchange.com/questions/117084/… I see, probably the answers which were accepted and later unaccepted still might give user a badge.
Ok, so I have tried to use
v.VoteTypeId=10
instead of q.AcceptedAnswer Id
, but there is still a discrepancy: data.stackexchange.com/meta.stackexchange/query/1511200/…
For this particular user, I still get only 14 answers: data.stackexchange.com/meta.stackexchange/query/1511201/…
Here is list of their Enlightened badges listed on the site: meta.stackexchange.com/help/badges/19/enlightened?userid=159251
17
All the content on Stack Overflow comes with a Creative Commons license which requires attribution (these links are found at the bottom of every page). Quoting from the relevant Stack Overflow blog post: If you republish this content, we require that you: Visually indicate that the content is f...
I thought that accept and unaccept might be shown in the timeline: meta.stackexchange.com/posts/117085/…
4 hours later…
6:23 AM
6:56 AM
@rene Ok, so for deleted question I can still get VoteTypeId=1. But if I wanted in some query use AcceptedAnswerId, that will be NULL in the PostsWithDeleted table.
This is weird - I have tried to replace Posts with PostsWithDeleted; in case there are some (probably rather rare) cases when Englightened badge was awarded for a question/answer pair which have been deleted since then.
Ok, now I realized that what I tried is completely non-sensical - for deleted posts I do not get UserOwnerId from SEDE.
8:00 AM
« first day (1205 days earlier) ← previous day next day → last day (892 days later) »