Skip to content

creator-mapping#8

Merged
Daniel-Ric merged 2 commits intomasterfrom
feature/2026-01-28/implement-new-endpoint-for-item-count-by-creator
Jan 28, 2026
Merged

creator-mapping#8
Daniel-Ric merged 2 commits intomasterfrom
feature/2026-01-28/implement-new-endpoint-for-item-count-by-creator

Conversation

@Daniel-Ric
Copy link
Copy Markdown
Owner

Motivation

  • Inventory creator counts were returning raw IDs or unknown because entitlements only contained creator IDs and not display names, so clients could not show human-friendly creator names.

Description

  • Add a creatorLookup parameter to summarizeCreators in src/utils/inventoryCreators.js so resolved creator identifiers can be mapped to display names.
  • Resolve marketplace creators via getCreators and build an ID→displayName lookup in src/routes/inventory.routes.js and src/routes/purchase.routes.js, then pass that lookup into summarizeCreators.
  • Update OpenAPI docs in src/utils/swagger.js and the README to indicate creators are grouped by display name and add an example GET /inventory/creators curl line.
  • Add a unit test in test/inventoryCreators.test.js that verifies mapping of creator IDs to display names.

Testing

  • Ran the test suite with npm test and all tests passed: 3 tests, 0 failures.

Codex Task

@Daniel-Ric Daniel-Ric merged commit 334d8e1 into master Jan 28, 2026
@Daniel-Ric Daniel-Ric deleted the feature/2026-01-28/implement-new-endpoint-for-item-count-by-creator branch January 28, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant