Skip to content

OpenConceptLab/ocl_issues#2902 | Load the Locales catalog from the cached lookup endpoint - #99

Merged
snyaggarwal merged 1 commit into
mainfrom
OpenConceptLab/ocl_issues#2902-locales-lookup
Oct 14, 2026
Merged

snyaggarwal merged 1 commit into
mainfrom
OpenConceptLab/ocl_issues#2902-locales-lookup

Conversation

@paynejd

@paynejd paynejd commented Oct 13, 2026

Copy link
Copy Markdown
Member

closes OpenConceptLab/ocl_issues#2902

The Mapper now loads its locale catalog from /orgs/OCL/sources/Locales/concepts/lookup/?verbose=true instead of /orgs/OCL/sources/Locales/concepts/?limit=500. fetchMapTypes already reads map types the same way.

Before After
Response 486 full concept rows, 421 KB 486 lookup rows, 56 KB
Time in production (13 Oct) about 6 s, uncached 0.2–0.4 s, cached by the API for 24 h
Locales in the dropdown 184 the same 184 (compared pair by pair)

The lookup endpoint has no retired field, so I dropped the !c?.retired filter. OCL/Locales has no retired concepts.

Testing: ran CI's lint and npm run test:all; both pass. I compared the two production responses directly and didn't run the app.

🤖 Generated with Claude Code

…ched lookup endpoint

fetchOclLocales listed /orgs/OCL/sources/Locales/concepts/?limit=500 on every
project open: 486 full rows, 421 KB, about 6 s in production. The lookup
endpoint returns the same 184 locale/display_name pairs in 56 KB and about
0.3 s, and the API caches it for 24 hours, as fetchMapTypes already uses.

closes OpenConceptLab/ocl_issues#2902

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paynejd
paynejd requested a review from snyaggarwal October 13, 2026 16:45
@paynejd

paynejd commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 1 (codex-cli 0.162.1, commit 1c307bf)

Verdict: clean. No findings.

findings.json
{
  "reviewer": "codex-cli 0.162.1",
  "perspective": "defects",
  "mode": "full",
  "commit": "1c307bf06583e7ebc2ba88b8c483a578a25a21dc",
  "verdict": "clean",
  "prior": [],
  "findings": []
}

@paynejd

paynejd commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

Simplification review (fresh Claude subagent, commit 1c307bf): clean, nothing to cut. Review loop done: Codex pass 1 clean, so no further passes.

@snyaggarwal
snyaggarwal merged commit 5b7954b into main Oct 14, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the OpenConceptLab/ocl_issues#2902-locales-lookup branch October 14, 2026 01:12
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.

Mapper: load the Locales catalog from the cached lookup endpoint (6 s to 0.3 s)

2 participants