Jan Böhmer
59c4248efe
Strip HTML tags from more LCSC fields
...
This should hopefully fix issue #553
2024-03-09 23:09:49 +01:00
Jan Böhmer
a5b101a0ea
Fixed error, when retrieving prices in USD from LCSC
...
This fixes issue #552 . It seems that LCSC changed their currency symbol for US-Dollar
2024-03-09 22:54:12 +01:00
Jan Böhmer
c989be2719
Retrieve the part mass from mouser API if available
2024-03-09 21:34:05 +01:00
Jan Böhmer
1e6065f732
Show 64-bit recommendation in check requirements CLI and server info page
2024-03-09 00:23:18 +01:00
Jan Böhmer
206bcebdb7
Forbid users to select dates after 2038 on 32-bit systems to prevent errors caused by Year2038 bug
...
See discussion #548 and #549
2024-03-09 00:11:00 +01:00
Jan Böhmer
838997b959
Updated the list of allowed object methods in twig label mode
2024-03-06 21:39:49 +01:00
Jan Böhmer
38b5a84c4f
Added some more useful variables to the twig label generator
2024-03-06 21:11:31 +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
a2cd5652d2
Updated the list of tags, filters and functions which are allowed inside the sandboxed twig
2024-03-06 20:03:12 +01:00
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