ProofHub / api_v3

ProofHub Bolt's API
18 stars 8 forks source link

Correct use of group_by parameter for the All Time endpoint #15

Closed bellwetherlabs closed 1 year ago

bellwetherlabs commented 1 year ago

The ability to group results for the /alltime endpoint is not working.

I'm attempting to fetch time data grouped by person_name but the same results are returned regardless of which group_by parameter is used.

For example, requests for /api/v3/alltime, /api/v3/alltime?group_by=date, and /api/v3/alltime?group_by=person_name all return the same results.

Update: Dec 27, 2022 I contacted ProofHub support regarding this issue and they have issued a 'fix' for this problem. I can confirm that the group_by parameter does now affect how data is returned in that data will be returned in the sort order specified for the group_by parameter.

However, the same raw data is returned regardless of the group_by specified as this only changes the sort order of the data. The group_by parameter does not return aggregated data as one would expect. ProofHub support confirmed that this is the intended behavior.