Mod Portal and API "latest release" inconsistentcy issue

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
Post Reply
User avatar
BrainGamer_
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

Mod Portal and API "latest release" inconsistentcy issue

Post by BrainGamer_ »

The Mod Portal website and API give different results for the latest release of Bio Industries.
It seems like website also sorts by game version (or upload time?) before determining the latest release while the API does not.

Request used to the API: https://mods.factorio.com/api/mods?page_size=max. Specifying the game version in the API call gets rid of the issue but that is unfortunately incompatible with hide_deprecated=false.

edit: I guess this is also related to 66989
portal.png
portal.png (72.72 KiB) Viewed 249 times
api.png
api.png (41.12 KiB) Viewed 249 times

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 187
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Mod Portal and API "latest release" inconsistentcy issue

Post by vinzenz »

BrainGamer_ wrote:
Tue Jun 11, 2024 4:32 am
Request used to the API: https://mods.factorio.com/api/mods?page_size=max. Specifying the game version in the API call gets rid of the issue but that is unfortunately incompatible with hide_deprecated=false.
I fixed the version filter overriding hide_deprecated=false. Fixing the API <-> mod portal inconsistency will take some more work, but we'll do something about it before 2.0 releases.
bringing the oops to devops

User avatar
BrainGamer_
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

Re: Mod Portal and API "latest release" inconsistentcy issue

Post by BrainGamer_ »

Amazing! Thanks a lot :)

Post Reply

Return to “Mod portal Discussion”