3

What does total in /notifications represent?
I ran it.
The result was items in Common Wrapper Object was array of 24 items where as total was 4.

5
  • Did you run the function & see? Commented Jul 16, 2015 at 13:02
  • Change the filter Commented Jul 16, 2015 at 13:28
  • api.stackexchange.com/docs/paging Commented Jul 16, 2015 at 13:31
  • Why did you give me that link. I know it already. Can you see it here - i.sstatic.net/gpXxx.png? Commented Jul 16, 2015 at 13:34
  • 1
    I couldn't understand that. There also I am getting same behaviour. Commented Jul 16, 2015 at 13:40

1 Answer 1

3

This is a bug. I've tagged your question accordingly.

total, in the wrapper object, should always be the length of the items array, after concatenating all pages of results.

When I run /2.2/notifications?pagesize=100&filter=!*L6X1NqVdlFobvlv, I get 4 pages of results, currently totaling 382 items:

"Totally" Bogus!

total remains fixed at 77. This is clearly a bug, total should be 382 in my case.

6
  • I think they may be telling about the types of notification_type. Commented Jul 17, 2015 at 11:28
  • No, there are only 15 notification_types. Commented Jul 17, 2015 at 11:32
  • I meant in your response. How many types of notification_types are in your response? Commented Jul 17, 2015 at 11:37
  • In my particular response there were 6 types of notification_type returned. What does that have to do with anything? Commented Jul 17, 2015 at 11:42
  • I was guessing. Why do total = 4 comes when items != 4? Commented Jul 17, 2015 at 11:50
  • 1
    Why? Because it's a bug! There could be a mistake in the SQL, or an uninitialized variable, or any of a hundred things that can cause it. Only someone with developer access could know for sure. Commented Jul 17, 2015 at 18:41

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.