CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-services

Harden TinyNode endpoint adapter to avoid route prefix drift

Open
#517 0 comments 0 reactions 0 assignees View on GitHub
copilot
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

During interaction scanning, TPEN-services appears to call TinyNode CRUD routes with method/path conventions that may not match all other consumers (notably DEER using /app/*).`n`nSuggested adjustment in TPEN-services:`n1. Centralize TinyNode endpoint mapping in one adapter module.`n2. Explicitly version or configure route prefix (/app vs root).`n3. Add integration tests against TinyNode route contract.`n`nThis would reduce drift and make contract-seam checks easier to enforce.`n`nFiled by automation as requested; label: copilot.

Contributor guide

Open the contributing guide

Research direction

Start by tracing interaction scanning in TPEN-services and comparing its TinyNode CRUD method/path conventions with the DEER consumer's /app/* routes. Review the proposed adapter boundary and route contract expectations, then add integration coverage showing consistent configurable or versioned prefixes. Done means endpoint mapping is centralized and the TinyNode route contract is enforced by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.