Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels in needsdiagnosis endpoint #102

Open
magsout opened this issue May 4, 2019 · 5 comments
Open

Add labels in needsdiagnosis endpoint #102

magsout opened this issue May 4, 2019 · 5 comments
Labels
database Relating to db enhancement New feature or request

Comments

@magsout
Copy link
Member

magsout commented May 4, 2019

Message from @miketaylr

One thing
that would be very interesting is to pull out the firefox issues from
the needsdiagnosis dashboard. Maybe one line (current approach) for all
issues, and another line for only Firefox issues.

I think we can add labels like we do for needstriage endpoint on webcompat https://webcompat.com/api/issues/category/needstriage ?

@magsout magsout added the enhancement New feature or request label May 4, 2019
@miketaylr
Copy link
Member

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.

@magsout
Copy link
Member Author

magsout commented May 6, 2019

@miketaylr all? for now we just handle firefox and we will see in the future if we want to handle others browsers.

Capture d’écran 2019-05-06 à 17 15 41

@karlcow
Copy link
Member

karlcow commented May 7, 2019

@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

  1. The issues endpoint doesn't provide this information even in the HTTP headers.
    https://api.github.com/repos/webcompat/web-bugs/issues?milestone=3&labels=engine-gecko
  2. The milestone endpoint doesn't have the notion of parameters for search
    https://api.github.com/repos/webcompat/web-bugs/milestones/3

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.

@karlcow karlcow added the database Relating to db label May 7, 2019
@miketaylr
Copy link
Member

Do you suggest we record the raw number of issues for a specific label?

Yeah, that would be ideal, if possible.

@karlcow
Copy link
Member

karlcow commented May 16, 2019

I'm trying to figure out this one.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Relating to db enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants