[RFC]: Standardise Constraint Naming in Metadata Source
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with PhpDb\Metadata\Source\AbstractSource and compare the adapters under the adapter-namespace\MetaData\Source namespace to find where the laminas prefix is hardcoded. Implement the proposed configurable constraint prefix and verify that all metadata sources resolve names consistently, including the default behavior and custom-prefix validation.
索引モデルが issue の本文から書いたものです。
説明
Proposed Version
0.6.0
Basic Information
Provide a mechanism for a component-wide standardisation of constraint naming. Currently 'laminas' is prepended to a constraint name across multiple adapters in the \MetaData\Source. Instead we should enforce this from within PhpDb\Metadata\Source\AbstractSource and allow this to be changed at a global level if desired.
Background
_laminas_ key was hardcoded to the file.
Considerations
Not a huge impact, other than to see that it is legacy.
Proposal(s)
protected string $constraintPrefix = '';
public function setConstraintPrefix(string $prefix): void
{
// Ensure alphanumeric and remove leading/trailing underscore
}
protected function getResolvedConstraintPrefix(): string
{
return '_' . $this->constraintPrefix . '_';
}
### Appendix/Additional Info
_No response_
- 主要言語
- PHP
- スター
- 18
- フォーク
- 8
- 平均マージ
- 6日 11時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php-db/phpdb のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
RFC
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
RFC
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
-
RFC
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
RFC
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
customer-support needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
grokability/snipe-it#19767 ·
メンテナーはふだん 1 日以内に返信
-
[Code Quality] SfxDownloader extract path has no destination-writability pre-check for cached zipsオープンpriority:low type:refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crazy-goat/workerman-bundle#1052 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 3 日以内に返信