Skip to content

fix(sitemap): AI models missing from sitemap (numeric ids filtered out) - #495

Merged
saqibmanan merged 1 commit into
devfrom
fix/sitemap-numeric-ids
Oct 7, 2026
Merged

saqibmanan merged 1 commit into
devfrom
fix/sitemap-numeric-ids

Conversation

@saqibmanan

@saqibmanan saqibmanan commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Problem

/sitemap/aimodels-N.xml serves an empty urlset on prod and dev. Prod's index lists aimodels-1.xml, but it has 0 urls while the prod backend has 15 public, active AI models.

isEntityItem (added in d750e88, 2026-08-31) keeps only items whose id is a string. TypeAIModel.id is a GraphQL Int ({"id": 44}), so every AI model is dropped. Other entities return string ids and are unaffected.

This is the same symptom as #455, which was put down to pagination and closed as won't-fix.

Fix

Accept string | number ids.

Verified

Ran next dev locally against the prod backend (FEATURE_SITEMAP_BACKEND_BASE_URL=https://api.datakeep.civicdays.in/api):

child sitemap before after backend
aimodels-1.xml 0 15 15
usecases-1.xml 17 17
sectors-1.xml 8 8

Fixes #455

AIModel ids are GraphQL Int. The string-only isEntityItem filter added in
d750e88 dropped every AI model, so aimodels-N.xml served an empty urlset.
@saqibmanan
saqibmanan deployed to development October 7, 2026 07:59 — with GitHub Actions Active
@saqibmanan
saqibmanan merged commit f7da283 into dev Oct 7, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
development — 93403802 Deployed Oct 7, 2026 by saqibmanan via build (24.x) #838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant