Part-DB-server/src/Validator/Constraints
web-devinition.de 771857e014
Added feature for part IPN suggest with category prefixes (#1054)
* Erweiterungstätigkeiten zur IPN-Vorschlagsliste anhand von Präfixen aus den Kategorien

* Umstellung Migrationen bzgl. Multi-Plattform-Support.
Zunächst MySQL, SQLite Statements integrieren.

* Postgre Statements integrieren

* SQL-Formatierung in Migration verbessern

* Erweitere IPN-Suggest um Bauteilbeschreibung.

Die Implementierung berücksichtigt nun zusätzlich die Bauteilbeschreibung zu maximal 150 Zeichen Länge für die Generierung von IPN-Vorschlägen und Inkrementen.

* Anpassungen aus Analyse vornehmen

* IPN-Validierung für Parts überarbeiten

* IPN-Vorschlagslogik um Konfiguration erweitert

* Anpassungen aus phpstan Analyse

* IPN-Vorschlagslogik erweitert und Bauteil-IPN vereindeutigt

Die IPN-Logik wurde um eine Konfiguration zur automatischen Suffix-Anfügung und die Berücksichtigung von doppelten Beschreibungen bei Bedarf ergänzt. Zudem wurde das Datenmodell angepasst, um eine eindeutige Speicherung der IPN zu gewährleisten.

* Regex-Konfigurationsmöglichkeit für IPN-Vorschläge einführen

Die Einstellungen für die IPN-Vorschlagslogik wurden um eine Regex-Validierung und eine Hilfetext-Konfiguration erweitert. Tests und Änderungen an den Formularoptionen wurden implementiert.

* Match range assert and form limits in suggestPartDigits

* Keep existing behavior with autoAppend suffix by default

* Show the regex hint in the browser validation notice.

* Improved translations

* Removed unnecessary service definition

* Removed german comments

---------

Co-authored-by: Marcel Diegelmann <marcel.diegelmann@gmail.com>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-11-03 00:31:47 +01:00
..
BigDecimal Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
Misc Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
ProjectSystem Added possibility to ignore the checks of withdraw amount when building projects 2023-08-20 23:23:18 +02:00
NoLockout.php Fixed static analysis issues 2023-06-11 23:16:07 +02:00
NoLockoutValidator.php Fixed further inspection issues 2024-03-03 20:33:24 +01:00
NoneOfItsChildren.php Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
NoneOfItsChildrenValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
Selectable.php Fixed further inspection issues 2024-03-03 20:33:24 +01:00
SelectableValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
UniqueObjectCollection.php Fixed "implicitly marking parameter as nullable" deprecations in PHP 8.4 fixed 2025-02-08 00:19:20 +01:00
UniqueObjectCollectionValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
UniquePartIpnConstraint.php Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
UniquePartIpnValidator.php Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
UrlOrBuiltin.php Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
UrlOrBuiltinValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
ValidFileFilter.php Removed remaining annotations 2023-06-11 19:42:02 +02:00
ValidFileFilterValidator.php Fixed further inspection issues 2024-03-03 20:33:24 +01:00
ValidGoogleAuthCode.php Fixed "implicitly marking parameter as nullable" deprecations in PHP 8.4 fixed 2025-02-08 00:19:20 +01:00
ValidGoogleAuthCodeValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
ValidPartLot.php Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
ValidPartLotValidator.php Fixed further inspection issues 2024-03-03 20:33:24 +01:00
ValidPermission.php Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
ValidPermissionValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
ValidTheme.php Moved custom validators from annotations to attributes 2023-06-11 19:32:15 +02:00
ValidThemeValidator.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
Year2038BugWorkaround.php Forbid users to select dates after 2038 on 32-bit systems to prevent errors caused by Year2038 bug 2024-03-09 00:11:00 +01:00
Year2038BugWorkaroundValidator.php Forbid users to select dates after 2038 on 32-bit systems to prevent errors caused by Year2038 bug 2024-03-09 00:11:00 +01:00