-
-
Notifications
You must be signed in to change notification settings - Fork 162
Feature part IPN suggest with category prefixes #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feature part IPN suggest with category prefixes #1054
Conversation
…us den Kategorien
Zunächst MySQL, SQLite Statements integrieren.
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.
Some preliminary remarks:
|
Also you should fix the complains of phpstan. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1054 +/- ##
============================================
- Coverage 57.77% 57.65% -0.13%
- Complexity 7043 7106 +63
============================================
Files 565 568 +3
Lines 23028 23222 +194
============================================
+ Hits 13305 13389 +84
- Misses 9723 9833 +110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
@jbtronics, please accept my apologies for not having contacted you about this matter yet. I have also worked on some of the points you mentioned so that I can get as close as possible to what you requested. |
No worries, take your time ;) |
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.
Hello @jbtronics, thank you for your understanding! Regarding your comments:
This is, of course, completely correct. I've reverted this and renamed the constant (see below).
Thanks for the tip. I've renamed it to "autoAppendSuffix/IPN_AUTO_APPEND_SUFFIX" Hopefully, that makes it clearer.
Thank you, that's a good point. I've added IPN_SUGGEST_REGEX and IPN_SUGGEST_REGEX_HELP for help text that the Regex administrator can add for their Part-DB users, which will then also be displayed in the Part configuration (see below).
Thanks, I changed that.
I have a use case that occurs frequently in everyday life. For example, there are often repetitive description texts for multiple components, and in these cases, it is helpful to have a search/suggest with the next possible part increment after inserting an existing description text.
I have implemented a test for this. Attached is a screenshot of the implemented system settings: ![]() Thanks for everything so far! I've pushed the adjustments. |
Hello @jbtronics,
In relation to #1051 the feature for part IPN suggest with category prefixes.
Also mentioned in the discussion under #1041, section 2.
I am grateful for integration!
Best regards,
Marcel