From c64b8b90452d9678cf1a1256f06b21955f9d600f Mon Sep 17 00:00:00 2001 From: Ksenia Berezina Date: Thu, 18 Nov 2021 17:50:31 -0500 Subject: [PATCH] Fixes #3644 - Add a "moved" milestone --- config/environment.py | 7 ++++--- tests/fixtures/config/milestones_content.json | 2 +- tests/fixtures/config/milestones_content_plus.json | 2 +- tests/unit/test_config.py | 2 +- webcompat/static/js/lib/models/issue.js | 1 + webcompat/templates/__init__.py | 1 + webcompat/templates/issue/issue-milestones.jst | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/config/environment.py b/config/environment.py index fb7057f3d..e3129148e 100644 --- a/config/environment.py +++ b/config/environment.py @@ -98,9 +98,10 @@ 'fixed': {'id': 0, 'order': 2, 'state': 'closed'}, 'incomplete': {'id': 0, 'order': 3, 'state': 'closed'}, 'invalid': {'id': 0, 'order': 4, 'state': 'closed'}, - 'non-compat': {'id': 0, 'order': 5, 'state': 'closed'}, - 'wontfix': {'id': 0, 'order': 6, 'state': 'closed'}, - 'worksforme': {'id': 0, 'order': 7, 'state': 'closed'}} + 'moved': {'id': 0, 'order': 5, 'state': 'closed'}, + 'non-compat': {'id': 0, 'order': 6, 'state': 'closed'}, + 'wontfix': {'id': 0, 'order': 7, 'state': 'closed'}, + 'worksforme': {'id': 0, 'order': 8, 'state': 'closed'}} # We don't need to compute for every requests. OPEN_STATUSES = [status for status in STATUSES diff --git a/tests/fixtures/config/milestones_content.json b/tests/fixtures/config/milestones_content.json index 5ef210528..45a8fcd82 100644 --- a/tests/fixtures/config/milestones_content.json +++ b/tests/fixtures/config/milestones_content.json @@ -1 +1 @@ -[{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1","html_url":"https://github.com/webcompat/webcompat-tests/milestone/1","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1/labels","id":2744172,"number":1,"title":"needstriage","description":"Issues which needs to be triaged","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:06Z","updated_at":"2018-04-20T00:34:56Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2","html_url":"https://github.com/webcompat/webcompat-tests/milestone/2","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2/labels","id":2744173,"number":2,"title":"needsdiagnosis","description":"Issues in the process of being diagnosed","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:32Z","updated_at":"2018-03-23T02:31:13Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3","html_url":"https://github.com/webcompat/webcompat-tests/milestone/3","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3/labels","id":2744176,"number":3,"title":"needscontact","description":"We are looking for an appropriate contact","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2017-09-05T03:40:35Z","updated_at":"2018-03-23T14:55:12Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4","html_url":"https://github.com/webcompat/webcompat-tests/milestone/4","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4/labels","id":2744178,"number":4,"title":"contactready","description":"We found a contact. Someone needs to make a contact.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:05Z","updated_at":"2018-03-21T13:28:09Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5","html_url":"https://github.com/webcompat/webcompat-tests/milestone/5","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5/labels","id":2744179,"number":5,"title":"sitewait","description":"We have initiated a contact and we are waiting for an answer or a confirmation that we have been listened to. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:48Z","updated_at":"2018-03-23T02:30:19Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6","html_url":"https://github.com/webcompat/webcompat-tests/milestone/6","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6/labels","id":2744180,"number":6,"title":"wontfix","description":"These issues have been closed, but there are no meaningful way to get them fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":2,"state":"open","created_at":"2017-09-05T03:42:59Z","updated_at":"2018-02-13T20:36:43Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7","html_url":"https://github.com/webcompat/webcompat-tests/milestone/7","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7/labels","id":2744181,"number":7,"title":"incomplete","description":"Issues are closed.\r\nWe just do not have enough information for handling them.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":124,"state":"open","created_at":"2017-09-05T03:43:31Z","updated_at":"2018-03-22T10:38:22Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8","html_url":"https://github.com/webcompat/webcompat-tests/milestone/8","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8/labels","id":2744182,"number":8,"title":"invalid","description":"Issues are closed. \r\nBut they are just invalid. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":263,"state":"open","created_at":"2017-09-05T03:43:58Z","updated_at":"2018-03-16T10:58:21Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9","html_url":"https://github.com/webcompat/webcompat-tests/milestone/9","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9/labels","id":2744183,"number":9,"title":"fixed","description":"Issues are closed and we had a meaningful contact and it was fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"open","created_at":"2017-09-05T03:44:43Z","updated_at":"2018-02-13T10:16:26Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10","html_url":"https://github.com/webcompat/webcompat-tests/milestone/10","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10/labels","id":2744184,"number":10,"title":"duplicate","description":"Issues are closed. \r\nbut they had already been opened in the past","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":439,"state":"open","created_at":"2017-09-05T03:46:38Z","updated_at":"2018-03-30T06:46:41Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11","html_url":"https://github.com/webcompat/webcompat-tests/milestone/11","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11/labels","id":2744187,"number":11,"title":"worksforme","description":"Issues are closed because there was no compat issues found, just working for most of us on any browsers.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"open","created_at":"2017-09-05T03:48:00Z","updated_at":"2018-02-13T10:16:44Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12","html_url":"https://github.com/webcompat/webcompat-tests/milestone/12","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12/labels","id":2744188,"number":12,"title":"non-compat","description":"These issues are probably closed and are not part of the work we do. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":280,"state":"open","created_at":"2017-09-05T03:48:27Z","updated_at":"2018-02-13T10:16:37Z","due_on":null,"closed_at":null}] \ No newline at end of file +[{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1","html_url":"https://github.com/webcompat/webcompat-tests/milestone/1","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1/labels","id":2744172,"number":1,"title":"needstriage","description":"Issues which needs to be triaged","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:06Z","updated_at":"2018-04-20T00:34:56Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2","html_url":"https://github.com/webcompat/webcompat-tests/milestone/2","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2/labels","id":2744173,"number":2,"title":"needsdiagnosis","description":"Issues in the process of being diagnosed","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:32Z","updated_at":"2018-03-23T02:31:13Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3","html_url":"https://github.com/webcompat/webcompat-tests/milestone/3","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3/labels","id":2744176,"number":3,"title":"needscontact","description":"We are looking for an appropriate contact","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2017-09-05T03:40:35Z","updated_at":"2018-03-23T14:55:12Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4","html_url":"https://github.com/webcompat/webcompat-tests/milestone/4","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4/labels","id":2744178,"number":4,"title":"contactready","description":"We found a contact. Someone needs to make a contact.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:05Z","updated_at":"2018-03-21T13:28:09Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5","html_url":"https://github.com/webcompat/webcompat-tests/milestone/5","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5/labels","id":2744179,"number":5,"title":"sitewait","description":"We have initiated a contact and we are waiting for an answer or a confirmation that we have been listened to. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:48Z","updated_at":"2018-03-23T02:30:19Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6","html_url":"https://github.com/webcompat/webcompat-tests/milestone/6","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6/labels","id":2744180,"number":6,"title":"wontfix","description":"These issues have been closed, but there are no meaningful way to get them fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":2,"state":"open","created_at":"2017-09-05T03:42:59Z","updated_at":"2018-02-13T20:36:43Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7","html_url":"https://github.com/webcompat/webcompat-tests/milestone/7","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7/labels","id":2744181,"number":7,"title":"incomplete","description":"Issues are closed.\r\nWe just do not have enough information for handling them.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":124,"state":"open","created_at":"2017-09-05T03:43:31Z","updated_at":"2018-03-22T10:38:22Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8","html_url":"https://github.com/webcompat/webcompat-tests/milestone/8","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8/labels","id":2744182,"number":8,"title":"invalid","description":"Issues are closed. \r\nBut they are just invalid. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":263,"state":"open","created_at":"2017-09-05T03:43:58Z","updated_at":"2018-03-16T10:58:21Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9","html_url":"https://github.com/webcompat/webcompat-tests/milestone/9","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9/labels","id":2744183,"number":9,"title":"fixed","description":"Issues are closed and we had a meaningful contact and it was fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"open","created_at":"2017-09-05T03:44:43Z","updated_at":"2018-02-13T10:16:26Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10","html_url":"https://github.com/webcompat/webcompat-tests/milestone/10","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10/labels","id":2744184,"number":10,"title":"duplicate","description":"Issues are closed. \r\nbut they had already been opened in the past","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":439,"state":"open","created_at":"2017-09-05T03:46:38Z","updated_at":"2018-03-30T06:46:41Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11","html_url":"https://github.com/webcompat/webcompat-tests/milestone/11","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11/labels","id":2744187,"number":11,"title":"worksforme","description":"Issues are closed because there was no compat issues found, just working for most of us on any browsers.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"open","created_at":"2017-09-05T03:48:00Z","updated_at":"2018-02-13T10:16:44Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12","html_url":"https://github.com/webcompat/webcompat-tests/milestone/12","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12/labels","id":2744188,"number":12,"title":"non-compat","description":"These issues are probably closed and are not part of the work we do. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":280,"state":"open","created_at":"2017-09-05T03:48:27Z","updated_at":"2018-02-13T10:16:37Z","due_on":null,"closed_at":null}, {"url": "https://api.github.com/repos/webcompat/web-bugs/milestones/13", "html_url": "https://github.com/webcompat/web-bugs/milestone/13", "labels_url": "https://api.github.com/repos/webcompat/web-bugs/milestones/13/labels", "id": 7409852, "node_id": "MI_kwDOARFbIc4AcRC8", "number": 13, "title": "moved", "description": "Issues that were moved to other bug trackers/repositories (first occurrence)", "creator": {"login": "ksy36", "id": 1303908, "node_id": "MDQ6VXNlcjEzMDM5MDg=", "avatar_url": "https://avatars.githubusercontent.com/u/1303908?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ksy36", "html_url": "https://github.com/ksy36", "followers_url": "https://api.github.com/users/ksy36/followers", "following_url": "https://api.github.com/users/ksy36/following{/other_user}", "gists_url": "https://api.github.com/users/ksy36/gists{/gist_id}", "starred_url": "https://api.github.com/users/ksy36/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ksy36/subscriptions", "organizations_url": "https://api.github.com/users/ksy36/orgs", "repos_url": "https://api.github.com/users/ksy36/repos", "events_url": "https://api.github.com/users/ksy36/events{/privacy}", "received_events_url": "https://api.github.com/users/ksy36/received_events", "type": "User", "site_admin": false}, "open_issues": 0, "closed_issues": 0, "state": "open", "created_at": "2021-11-18T21:50:58Z", "updated_at": "2021-11-18T21:50:58Z", "due_on": null, "closed_at": null}] diff --git a/tests/fixtures/config/milestones_content_plus.json b/tests/fixtures/config/milestones_content_plus.json index a97842b8f..c4607e0de 100644 --- a/tests/fixtures/config/milestones_content_plus.json +++ b/tests/fixtures/config/milestones_content_plus.json @@ -1,4 +1,4 @@ [{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/20","html_url":"https://github.com/webcompat/webcompat-tests/milestone/20","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/20/labels","id":27441723,"number":20,"title":"bogus","description":"Issues which needs to be triaged","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:06Z","updated_at":"2018-04-20T00:34:56Z","due_on":null,"closed_at":null}, {"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1","html_url":"https://github.com/webcompat/webcompat-tests/milestone/1","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/1/labels","id":2744172,"number":1,"title":"needstriage","description":"Issues which needs to be triaged","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:06Z","updated_at":"2018-04-20T00:34:56Z","due_on":null,"closed_at":null}, {"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2","html_url":"https://github.com/webcompat/webcompat-tests/milestone/2","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2/labels","id":2744173,"number":2,"title":"needsdiagnosis","description":"Issues in the process of being diagnosed","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:39:32Z","updated_at":"2018-03-23T02:31:13Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3","html_url":"https://github.com/webcompat/webcompat-tests/milestone/3","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/3/labels","id":2744176,"number":3,"title":"needscontact","description":"We are looking for an appropriate contact","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2017-09-05T03:40:35Z","updated_at":"2018-03-23T14:55:12Z","due_on":null,"closed_at":null}, - {"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4","html_url":"https://github.com/webcompat/webcompat-tests/milestone/4","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4/labels","id":2744178,"number":4,"title":"contactready","description":"We found a contact. Someone needs to make a contact.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:05Z","updated_at":"2018-03-21T13:28:09Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5","html_url":"https://github.com/webcompat/webcompat-tests/milestone/5","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5/labels","id":2744179,"number":5,"title":"sitewait","description":"We have initiated a contact and we are waiting for an answer or a confirmation that we have been listened to. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:48Z","updated_at":"2018-03-23T02:30:19Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6","html_url":"https://github.com/webcompat/webcompat-tests/milestone/6","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6/labels","id":2744180,"number":6,"title":"wontfix","description":"These issues have been closed, but there are no meaningful way to get them fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":2,"state":"open","created_at":"2017-09-05T03:42:59Z","updated_at":"2018-02-13T20:36:43Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7","html_url":"https://github.com/webcompat/webcompat-tests/milestone/7","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7/labels","id":2744181,"number":7,"title":"incomplete","description":"Issues are closed.\r\nWe just do not have enough information for handling them.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":124,"state":"open","created_at":"2017-09-05T03:43:31Z","updated_at":"2018-03-22T10:38:22Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8","html_url":"https://github.com/webcompat/webcompat-tests/milestone/8","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8/labels","id":2744182,"number":8,"title":"invalid","description":"Issues are closed. \r\nBut they are just invalid. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":263,"state":"open","created_at":"2017-09-05T03:43:58Z","updated_at":"2018-03-16T10:58:21Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9","html_url":"https://github.com/webcompat/webcompat-tests/milestone/9","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9/labels","id":2744183,"number":9,"title":"fixed","description":"Issues are closed and we had a meaningful contact and it was fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"open","created_at":"2017-09-05T03:44:43Z","updated_at":"2018-02-13T10:16:26Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10","html_url":"https://github.com/webcompat/webcompat-tests/milestone/10","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10/labels","id":2744184,"number":10,"title":"duplicate","description":"Issues are closed. \r\nbut they had already been opened in the past","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":439,"state":"open","created_at":"2017-09-05T03:46:38Z","updated_at":"2018-03-30T06:46:41Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11","html_url":"https://github.com/webcompat/webcompat-tests/milestone/11","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11/labels","id":2744187,"number":11,"title":"worksforme","description":"Issues are closed because there was no compat issues found, just working for most of us on any browsers.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"open","created_at":"2017-09-05T03:48:00Z","updated_at":"2018-02-13T10:16:44Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12","html_url":"https://github.com/webcompat/webcompat-tests/milestone/12","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12/labels","id":2744188,"number":12,"title":"non-compat","description":"These issues are probably closed and are not part of the work we do. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":280,"state":"open","created_at":"2017-09-05T03:48:27Z","updated_at":"2018-02-13T10:16:37Z","due_on":null,"closed_at":null}] + {"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4","html_url":"https://github.com/webcompat/webcompat-tests/milestone/4","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/4/labels","id":2744178,"number":4,"title":"contactready","description":"We found a contact. Someone needs to make a contact.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:05Z","updated_at":"2018-03-21T13:28:09Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5","html_url":"https://github.com/webcompat/webcompat-tests/milestone/5","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/5/labels","id":2744179,"number":5,"title":"sitewait","description":"We have initiated a contact and we are waiting for an answer or a confirmation that we have been listened to. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2017-09-05T03:41:48Z","updated_at":"2018-03-23T02:30:19Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6","html_url":"https://github.com/webcompat/webcompat-tests/milestone/6","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/6/labels","id":2744180,"number":6,"title":"wontfix","description":"These issues have been closed, but there are no meaningful way to get them fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":2,"state":"open","created_at":"2017-09-05T03:42:59Z","updated_at":"2018-02-13T20:36:43Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7","html_url":"https://github.com/webcompat/webcompat-tests/milestone/7","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/7/labels","id":2744181,"number":7,"title":"incomplete","description":"Issues are closed.\r\nWe just do not have enough information for handling them.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":124,"state":"open","created_at":"2017-09-05T03:43:31Z","updated_at":"2018-03-22T10:38:22Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8","html_url":"https://github.com/webcompat/webcompat-tests/milestone/8","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/8/labels","id":2744182,"number":8,"title":"invalid","description":"Issues are closed. \r\nBut they are just invalid. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":263,"state":"open","created_at":"2017-09-05T03:43:58Z","updated_at":"2018-03-16T10:58:21Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9","html_url":"https://github.com/webcompat/webcompat-tests/milestone/9","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/9/labels","id":2744183,"number":9,"title":"fixed","description":"Issues are closed and we had a meaningful contact and it was fixed.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"open","created_at":"2017-09-05T03:44:43Z","updated_at":"2018-02-13T10:16:26Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10","html_url":"https://github.com/webcompat/webcompat-tests/milestone/10","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/10/labels","id":2744184,"number":10,"title":"duplicate","description":"Issues are closed. \r\nbut they had already been opened in the past","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":439,"state":"open","created_at":"2017-09-05T03:46:38Z","updated_at":"2018-03-30T06:46:41Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11","html_url":"https://github.com/webcompat/webcompat-tests/milestone/11","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/11/labels","id":2744187,"number":11,"title":"worksforme","description":"Issues are closed because there was no compat issues found, just working for most of us on any browsers.","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"open","created_at":"2017-09-05T03:48:00Z","updated_at":"2018-02-13T10:16:44Z","due_on":null,"closed_at":null},{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12","html_url":"https://github.com/webcompat/webcompat-tests/milestone/12","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/12/labels","id":2744188,"number":12,"title":"non-compat","description":"These issues are probably closed and are not part of the work we do. ","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":280,"state":"open","created_at":"2017-09-05T03:48:27Z","updated_at":"2018-02-13T10:16:37Z","due_on":null,"closed_at":null},{"url": "https://api.github.com/repos/webcompat/web-bugs/milestones/13", "html_url": "https://github.com/webcompat/web-bugs/milestone/13", "labels_url": "https://api.github.com/repos/webcompat/web-bugs/milestones/13/labels", "id": 7409852, "node_id": "MI_kwDOARFbIc4AcRC8", "number": 13, "title": "moved", "description": "Issues that were moved to other bug trackers/repositories (first occurrence)", "creator": {"login": "ksy36", "id": 1303908, "node_id": "MDQ6VXNlcjEzMDM5MDg=", "avatar_url": "https://avatars.githubusercontent.com/u/1303908?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ksy36", "html_url": "https://github.com/ksy36", "followers_url": "https://api.github.com/users/ksy36/followers", "following_url": "https://api.github.com/users/ksy36/following{/other_user}", "gists_url": "https://api.github.com/users/ksy36/gists{/gist_id}", "starred_url": "https://api.github.com/users/ksy36/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ksy36/subscriptions", "organizations_url": "https://api.github.com/users/ksy36/orgs", "repos_url": "https://api.github.com/users/ksy36/repos", "events_url": "https://api.github.com/users/ksy36/events{/privacy}", "received_events_url": "https://api.github.com/users/ksy36/received_events", "type": "User", "site_admin": false}, "open_issues": 0, "closed_issues": 0, "state": "open", "created_at": "2021-11-18T21:50:58Z", "updated_at": "2021-11-18T21:50:58Z", "due_on": null, "closed_at": null}] diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index 98a8fa887..ad6251d29 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -39,7 +39,7 @@ def tearDown(self): def test_update_status_config(self): """Update statuses with real milestones id.""" - expected = {'sitewait': {'state': 'open', 'id': 5, 'order': 5}, 'worksforme': {'state': 'closed', 'id': 11, 'order': 7}, 'non-compat': {'state': 'closed', 'id': 12, 'order': 5}, 'needsdiagnosis': {'state': 'open', 'id': 2, 'order': 2}, 'contactready': {'state': 'open', 'id': 4, 'order': 4}, 'wontfix': {'state': 'closed', 'id': 6, 'order': 6}, 'needscontact': {'state': 'open', 'id': 3, 'order': 3}, 'invalid': {'state': 'closed', 'id': 8, 'order': 4}, 'needstriage': {'state': 'open', 'id': 1, 'order': 1}, 'duplicate': {'state': 'closed', 'id': 10, 'order': 1}, 'fixed': {'state': 'closed', 'id': 9, 'order': 2}, 'incomplete': {'state': 'closed', 'id': 7, 'order': 3}} # noqa + expected = {'sitewait': {'state': 'open', 'id': 5, 'order': 5}, 'worksforme': {'state': 'closed', 'id': 11, 'order': 8}, 'non-compat': {'state': 'closed', 'id': 12, 'order': 6}, 'needsdiagnosis': {'state': 'open', 'id': 2, 'order': 2}, 'contactready': {'state': 'open', 'id': 4, 'order': 4}, 'wontfix': {'state': 'closed', 'id': 6, 'order': 7}, 'needscontact': {'state': 'open', 'id': 3, 'order': 3}, 'invalid': {'state': 'closed', 'id': 8, 'order': 4}, 'needstriage': {'state': 'open', 'id': 1, 'order': 1}, 'duplicate': {'state': 'closed', 'id': 10, 'order': 1}, 'fixed': {'state': 'closed', 'id': 9, 'order': 2}, 'incomplete': {'state': 'closed', 'id': 7, 'order': 3}, 'moved': {'state': 'closed', 'id': 13, 'order': 5}} # noqa # Normal Case milestones_json = json_data('milestones_content.json') actual = update_status_config(milestones_json) diff --git a/webcompat/static/js/lib/models/issue.js b/webcompat/static/js/lib/models/issue.js index 9c0783f7d..952743ec5 100644 --- a/webcompat/static/js/lib/models/issue.js +++ b/webcompat/static/js/lib/models/issue.js @@ -43,6 +43,7 @@ export const Issue = Backbone.Model.extend({ var milestoneClass; if (response.milestone) { milestone = response.milestone.title; + milestoneClass = response.milestone.title; } else { if (isLoggedIn) { milestone = "Fix me: assign a status"; diff --git a/webcompat/templates/__init__.py b/webcompat/templates/__init__.py index 8b11db4b3..740b25756 100644 --- a/webcompat/templates/__init__.py +++ b/webcompat/templates/__init__.py @@ -131,6 +131,7 @@ def format_milestone_title(issue_data): 'sitewait': 'Site Contacted', 'wontfix': 'Won\'t Fix', 'worksforme': 'Works For Me', + 'moved': 'Moved' } state = issue_data.get('state') milestone = issue_data.get('milestone') diff --git a/webcompat/templates/issue/issue-milestones.jst b/webcompat/templates/issue/issue-milestones.jst index 6eca222cf..a12599696 100644 --- a/webcompat/templates/issue/issue-milestones.jst +++ b/webcompat/templates/issue/issue-milestones.jst @@ -15,5 +15,5 @@ <%= data.milestone %> - +