Jan Böhmer
87a518703f
Escape spaces in unnwrapped urls to avoid invalid URLs
2024-09-09 16:23:12 +02:00
Jan Böhmer
dd03ca943d
Fixed phpstan issues
2024-09-09 14:52:18 +02:00
Jan Böhmer
6997861811
[OEMSecrets provider] Extract real URLs and remove tracking parts
2024-09-09 14:52:09 +02:00
Pasquale D'Orsi
1cc1530b20
OEMSecrets provider interface v.1.0 ( #679 )
...
* OEMSecrets provider interface v.1.0
New class for interacting with the OEMSecrets (https://www.oemsecrets.com ) API version 3.0.1.
* Refactored info provider to be stateless and independent from session, optimized Part-DB API usage, and fixed PHPStan issues.
Refactored info provider to be stateless and independent from session, now use Psr\Cache, fixed issues identified by PHPStan, additional minor enhancements and bug fixes.
* Prefix cache keys with oemsecrets_ to avoid key collissions
* Use uniqid with more entropy to reduce probability of collisions
* Made $resultData local as it is only used inside searchByKeyword
* Use the parameter name $id from interface declaration for getDetails to avoid problems with named arguments
* Use unicode modifier for preg_match to avoid problems when parameters contain non-unicode strings
* Various small code quality improvements
* Try to retrieve the part from the API in getDetails, if the DTO was not cached before
* Improved code formatting
* Channged OEMSecret default country to DE to be consistent with other default values
* Do not call gc_collect_cycles in the loop to process the results, but only after all processBatch calls
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-09-09 00:59:44 +02:00
Jan Böhmer
98597fb3aa
Use new repository pathes (Part-DB-server) instead of the Part-DB-symfony ones
2024-09-08 20:05:06 +02:00
Jan Böhmer
283a445198
Use jbtronics/translation-editor bundle instead of php-translation/symfony-bundle for profiler translation editing
...
This new bundle has less dependencies and less overhead
2024-09-08 20:03:33 +02:00
Jan Böhmer
7db44f0ec5
Upgraded dependencies
2024-09-08 19:54:31 +02:00
Jan Böhmer
abb5395cae
Use "log-bin-trust-function-creators" option for mysql in recommended docker-compose file
...
This avoids errors, while creating the MySQL functions for the natural sort: "1419 You do not have the SUPER privilege an
d binary logging is enabled"
2024-09-08 19:46:55 +02:00
Jan Böhmer
8c8b44baef
Use debian bookworm, PHP 8.2 and node 20 for the docker image by default
2024-09-08 19:40:43 +02:00
Jan Böhmer
7366a33fe5
Apply the PHP_VERSION arg also to the partdb-entrypoint during build, to make it really version independent
2024-09-08 19:40:19 +02:00
Jan Böhmer
ad02d7e525
New Crowdin updates ( #692 )
...
* New translations messages.en.xlf (English)
* New translations validators.en.xlf (English)
* New translations security.en.xlf (English)
* New translations validators.en.xlf (Italian)
2024-09-08 19:14:02 +02:00
David Girón
b5a0189f29
feat(docker): Refactor Dockerfile ( #683 )
...
* reorder nodejs/yarn install, separate packages per line
* reduce run actions and reorganize commands
* simplify file creation, copy in one layer only
* fix lint LegacyKeyValueFormat
* arg php_version to run different version
* reorder copy from generated config
* update dockerfile-frankenphp
2024-09-08 19:13:13 +02:00
Jan Böhmer
756152dd68
Bumped to version 1.13.3
2024-08-24 15:58:46 +02:00
Jan Böhmer
173a8ee680
Improved assymmetric padding in datatables footer
2024-08-24 15:55:45 +02:00
Jan Böhmer
b99777cde1
Return a 404 message, instead of creating an 500 Runtime exception, when a file associated with an attachment is not existing.
...
This fails more gracefully, and do not pollute log files.
2024-08-24 15:49:45 +02:00
Jan Böhmer
8193e7a68e
Allow to show attachment IDs in attachment table
2024-08-24 15:48:50 +02:00
Jan Böhmer
f18c024daa
Remove -> prefix if no element is selected yet
2024-08-24 15:35:30 +02:00
Jan Böhmer
f6577a8f33
Allow to create sub elements for existing elements, by typing "->"
...
This fixes issue #666 and #560
2024-08-24 15:31:44 +02:00
Jan Böhmer
7fc3153dde
Fixed filter logic for exclusion of entities. Before parts with null values as property value were wrongly not shown
...
This fixes issue #658
2024-08-23 22:58:04 +02:00
Jan Böhmer
5231dbd6e7
Remove project path in twig label error messages to prevent information leakage
2024-08-23 22:28:29 +02:00
Jan Böhmer
77671550a7
Fail gracefully, when an exception occurs during rendering of the example labels for label profiles
...
This fixes issue #671
2024-08-23 22:15:29 +02:00
Jan Böhmer
e231404128
Load HTMLExtension in SandboxedTwig, so that the data_uri filter can be used in twig labels
...
This fixes issue #665
2024-08-23 22:06:37 +02:00
Jan Böhmer
6650e2da3d
Updated dependencies
2024-08-23 21:57:37 +02:00
frank-f
fd521acaa4
Update LCSCProvider field for real datasheet URL ( #670 )
2024-08-21 17:35:55 +02:00
Jan Böhmer
a169623866
Bump version to 1.13.2
2024-07-28 23:20:47 +02:00
Jan Böhmer
21c3c45150
Introduced a custom ExponentialNumberType for parameter values
...
This type shows small values in exponential notation instead of rounding it to zero.
2024-07-28 23:18:36 +02:00
Jan Böhmer
1aee0a91c0
Workaround symfonys issue with NumberType and negative exponential e-notation number
...
This fixes issue #649
2024-07-28 22:52:44 +02:00
Jan Böhmer
27a28d4adc
Fixed the NatSortKey function where regex characters were improperly escaped in the old migration
...
This caused a "range out of order in character class" error and propably affected the functionality of the sort function
2024-07-28 17:08:55 +02:00
Jan Böhmer
d6ff22fc44
Show in server info page which natural sorting method is used
...
This should ease debugging
2024-07-28 14:13:34 +02:00
Jan Böhmer
5ede61118c
Use paragonie/sodium_compat v1 as v2 do not support 32-bit PHP anymore
2024-07-28 13:31:27 +02:00
Jan Böhmer
228549ff51
Include pgsql extensions and client in docker images
2024-07-28 13:12:42 +02:00
Jan Böhmer
1ec5cbc301
Merge remote-tracking branch 'origin/l10n_master'
2024-07-28 13:02:58 +02:00
Jan Böhmer
3011cb8fae
Updated dependencies
2024-07-28 13:02:39 +02:00
Jan Böhmer
ff78c3c9a7
New translations security.en.xlf (Vietnamese)
2024-07-10 03:32:31 +02:00
Jan Böhmer
d5980b7620
New translations messages.en.xlf (Spanish)
2024-07-05 11:30:31 +02:00
Jan Böhmer
a8e1171108
Bumped to version 1.13.1
2024-06-23 21:14:00 +02:00
Jan Böhmer
19e5d302f4
Fixed detection on mariadb natsort capabilities on distributions which use the 5.5.5- prefix for MariaDB version
2024-06-23 21:13:37 +02:00
Jan Böhmer
22e2480feb
Bumped version to 1.13.0
2024-06-23 19:06:29 +02:00
Jan Böhmer
88ef1788ac
Add small time differences to the datafixtures log entries, to get a defined order
2024-06-23 18:03:54 +02:00
Jan Böhmer
a54ce939ca
Merge branch 'timetravel-tests'
2024-06-23 17:45:17 +02:00
Jan Böhmer
528d0c7a26
Added tests for TimeTravel service and fixed applyEntry function for embeddded fields
2024-06-23 17:43:10 +02:00
Jan Böhmer
c68a647e75
Added missing tests for LogEntryRepository
2024-06-23 16:07:42 +02:00
Jan Böhmer
e0e4b74b6f
Fixed getElementExistedAtTimestamp function()
2024-06-23 15:46:10 +02:00
Jan Böhmer
204178740c
Started adding basic tests for LogEntryRepository
2024-06-23 15:41:57 +02:00
Jan Böhmer
8fdf37261d
Fixed phpstan issues
2024-06-23 00:42:49 +02:00
Jan Böhmer
06c8e584a4
Allow to import attachments and parameters via entity import
...
This fixes issue #363
2024-06-23 00:41:25 +02:00
Jan Böhmer
bbf7222a6a
Improved EntityExporter to handle recursive exports
2024-06-23 00:11:38 +02:00
Jan Böhmer
f6e955b487
Hide mouser parts with an invalid product ID to avoid the issue described in #616
2024-06-22 23:37:50 +02:00
Jan Böhmer
32a72bfd23
Defocus show/hide sidbar button after clicking to close tooltip
...
Fixes issue #628
2024-06-22 23:08:51 +02:00
Jan Böhmer
25e0c22de9
Merge branch 'added-scan-button-to-navbar'
2024-06-22 23:04:06 +02:00