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


##########
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:
   ping @starsz @soulbird
   
   Yes, as I mentioned in the issue, I was thinking the same thing, do you 
think it would be better to use `count` or add another `total` field? 



-- 
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