frank-f
7a6b045030
Improve parameter parsing ( #583 )
...
* DigiKey: Skip empty values
* Move improved range detection from LCSCProvider to ParameterDTO class
Improve numeric value detection by moving extra info to value_text
* ParameterDTO: Add micro unit prefix
* Bring $value_text2 to a defined state
* ParameterDTO: Don't overwrite $unit if it's not empty
* ParameterDTO: Don't overwrite $unit if it's not empty
* Correct some inaccuacies in comments
* Added tests and fixed certain edge cases in parsing parameters
* Added more tests for parameter parsing
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-04-15 22:33:27 +02:00
Jan Böhmer
ed4728fdb1
Correcty handle already existing elements in mass creation
...
This fixes issue #543
2024-03-10 00:51:37 +01:00
Jan Böhmer
dff1ef04bf
Added placeholders filter to utilize the placeholders in twig mode
...
Fixes #546
2024-03-06 21:00:49 +01:00
Jan Böhmer
757201cafa
Allow access of twig sandbox to a few more extensions and functions
2024-03-06 20:21:07 +01:00
Jan Böhmer
1da3225e1d
Renamed SandboxedTwigProvider to SandboxedTwig Factory
2024-03-06 20:08:35 +01:00
Jan Böhmer
113e5b3bcd
Escape not only the pathes of FileDTO objects returned by info providers but the preview image url too.
...
This fixes the second issue in #521
2024-03-05 22:52:27 +01:00
Jan Böhmer
a5d184baef
Use rawurlencode instead of urlencode to sanatize URL-unsafe characters returned by the info providers.
2024-02-24 23:58:27 +01:00
Jan Böhmer
12e9497ccf
Sanatize remaining invalid URL characters somehow returned by InfoProviders
...
This fixes issue #521
2024-02-24 23:55:31 +01:00
Jan Böhmer
e1f1d10833
Added test for change on ParamterDTO done by PR #530
2024-02-24 22:51:02 +01:00
Jan Böhmer
d600cb4b9a
Improved parsing of parameters. Values with unit and ranges get now properly parsed into the Part-DB structures
2024-02-22 23:22:52 +01:00
Jan Böhmer
19819454fa
Dont split up links when extracting parameters from notes and description
...
This partly fixes issue #469
2024-01-06 15:14:07 +01:00
Jan Böhmer
0f0adfcf36
Filter out duplicate file DTO returned by the info providers
2023-11-26 22:24:22 +01:00
Jan Böhmer
1da5e7ccd7
Properly merge the PartAssociations pointing towards the parts
2023-11-24 23:36:09 +01:00
Jan Böhmer
b9956e38b8
Dont concat if one of the strings is empty during part merge
2023-11-24 23:16:26 +01:00
Jan Böhmer
c86694ab8f
Merge the remaining fields of a Part
2023-11-21 19:41:18 +01:00
Jan Böhmer
478d5e2a3a
Merge tags and bool fields of parts
2023-11-21 00:18:10 +01:00
Jan Böhmer
01784a9d1f
Started implementing building blocks for the merge system
2023-11-19 23:17:48 +01:00
Jan Böhmer
5442aa5e07
Added test for vendor barcode scanner
2023-11-17 23:29:06 +01:00
Jan Böhmer
5cfccab671
Allow to scan IPN barcodes using the built in barcode scanner
...
This improves issue #373
2023-11-12 00:36:13 +01:00
Jan Böhmer
5e326bca12
Added label placeholders to add a barcode version of the IPN to a label
...
This fixes issue #373
2023-11-05 21:24:21 +01:00
Jan Böhmer
bdcd51d533
Refactored barcode scan functions
...
This is preparatory work for issue #373
2023-10-26 22:23:43 +02:00
Jan Böhmer
783a00ca2f
Added test for price related quantity in DTOToEntityConverter
2023-10-26 17:41:26 +02:00
Jan Böhmer
0af5a58dbe
Renamed Storelocation entity to StorageLocation
2023-09-04 22:57:40 +02:00
Jan Böhmer
fc6643bd6f
Added system to restrict permissions based on API token level
2023-08-28 21:20:59 +02:00
Jan Böhmer
0e5613b57b
Forbid access to homepage if a user has no allow permission
...
This allows to block access to everything (even the homepage) for anonymous access. This fixes issue #290
2023-08-20 12:33:08 +02:00
Jan Böhmer
1fb334b0ca
Show a notification on homepage and server info page if there is a new version available.
2023-08-04 23:49:26 +02:00
Jan Böhmer
3a8c835880
Lazily sort info providers list, to prevent unneccesarry work on most container calls
2023-07-19 00:11:19 +02:00
Jan Böhmer
afcbbe0f43
Fixed phpunit tests
2023-07-17 00:34:00 +02:00
Jan Böhmer
d10d29e590
Do not enable the create part from provider permission automatically
...
This allows users to create new datastructures, which is maybe not wanted. Besides it has to be configured first.
2023-07-17 00:20:38 +02:00
Jan Böhmer
b3b205cd6e
Added permissions to control access to info providers and oauth tokens
2023-07-16 20:33:24 +02:00
Jan Böhmer
8ea92ef330
Added tests for DTOConverter
2023-07-15 18:18:35 +02:00
Jan Böhmer
94a26ae75a
Allow to extract ranges from paramaters
2023-07-15 01:41:29 +02:00
Jan Böhmer
bb510a9240
Fixed test failure, caused by validation on user element
2023-06-18 22:11:58 +02:00
Jan Böhmer
2da7463edf
Use a enum for level in LogEntries
2023-06-18 17:25:55 +02:00
Jan Böhmer
71cd4057a7
Use enums for LabelOptions
2023-06-12 23:39:30 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00
Jan Böhmer
df8f54f5a4
Fixed tests for stricter typing
2023-06-11 15:32:29 +02:00
Jan Böhmer
fcbb1849ec
Applied rectors phpunit 9 migrations to tests
2023-06-11 15:15:55 +02:00
Jan Böhmer
5629215ce4
Use imports instead of FQNs
2023-06-11 15:00:28 +02:00
Jan Böhmer
98dc553938
Applied rector to test files
2023-06-11 14:18:53 +02:00
Jan Böhmer
79ab1a2277
Fixed various issues inside the tests
2023-05-28 02:16:40 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
63df16a369
Removed unused imports
2023-04-15 22:27:19 +02:00
Jan Böhmer
29d1d49aca
Fixed some more inspection issues
2023-04-15 22:05:29 +02:00
Jan Böhmer
de96aae9a5
Fixed inspection issues
2023-04-15 21:49:19 +02:00
Jan Böhmer
1cee1abe00
Fixed some return type deprecation messages
2023-04-15 19:33:39 +02:00
Jan Böhmer
ec50197b40
Fixed PHPUnit tests
2023-04-08 21:21:53 +02:00
Jan Böhmer
29af14f588
Added an option to enforce log comments for certain actions
...
This implements issue #220
2023-04-08 20:43:19 +02:00
Jan Böhmer
4aedce9668
Allow to use storelocation owner field in labels
...
Related to issue #221
2023-04-03 22:41:18 +02:00
Jan Böhmer
46beb21ba7
Improved structure of the PartKeepr import
2023-03-25 00:25:18 +01:00