Jan Böhmer
dc7c13479c
Add proper length constraint validations to all string mapped ORM fields, so they show a nice validation error, instead of a 500 error
...
Fixes issue #544
2024-03-06 19:46:11 +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
925f5c0ce0
Fixed phpstan bug
2024-03-04 22:42:24 +01:00
Jan Böhmer
2bcbe1d0be
Made mouser price info parsing more flexible
...
Austrian mouser returned some other formatted string, which caused problems on the old method. This fixes issue #540
2024-03-04 22:38:15 +01:00
Jan Böhmer
0e68f0783f
Assume that a mouser part is active, if mouser has parts instock even if it is marked as "new part"
...
Related to #540
2024-03-04 22:18:35 +01:00
Jan Böhmer
91e8711fdf
Fixed problems with dynamically adding structural entities, when the arrows had spaces around them
...
Related to #538
2024-03-04 22:10:28 +01:00
Jan Böhmer
0cd631774b
Fixed compatibility error with webauthn library which prevented 2FA via webauthn
2024-03-04 21:20:57 +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
18c80f6b64
Use the route attribute from the correct namespace
2024-03-03 20:37:33 +01:00
Jan Böhmer
d49bb1f4b5
Removed unused import statements
2024-03-03 20:34:36 +01:00
Jan Böhmer
87533b6031
Fixed further inspection issues
2024-03-03 20:33:24 +01:00
Jan Böhmer
33e36f3d2b
Fixed issue with EntityImported that was caused by the changes to PartNormalizer
...
We now have a possibility to skip API Platforms serializer subsystem
2024-03-03 20:24:24 +01:00
Jan Böhmer
42e604245c
Fixed some inspection issues
2024-03-03 19:57:31 +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
d5b07bbaa3
Added additional type hints
2024-03-03 18:55:50 +01:00
Jan Böhmer
3585b8a56a
Adapter attachment upload forms to the new system
2024-03-03 18:52:06 +01:00
Jan Böhmer
0c33059c4e
Allow to upload files to attachments by passing a base64 encoded file
2024-03-03 18:40:35 +01:00
Jan Böhmer
0824e11570
Fixed infinite loop during deserialization on attachment PATCH operations
2024-03-03 17:58:25 +01:00
Jan Böhmer
f3bea68011
Automatically detect the discriminator type of attachments and parameters based on the chosen element IRI
...
Related to issue #502
2024-03-02 23:15:00 +01:00
Jan Böhmer
e843286ea7
Allow to create parameters via the API
2024-03-02 21:49:16 +01:00
Jan Böhmer
e3d2012809
Use a own discriminator map for the Attachment API Platform discriminator
2024-03-02 21:45:16 +01:00
Jan Böhmer
ce768764cc
Allow to create Attachments for all entity types using the API
...
This fixes issue #502
2024-03-02 21:39:30 +01:00
Jan Böhmer
16b3d58242
Implemented basic discriminator map for Attachment API access. Now we can properly create part attachments using a POST operation
2024-03-02 21:21:16 +01:00
Jan Böhmer
fad8f26eaa
Added additional projects related filters to part table views
2024-03-02 19:18:55 +01:00
Jan Böhmer
04d1e84596
Added a filter to filter for parts which are used in a specific project
...
Related to issue #516
2024-03-02 19:00:30 +01:00
Jan Böhmer
934acca934
Added an column to part table view to show which projects a part uses.
...
Fixes issue #516
2024-03-02 18:48:31 +01:00
Jan Böhmer
b7ce91e2d8
Use the new system of datatables-select 2.0 where checkboxes are true checkbox fields
2024-03-02 01:04:28 +01:00
Jan Böhmer
a72a61091a
Only add the amountSum select for part tables if it is really required
2024-02-29 23:35:05 +01:00
Jan Böhmer
c635637c00
Fixed problem that tables could not be sorted by manufacturers, categories, etc.
2024-02-29 23:13:17 +01:00
Jan Böhmer
2e5b2c8b7d
Removed amountSum subquery from the detail query, as its result is not used anywhere
2024-02-25 01:46:35 +01:00
Jan Böhmer
fbd095ab50
Only add the joins to the parts table filter query if they are really required
...
This should improve the performance of the queries slightly
2024-02-25 01:40:25 +01:00
Jan Böhmer
b176cb1ae1
Use a much faster query to retrieve the total number of rows in datatables
...
This should increase performance on part tables
2024-02-25 00:58:26 +01:00
Jan Böhmer
2b65926865
Cache the sidebar trees to save some database calls
2024-02-25 00:48:15 +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
4b7d200aa2
Retrieve category info from LCSC
2024-02-24 23:32:50 +01:00
Jan Böhmer
e937432d1e
Fixed phpstan issue
2024-02-24 23:23:46 +01:00
frank-f
e8bc93f67a
Fix RegEx to handle negative values and Ohms without prefix ( #530 )
...
* Fix RegEx to include negative values
* Update RegEx to handle Ω without prefix
* Update RegEx to include %
* Handle plus/minus values as range
* Fix copy&paste error
* Change minimum value to negative
* Escape decimal point and add slash to valid unit characters to be able to pick up for example "ppm/°C"
* Skip empty values
2024-02-24 22:48:38 +01:00
Jan Böhmer
20be83c345
Allow to configure the currency to get prices in for the LCSCProvider
2024-02-22 23:57:57 +01:00
Jan Böhmer
95ef97fcc2
Added possibility to enable/disable the LCSC provider
2024-02-22 23:32:12 +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
0bbfaf9893
Improved typing and formatting of LCSC provider slightly
2024-02-22 22:41:09 +01:00
Nexrem
e3e562a154
Add LCSC Info Provider using their public API
2024-02-22 15:32:33 +01:00
Jan Böhmer
49034fabf2
Added phpstan template annotations to Voters to fix phpstan issues
2024-02-19 00:01:16 +01:00
Jan Böhmer
3cc1fb40f0
Fixed problem that no datastructures with an parent element could be created/edited via API
...
This fixes issue #512 .
The error was introduced when trying to allow the modification of attachments/parameters throught the parent element. We need a seperate write scope to the element, or we end up with an infinite loop.
2024-02-06 22:42:25 +01:00
Jan Böhmer
fea8109789
Fixed permission denied error, when accessing a user info page
2024-02-06 22:21:43 +01:00
Jan Böhmer
ff2aafabbd
Fixed permission denied error on log details page for BOMEntries
2024-02-06 22:18:09 +01:00
Jan Böhmer
e27b15691a
Fixed permission denied error, when trying to access the log details page of a LabelProfile
2024-02-06 22:09:02 +01:00
Jan Böhmer
47ddcca065
Fixed exception on label profile admin, if the label profile had an preview attachment
2024-02-06 21:59:53 +01:00