{"action":"created","issue":{"url":"https://api.github.com/repos/dmwm/WMCore/issues/6412","labels_url":"https://api.github.com/repos/dmwm/WMCore/issues/6412/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/6412/comments","events_url":"https://api.github.com/repos/dmwm/WMCore/issues/6412/events","html_url":"https://github.com/dmwm/WMCore/pull/6412","id":118772146,"number":6412,"title":"delete WMStats document locally (Do not merge)","user":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dmwm/WMCore/labels/Medium%20Priority","name":"Medium Priority","color":"d7e102"}],"state":"open","locked":false,"assignee":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dmwm/WMCore/milestones/118","html_url":"https://github.com/dmwm/WMCore/milestones/WMAgent1511","labels_url":"https://api.github.com/repos/dmwm/WMCore/milestones/118/labels","id":1245708,"number":118,"title":"WMAgent1511","description":"","creator":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":19,"state":"open","created_at":"2015-08-07T15:47:51Z","updated_at":"2015-11-25T06:39:01Z","due_on":"2015-11-30T06:00:00Z","closed_at":null},"comments":5,"created_at":"2015-11-25T06:37:24Z","updated_at":"2015-11-25T07:17:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/6412","html_url":"https://github.com/dmwm/WMCore/pull/6412","diff_url":"https://github.com/dmwm/WMCore/pull/6412.diff","patch_url":"https://github.com/dmwm/WMCore/pull/6412.patch"},"body":"This still need to be tested and deployment script also need to be updated. \r\n(Also, more log message need to be added)\r\nFollowing it what it supposed to do. (Try to avoid replicating deleted documents)\r\n1. Documents will be deleted both agent and central wmstats independently. (Before central wmstats rely on replication for deleting its own documents.\r\n2. There are 2 deletion is set. (One for summary documents periodically, and deleting everything including job documents when workflow is archived).\r\n3. Tier0 should updated the same time since it shares replication code."},"comment":{"url":"https://api.github.com/repos/dmwm/WMCore/issues/comments/159523025","html_url":"https://github.com/dmwm/WMCore/pull/6412#issuecomment-159523025","issue_url":"https://api.github.com/repos/dmwm/WMCore/issues/6412","id":159523025,"user":{"login":"cmsdmwmbot","id":15169205,"avatar_url":"https://avatars.githubusercontent.com/u/15169205?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsdmwmbot","html_url":"https://github.com/cmsdmwmbot","followers_url":"https://api.github.com/users/cmsdmwmbot/followers","following_url":"https://api.github.com/users/cmsdmwmbot/following{/other_user}","gists_url":"https://api.github.com/users/cmsdmwmbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsdmwmbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsdmwmbot/subscriptions","organizations_url":"https://api.github.com/users/cmsdmwmbot/orgs","repos_url":"https://api.github.com/users/cmsdmwmbot/repos","events_url":"https://api.github.com/users/cmsdmwmbot/events{/privacy}","received_events_url":"https://api.github.com/users/cmsdmwmbot/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T07:17:10Z","updated_at":"2015-11-25T07:17:10Z","body":"Pre-python 2.6 idioms found in changed files. Please consider updating the code. Suggested patch follows:\n\n```diff\n--- src/python/WMCore/Services/WMStats/WMStatsWriter.py (original)\n+++ src/python/WMCore/Services/WMStats/WMStatsWriter.py (refactored)\n@@ -51,7 +51,7 @@\n         \"\"\"\n         # add delete docs as well for the compaction\n         # need to check whether delete and update is successful\n-        if type(docs) == dict:\n+        if isinstance(docs, dict):\n             docs = [docs]\n         for doc in docs:\n             self.couchDB.queue(doc)\n\n```\n\n"}}