{"action":"created","issue":{"url":"https://api.github.com/repos/inaturalist/inaturalist/issues/803","labels_url":"https://api.github.com/repos/inaturalist/inaturalist/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/inaturalist/inaturalist/issues/803/comments","events_url":"https://api.github.com/repos/inaturalist/inaturalist/issues/803/events","html_url":"https://github.com/inaturalist/inaturalist/issues/803","id":125779172,"number":803,"title":"Bioblitz project aggregating obs based on posted_on rather than observed_on (I think)","user":{"login":"loarie","id":598026,"avatar_url":"https://avatars.githubusercontent.com/u/598026?v=3","gravatar_id":"","url":"https://api.github.com/users/loarie","html_url":"https://github.com/loarie","followers_url":"https://api.github.com/users/loarie/followers","following_url":"https://api.github.com/users/loarie/following{/other_user}","gists_url":"https://api.github.com/users/loarie/gists{/gist_id}","starred_url":"https://api.github.com/users/loarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loarie/subscriptions","organizations_url":"https://api.github.com/users/loarie/orgs","repos_url":"https://api.github.com/users/loarie/repos","events_url":"https://api.github.com/users/loarie/events{/privacy}","received_events_url":"https://api.github.com/users/loarie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inaturalist/inaturalist/labels/bugs","name":"bugs","color":"e11d21"},{"url":"https://api.github.com/repos/inaturalist/inaturalist/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"pleary","id":48566,"avatar_url":"https://avatars.githubusercontent.com/u/48566?v=3","gravatar_id":"","url":"https://api.github.com/users/pleary","html_url":"https://github.com/pleary","followers_url":"https://api.github.com/users/pleary/followers","following_url":"https://api.github.com/users/pleary/following{/other_user}","gists_url":"https://api.github.com/users/pleary/gists{/gist_id}","starred_url":"https://api.github.com/users/pleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleary/subscriptions","organizations_url":"https://api.github.com/users/pleary/orgs","repos_url":"https://api.github.com/users/pleary/repos","events_url":"https://api.github.com/users/pleary/events{/privacy}","received_events_url":"https://api.github.com/users/pleary/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-01-09T20:17:59Z","updated_at":"2016-01-14T22:47:07Z","closed_at":null,"body":"This bioblitz project http://www.inaturalist.org/projects/cormorant-week-jan-3-9 has the aggregator turned on and is including several obs which seem to have been added by the aggregator (project_observation.user_id=nil) that were POSTED during the bioblitz time interval but not OBSERVED during that interval...\r\n[2558340, 2552761, 2550398, 2550088, 2550358, 2549728, 2558345, 2558637, 2558899, 2559306, 2559311, 2559328, 2559475, 2559477, 2559484, 2559493, 2559494, 2559490, 2559496, 2559514, 2559580, 2560168, 2560745, 2560775, 2563246, 2560880, 2561042, 2552091, 2561947, 2561953, 2562434, 2562490, 2563320, 2563068, 2563252] \r\n\r\nIs that whats going on? Can't figure out how else they were added. I didn't think we were capable of detecting obs POSTED during an interval with the current search API...."},"comment":{"url":"https://api.github.com/repos/inaturalist/inaturalist/issues/comments/171806209","html_url":"https://github.com/inaturalist/inaturalist/issues/803#issuecomment-171806209","issue_url":"https://api.github.com/repos/inaturalist/inaturalist/issues/803","id":171806209,"user":{"login":"pleary","id":48566,"avatar_url":"https://avatars.githubusercontent.com/u/48566?v=3","gravatar_id":"","url":"https://api.github.com/users/pleary","html_url":"https://github.com/pleary","followers_url":"https://api.github.com/users/pleary/followers","following_url":"https://api.github.com/users/pleary/following{/other_user}","gists_url":"https://api.github.com/users/pleary/gists{/gist_id}","starred_url":"https://api.github.com/users/pleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleary/subscriptions","organizations_url":"https://api.github.com/users/pleary/orgs","repos_url":"https://api.github.com/users/pleary/repos","events_url":"https://api.github.com/users/pleary/events{/privacy}","received_events_url":"https://api.github.com/users/pleary/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T22:47:07Z","updated_at":"2016-01-14T22:47:07Z","body":"There were some observations in the project which were observed outside the BioBlitz window, but they had been added by users before that privilege was revoked. Scott said there was at least one he thought was deleted and came back, but I can't confirm that. I tried on Staging and using the \"Remove\" option from the project list on observations show did seem to work for me.\r\n\r\nNot sure exactly what happened with the counts. There are delayed jobs to update a cached observation count on ProjectUser, so it is possible we are failing to call that method during some create/update/delete. I manually reset the counts with:\r\n\r\n```Project.find(5935).project_users.each{ |pu| ProjectUser::update_observations_counter_cache_from_project_and_user(5935, pu.user_id) }``\r\n\r\nThe only users that were wrong were scubale and tiwane which first reported 0, then reported 1 after updating the cached count. Ultimately not much was resolved here. If we can get more data maybe we can track down the operation that's causing counts to get out of sync."}}