What's up with Categories in /budgets/{budget_id}?

I noticed really weird output in /budgets/{budget_id}. What exactly is the Categories list supposed to represent? I noticed that it contains nearly 4000 entries for my budget of only a couple of months. I discovered that in that list, it seems to repeat the same category (ie, same id, group id, and name) but with different amounts for budgeted, activity, and balance. For instance, I noticed my "School Supplies" category is represented 82 times... I noticed that even an empty test budget contains many entries in this field.

here's a sample of what I'm seeing:

{
    "id": "942c2829-dbef-412e-a2f3-bc2e38682ca7",
    "category_group_id": "d9beaebf-ae25-48cd-9efe-751e154d79f4",
    "name": "School Supplies",
    "hidden": false,
    "note": null,
    "budgeted": 55660,
    "activity": 0,
    "balance": 55660
},
{
    "id": "942c2829-dbef-412e-a2f3-bc2e38682ca7",
    "category_group_id": "d9beaebf-ae25-48cd-9efe-751e154d79f4",
    "name": "School Supplies",
    "hidden": false,
    "note": null,
    "budgeted": 200000,
    "activity": -91560,
    "balance": 108440
},
{
    "id": "942c2829-dbef-412e-a2f3-bc2e38682ca7",
    "category_group_id": "d9beaebf-ae25-48cd-9efe-751e154d79f4",
    "name": "School Supplies",
    "hidden": false,
    "note": null,
    "budgeted": 0,
    "activity": 0,
    "balance": 0
},
{
    "id": "942c2829-dbef-412e-a2f3-bc2e38682ca7",
    "category_group_id": "d9beaebf-ae25-48cd-9efe-751e154d79f4",
    "name": "School Supplies",
    "hidden": false,
    "note": null,
    "budgeted": 400000,
    "activity": -77040,
    "balance": 322960
}
3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • For what it's worth, what's up with the category groups list there too? It's only got two of mine listed, and they aren't even two I'm using. Credit Card Payments and Hidden Categories. It looks like /budgets/{budget_id}/categories returns the right data. I was hoping to use /budgets/{budget_id} since it's a one stop shop endpoint and supports deltas, but for now, I'm going to have to develop against individual endpoints to pull data.

    Reply Like
  • Hey Landy Bible  - sorry for the delay on looking into this! I'll check into it for you and let you know what I find out :) 

    Reply Like
  • Hey Landy  , thanks for bringing this up!  This is a bug.

    The category_groups array should be returning more groups and is improperly filtering the list.  Also, the categories list indeed is returning too much data and has an issue with the underlying query; you could only see an item in this array for each of your categories.

    I've got a fix (and related tests!) that will probably be released Thursday.  Thanks again for bringing this to our attention.

    Reply Like
Like1 Follow
  • 1 Likes
  • 1 yr agoLast active
  • 3Replies
  • 310Views
  • 4 Following