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

オープン
#2,040 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
5
フォーク
4
平均マージ
1日 19時間
マージ済み PR(30日)
144

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HarperFast/studio のほかの issue

HarperFast/studio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。