{"action":"opened","issue":{"url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1292","labels_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1292/labels{/name}","comments_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1292/comments","events_url":"https://api.github.com/repos/graphite-project/graphite-web/issues/1292/events","html_url":"https://github.com/graphite-project/graphite-web/issues/1292","id":99011277,"number":1292,"title":"timestamps incorrect when aggregating null metric with partial data set","user":{"login":"tjamesturner","id":12628916,"avatar_url":"https://avatars.githubusercontent.com/u/12628916?v=3","gravatar_id":"","url":"https://api.github.com/users/tjamesturner","html_url":"https://github.com/tjamesturner","followers_url":"https://api.github.com/users/tjamesturner/followers","following_url":"https://api.github.com/users/tjamesturner/following{/other_user}","gists_url":"https://api.github.com/users/tjamesturner/gists{/gist_id}","starred_url":"https://api.github.com/users/tjamesturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjamesturner/subscriptions","organizations_url":"https://api.github.com/users/tjamesturner/orgs","repos_url":"https://api.github.com/users/tjamesturner/repos","events_url":"https://api.github.com/users/tjamesturner/events{/privacy}","received_events_url":"https://api.github.com/users/tjamesturner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T16:47:35Z","updated_at":"2015-08-04T16:47:35Z","closed_at":null,"body":"we have a scenario where we are using the sumSeries function on 2 series. one of which has 7 days worth of data and the other has no data.  querying either series produces the correct results, but applying the sumSeries function produces the wrong timestamps. specifically, the last 7 days worth of data is returned with timestamps starting at \"from\", not at now-7d.\r\n\r\n**example** (the from and until in this case were exactly now-7d when the query was made):\r\n**request**:\r\ntarget:prod.customer_b.summary.requests\r\ntarget:sumSeries(prod.customer_[ab].summary.requests)\r\ntarget:prod.customer_a.summary.requests\r\nfrom:1438101323\r\nuntil:1438101508\r\nformat:json\r\nmaxDataPoints:1680\r\n\r\n**response** (notice the incorrect timestamps on the sumSeries target):\r\n[{\"target\": \"prod.customer_b.summary.requests\", \"datapoints\": [[62.0, **1438101420**], [35.0, 1438101480]]}\r\n, {\"target\": \"sumSeries(prod.customer_[ab].summary.requests)\", \"datapoints\": [[62.0, **1438101360**], [35.0, 1438101420]]}\r\n, {\"target\": \"prod.customer_a.summary.requests\", \"datapoints\": [[null, 1438101360], [null, 1438101420], [null, 1438101480]]}]"}}