Title: Fix filter=count output to avoid empty objects by dheeraj12347 · Pull Request #208 · apache/cloudstack-cloudmonkey · GitHub
Open Graph Title: Fix filter=count output to avoid empty objects by dheeraj12347 · Pull Request #208 · apache/cloudstack-cloudmonkey
X Title: Fix filter=count output to avoid empty objects by dheeraj12347 · Pull Request #208 · apache/cloudstack-cloudmonkey
Description: Fixes #197 where using filter=count resulted in empty objects being printed in list responses. Problem When filter=count is applied, CloudMonkey still iterates over list items and prints empty {} entries, even when the filtered field does not exist in those list objects. Fix Skip empty rows after filtering. Omit list fields when no valid entries remain after applying the filter. Preserve only relevant top-level fields (for example, "count"). Result Before, a command such as: (localcloud) > list usagerecords startdate=2025-10-07 enddate=2025-10-10 type=6 usageid=2c218702-abff-46e8-bc8a-3e12fffa2188 filter=count could return: { "count": 319, "usagerecord": [ {}, {}, ... {} ] } Now the output correctly returns only the top-level count field: { "count": 319 } instead of including empty objects.
Open Graph Description: Fixes #197 where using filter=count resulted in empty objects being printed in list responses. Problem When filter=count is applied, CloudMonkey still iterates over list items and prints empty {} e...
X Description: Fixes #197 where using filter=count resulted in empty objects being printed in list responses. Problem When filter=count is applied, CloudMonkey still iterates over list items and prints empty {} e...
Opengraph URL: https://github.com/apache/cloudstack-cloudmonkey/pull/208
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0c043c5f-28ca-2a2e-3c04-a40677981fd8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A0F4:1081DA:109AF2F:16B9836:6A4D6A9D |
| html-safe-nonce | f2a78c8e7bae65a0638d2015e5e017343a33120c262927e03d178aa7e05c3c83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEY0OjEwODFEQToxMDlBRjJGOjE2Qjk4MzY6NkE0RDZBOUQiLCJ2aXNpdG9yX2lkIjoiMTU1MzMxMjMwMzQ4MjIzNTU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8dbfd48b2de517ce2c5f37a9fcdaa2b0bfbcbe437baac428f8e5fa1e72bd7ecf |
| hovercard-subject-tag | pull_request:3449481534 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/apache/cloudstack-cloudmonkey/pull/208/files |
| twitter:image | https://avatars.githubusercontent.com/u/184014271?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/184014271?s=400&v=4 |
| og:image:alt | Fixes #197 where using filter=count resulted in empty objects being printed in list responses. Problem When filter=count is applied, CloudMonkey still iterates over list items and prints empty {} e... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/apache/cloudstack-cloudmonkey git https://github.com/apache/cloudstack-cloudmonkey.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 13641478 |
| octolytics-dimension-repository_nwo | apache/cloudstack-cloudmonkey |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13641478 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack-cloudmonkey |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width