API reports incorrect number of world's articles. | World Anvil

Remove these ads. Join the Worldbuilders Guild

API reports incorrect number of world's articles.

closed
· Api ·
By Hanhula on 09/30/2023
· Assigned to GorkamWorka
· Reproduced Bug

Yo! I'm working on an article filtering thing (mostly for myself at the min, but it's a starting point for something bigger) and I've spotted a pretty annoying issue with Istralar specifically.   Whenever I call the API to ask how many articles Istralar has, it tells me I have 794 articles. Whenever I check the dashboard, I have 751. As I want to use the countArticles field to apply a max limit to my article request API call, and to generally call my world's stats accurately, this is naturally an issue.   I can't see anything on my end causing this. Pics of issue below: https://cdn.discordapp.com/attachments/1020269206899540000/1157688052358062100/chrome_ATCB0pUNev.png?ex=65198484&is=65183304&hm=9cd480ec7e5f77e8f338d7c4f859f16931843796c46daf50f40b904bcdb332e0& https://cdn.discordapp.com/attachments/1020269206899540000/1157688052664254496/chrome_PNi0ydLIuH.png?ex=65198484&is=65183304&hm=4ca3250b3df538fe725bfa45ef5bc36a9de2da58b40a626f0a7edc9fd1e38a74&

Steps to Reproduce

1. Call the /world?id= endpoint with a minimum granularity of 0. 2. Check the countArticles field. 3. Check the world's statistics page. 4. Check the articles listed.

Operating System

Windows

Browser

Google Chrome

History

Dimitris @ 03 Oct, 2023 08:44:31 Developer
Assigned GorkamWorka
SoulLink @ 09 Oct, 2023 05:57:40 Moderator
SoulLink Added tag Bug
GorkamWorka @ 12 Oct, 2023 08:42:46 Assignee

it's not an api bug, as this data is not calculated by the API. You are just seeing the internal value that the world object contain.

Hanhula @ 12 Oct, 2023 09:26:21

oh, sounds like fun db issues!

GorkamWorka @ 17 Oct, 2023 10:14:03 Assignee

fixed

GorkamWorka @ 17 Oct, 2023 10:14:12 Assignee
GorkamWorka Added tag Reproduced
GorkamWorka @ 17 Oct, 2023 10:14:20 Assignee
set this bug to closed