{"push_id":740282163,"size":2,"distinct_size":2,"ref":"refs/heads/fix/pr-40","head":"2fe49e4ebf1f79febd371c197e0e3bfce37cd78a","before":"367a9eed011700cb80efb8627a441f77cf3fdff1","commits":[{"sha":"867e085da2157cc40ced7700cd547e55a3aadd2b","author":{"email":"f8c1ccb28a9031959a9257227ce05d11006e6eca@gmail.com","name":"Justin Charette"},"message":"add test helper to mock console method calls\n\nSigned-off-by: Justin Charette <charetjc@gmail.com>","distinct":true,"url":"https://api.github.com/repos/boxofrox/publish-counts/commits/867e085da2157cc40ced7700cd547e55a3aadd2b"},{"sha":"2fe49e4ebf1f79febd371c197e0e3bfce37cd78a","author":{"email":"f8c1ccb28a9031959a9257227ce05d11006e6eca@gmail.com","name":"Justin Charette"},"message":"rewrite cursor field optimizations\n\nbased on PR #40:\n\n- If the user manually provides a fields specifier in their query, we\n  respect that.\n\n  - Except for basic counts where the fields are unused and\n    inaccessible, instead warn the user and limit to _id.\n\n  - When countFromField* is a string, warn user of potential unused\n    fields, but respect their settings.\n\n- If not, and they pass a function in for one of those arguments, we\n  warn them and don't limit the query.\n\n- In the usual case, where countFromField* is a string or not set at\n  all, we use what we know to limit fields, and everything is happy.\n\nSigned-off-by: Justin Charette <charetjc@gmail.com>","distinct":true,"url":"https://api.github.com/repos/boxofrox/publish-counts/commits/2fe49e4ebf1f79febd371c197e0e3bfce37cd78a"}]}