Organization-name check in the new-organization form can drift from central-manager's rule

Aperta
#2,040 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading src/lib/string/regex/organizationNameRegex.ts and locate the form that uses it. The issue identifies central-manager's VALIDATION_CONSTRAINTS.ORG.NAME_REGEX as the authoritative rule and suggests exposing it for Studio or adding a CI comparison. Done means the form's rule cannot silently drift from central-manager's rule.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

The new-organization form checks names with organizationNameRegex (src/lib/string/regex/organizationNameRegex.ts), a copy of central-manager's VALIDATION_CONSTRAINTS.ORG.NAME_REGEX, which is the authoritative rule. Nothing fails when the two drift apart. If central-manager narrows its rule, the form accepts a name and the create request fails with a 400; if it widens, the form refuses names central-manager would accept.

Possible fixes

  • central-manager exposes its organization-name rule (an endpoint or a published constant) and Studio reads it.
  • A CI check in either repo compares the two expressions.

Review-Deferral: 686bcc1086557b14 severity=nit category=maintainability

🤖 Generated by Anthropic Claude (Opus); posted via @Devin-Holland.

Lingua principale
TypeScript
Stelle
5
Fork
4
Merge medio
1g 20h
PR unite (30g)
140

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/studio

Tutte le issue di HarperFast/studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.