Details
-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
Description
When you filter the organizations endpoint on org_units it is not picking up the suborgs.
Steps to reproduce:
1. Run make load-aws-org-unit-tree
2. View the organizations endpoint:
http://127.0.0.1:8000/api/cost-management/v1/organizations/aws/
3. Note that OU_002 has OU_003 as a suborg
4. Hit the endpoint again, this time filtering on OU_002:
http://127.0.0.1:8000/api/cost-management/v1/organizations/aws/?filter[org_unit_id]=OU_002
5. Note that OU_002 no longer has suborgs