Jan Böhmer
75df0198fc
Fixed tests
2024-04-28 23:12:10 +02:00
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
af98842090
Added tests for the remaining API endpoints
2024-03-03 23:07:55 +01:00
Jan Böhmer
3d67ad870a
Added tests for all API endpoints of Structural elements
2024-03-03 21:52:26 +01:00
Jan Böhmer
7b5ae70de3
Added tests for the Attachments API endpoint
2024-03-03 21:02:15 +01:00
Jan Böhmer
7a90d3f281
Rewrote PartNormalizer so that it does not use ObjectNormalizer directly
2024-03-03 19:28:44 +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
26a4b57cfb
Fixed tests related to PartNormalizer
2024-01-06 15:01:50 +01:00
Jan Böhmer
a6d508205b
Fixed SQLite regex test
2023-12-06 00:00:20 +01:00
Jan Böhmer
9994dbd9db
Added tests to test the KICad API endpoints
2023-12-03 00:43:34 +01:00
Jan Böhmer
6b0f0d31b9
Allow to authenticate using Authorization: Token header, which the KiCAD API uses
2023-11-28 14:24:22 +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
36879dd7da
Test merge and update from info provider controller endpoints
2023-11-24 23:13:15 +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
3da656c08b
Fixed (false positive) test in APIDocsAvailabilityTest
...
API Platform seems to have slightly changed the serialization process of errors and the requested HTML format was not available for error serialization
2023-11-17 23:59:32 +01:00
Jan Böhmer
5442aa5e07
Added test for vendor barcode scanner
2023-11-17 23:29:06 +01:00
Jan Böhmer
4d7d196a3c
Added some documentation and tests to PartAssociations
2023-11-17 18:36:49 +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
294f7cf005
Fixed some deprecations related to missing return types
2023-10-25 17:27:37 +02:00
Jan Böhmer
f53c98312e
Escape space in attachment URLs with %20
...
Fixes issue #401
2023-10-15 00:50:43 +02:00
Jan Böhmer
c7a02ae870
Added tests for token API authentication
2023-10-02 23:36:14 +02:00
Jan Böhmer
90518056cd
Fixed JSONLD schema generation of API documentation
2023-10-01 22:45:39 +02:00
Jan Böhmer
1e52ec42ca
Added tests for availability of the API documentation
2023-10-01 21:56:05 +02:00
Jan Böhmer
0af5a58dbe
Renamed Storelocation entity to StorageLocation
2023-09-04 22:57:40 +02:00
Jan Böhmer
e04b635c98
Added API endpoints for more data structures
2023-09-03 17:15:18 +02:00
Jan Böhmer
879b702fc1
Fixed PHPunit tests
2023-08-28 22:47:15 +02:00
Jan Böhmer
f265b9d19d
Fixed PHPstan issues
2023-08-28 22:39:29 +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
85f3ba6aaa
Merge branch 'master' into api
2023-08-26 22:15:12 +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
3bc6e61869
Added very basic system to add API tokens to an user
2023-08-15 23:36:56 +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
b3153dac68
Fixed static analysis issue and added test for UserRepository
2023-08-01 16:20:31 +02:00
Jan Böhmer
15ba6572df
Try to detect if an external attachment is an image or not.
...
Before we assumed that it is a picture in all cases.
2023-07-29 18:50:18 +02:00