Open magsout opened 5 years ago
How many labels?
For me, I think it would be good to know engine-gecko
vs everything else. But I can see the main browsers being listed being an interesting data point (maybe?). I just wonder about noise.
@miketaylr all? for now we just handle firefox and we will see in the future if we want to handle others browsers.
@magsout @miketaylr could you clarify a bit. currently needsdiagnosis endpoint doesn't count anything, we give a list of
timestamp
raw number of issues
at this time in the needsdiagnosis milestone. Do you suggest we record the raw number of issues for a specific label? I don't even know if it's possible. Let's check
So basically we can't do it except if we count ourselves (go through the pagination), that requires a bit more code and failure handling.
Do you suggest we record the raw number of issues for a specific label?
Yeah, that would be ideal, if possible.
I'm trying to figure out this one.
milestoned
and demilestoned
. We can imagine that when the issue enter in milestone needsdiagnosis, the label for browser-*
or engine-gecko
have been already set. So we could have a webhook listening to these event of coming in needsdiagnosis
and going out of needsdiagnosis
, then fetch the issue description to know its labels. Not necessary very cool and relies on successful fetch at each webhook POST.ok maybe the solution is to have a single request every x hours to https://api.github.com/search/issues?q=is:open+is:issue+milestone:needsdiagnosis+label:engine-gecko+repo:webcompat/web-bugs
This will return a paginated list of issues but also total_count
. Today 95 issues with engine-gecko
. Maybe this is the simplest. Timestamp in the DB with the count.
Message from @miketaylr
I think we can add labels like we do for needstriage endpoint on webcompat https://webcompat.com/api/issues/category/needstriage ?