Export the pipeline recipe-name pattern from the contract
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
Start with the RECIPE_NAME constant in backend/src/routes/admin/compute-pipeline.ts and confirm the pattern it holds. Move that pattern into shared/contract/compute-admin.ts under an exported name, and have the route import it from there. Done when the route compiles against the shared export with unchanged behaviour, and the website drift test (outside this repo) can reference the export.
Written by the indexing model from the issue text.
Description
The recipe-name pattern of the admin pipeline routes is route-local: RECIPE_NAME in backend/src/routes/admin/compute-pipeline.ts (/^[a-z][a-z0-9-]{0,63}$/).
The website's admin Pipelines pages (nemarOrg/website#587, epic #2324 phase 4b) check a recipe path segment against the same pattern before calling the API, so a malformed segment is never sent.
Because the pattern is not exported from a shared contract file, the website's drift test cannot pin it; today the website copy is a hand-kept mirror with a docblock that says so.
Proposed change: export the pattern (for example COMPUTE_PIPELINE_RECIPE_NAME_RE) from shared/contract/compute-admin.ts, use it in the route, and the website will add it to its compute pipeline drift test.
- Export the recipe-name pattern from
shared/contract/compute-admin.ts - Use the exported pattern in the pipeline routes
- Website: pin it in
test/compute-pipeline-contract-drift.test.ts
This issue was drafted with AI assistance.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 6h 26m
- Merged PRs (30d)
- 249
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nemarOrg/nemar-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in nemarOrg/nemar-cli
Similar issues
-
agent-ready area: ui-server priority: p3 type: refactor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
schlessera/brain-kit#4833 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
backend enhancement priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
geolens-io/geolens#4161 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
xdelmo/Portfolio-minimal#667 ·
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
supabase/supabase#54162 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day