This PR fixes an issue in which groupByNode/groupByNodes functions were returning more series than expected (based on issuing the same query in Graphite-web). The Graphite-web implementation returns only the first result of the series that are returned from the callback function. In order to match the expected behavior, these functions have been updated to do the same.
This PR fixes an issue in which groupByNode/groupByNodes functions were returning more series than expected (based on issuing the same query in Graphite-web). The Graphite-web implementation returns only the first result of the series that are returned from the callback function. In order to match the expected behavior, these functions have been updated to do the same.