starsz commented on code in PR #7778:
URL: https://github.com/apache/apisix/pull/7778#discussion_r954806738


##########
apisix/admin/v3_adapter.lua:
##########
@@ -183,6 +183,9 @@ function _M.filter(body)
 
     pagination(body, args)
     filter(body, args)
+
+    -- recalculate the amount of filtered data
+    body.count = body.list and #body.list or 0

Review Comment:
   But I think the count should be the total object of the resource. Not the 
count of the list.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to