Part-DB-server/src
Marc be35c36c58
Added info provider for Buerklin (#1151)
* Fixed Typos and mistranslations in GDPR mode (DSGVO Modus)
Fixed Typo enviroment

* Create BuerklinProvider based on LCSCProvider

* Update GET URLs for Buerklin

* Add getToken function analog to Octopart

* Remove line break in docs

* Remove trailing / in ENDPOINT_URL
Use Autowire to use values of environment variables
Remove unwanted Code from LCSC-Provider
Map json response to DTO variables

* Fix variable reference errors ($term → $keyword)
Ensure array keys exist before accessing them
Optimize API calls to prevent unnecessary requests
Improve error handling for better debugging
Enhance readability and maintainability of functions

* Bumped version v1.16.2

* Update BuerklinProvider.php

Change Order of Capabilities

* Change order of capabilities in LCSCProvider.php

* Change order of capabilities in PollinProvider.php

* Try to fix getToken BuerklinProvider.php

* Add ip_buerklin_oauth to knpu_oauth2_client.yaml

* Update buerklin authorize URL in knpu_oauth2_client.yaml

* Update knpu_oauth2_client.yaml

* Adapt Buerklin InfoProvider to new Settings mechanism

* According to Buerklin API spec it's really 'token' as urlAuthorize endpoint

* Rückgabewert ist schon ein Array deshalb kein toArray

* Fix API-Access, add image, price and parameter retrieval (Datasheets not yet implemented because it is not available in the API response)

* Add Caching of requests, use default query params (language and currency) using a function, Fix Footprint assignment, translate German code comments

* Remove DATASHEET from ProviderCapabilities because the Bürklin API doesn't include Datasheet URLs at the moment, more reverse engineering needed

* Update BuerklinSettings with existing translatable strings

* Improve Buerklin Settings Page

* Added Translation strings for Buerklin Info Provider

* Improve Buerklin Provider help message

* Adapt Buerklin-provider to new settings system

* Adapt Buerklin-provider to new settings system: add missing instance of BuerklinSettings

* Improve Compliance Parameters parsing

* Remove language-dependent RoHs Date code and use shortened ISO format, Add Customs Code without parseValueField

* Fix no results for keyword search

* Implement BatchInfoProviderInterface for Buerklin Provider

* Rename searchBatch to searchByKeywordsBatch to correctly implement BatchInfoProviderInterface

* Fix Bulk Info Provider Import for Buerklin

* Tranlate comments to English to prepare for Pull-Request

* Add phpUnit unit tests for BuerklinProvider

* Try fixing PHPStan issues

* Remove OAuthTokenManager from BuerklinProviderTest

Removed OAuthTokenManager mock from BuerklinProviderTest setup.

* Fix Settings must not be instantiated directly

* Fix UnitTest for value_typ

* edd5fb3319 (r2622249199)
Revert "Change order of capabilities in LCSCProvider.php"

This reverts commit dfd6f33e52.

* edd5fb3319 (r2622249861)
Revert "Change order of capabilities in PollinProvider.php"

This reverts commit fc2e7265be.

* Use language setting for ProductShortURL

* Update default language for Buerklin provider to English in documentation

* Add suggested improvements from SonarQube

* Removed unused use directives

* Revert SonarQube proposed change. Having more than one return is acceptable nowadays

* Improve getProviderInfo: disable oauth_app_name, add settings_class, improve disabled_help

* Implement retrieveROPCToken as proposed in https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622976206

* Add missing ) to retrieveROPCToken

* add use OAuthTokenManager and create instance in constructor

* Revert the following commits that tried to implement getToken using OAuthTokenManager

Revert "add use OAuthTokenManager and create instance in constructor"This reverts commit 2a1e7c9b0974ebd7e082d5a2fa62753d6254a767.Revert "Add missing ) to retrieveROPCToken"This reverts commit 8df5cfc49e.
Revert "Implement retrieveROPCToken as proposed in https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622976206"
This reverts commit 66cc732082.

* Remove OAuthTokenManager leftovers

* Disable buerklin provider if settings fields are empty

* Improved docs

* Added TODO comment

---------

Co-authored-by: root <root@part-db.fritz.box>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-01-04 21:05:47 +01:00
..
ApiPlatform Updated to API Platform 4 2025-08-04 23:32:42 +02:00
ApiResource Revert "Use the modular api-platform packages instead of the monolitic api-platform/core package" 2025-02-22 21:12:54 +01:00
Command Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Configuration Added system to restrict permissions based on API token level 2023-08-28 21:20:59 +02:00
Controller Fixed error with mass creation, when elements on different level had the same name 2025-12-07 21:40:57 +01:00
DataFixtures Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
DataTables Removed unused service import 2026-01-04 20:03:14 +01:00
Doctrine Use xxh3 for generating hash keys instead of md5 as it offers better performance 2026-01-03 00:55:49 +01:00
Entity Revert "Declare nativeType of parent property explicitly as workaround for bug in symfony TypeInfo" 2026-01-03 22:18:10 +01:00
EntityListeners Do not remove associated Project BOM entries if part is deleted 2025-10-17 21:30:40 +02:00
EnvVarProcessors Allow that the DEFAULT_URI does not end with a slash 2025-12-04 23:31:42 +01:00
EventListener Replace hardcoded entity type names with synonym placeholders in English and German translations (#1128) 2025-12-07 14:09:22 +01:00
Events Write to event log, when a user gets impersonated 2023-07-08 23:07:06 +02:00
EventSubscriber Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
Exceptions Fixed phpstan issue 2025-10-19 16:20:08 +02:00
Form Fixed phpstan issues 2025-11-30 23:37:34 +01:00
Helpers Correctly handle IP addresses containing RFC 4007 scoping 2024-12-01 19:19:04 +01:00
Migration Fixed problems with container injection into migrations 2025-07-12 23:39:26 +02:00
Repository Allow to autodetermine categories and pathes from info provider import using a full path 2025-12-07 20:39:03 +01:00
Security Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Serializer Updated to API Platform 4 2025-08-04 23:32:42 +02:00
Services Added info provider for Buerklin (#1151) 2026-01-04 21:05:47 +01:00
Settings Added info provider for Buerklin (#1151) 2026-01-04 21:05:47 +01:00
State Moved default language, default timezone and base currency settings to new settings system 2024-08-03 23:14:29 +02:00
Translation/Fixes Keeep the segment annotations in the translation files, when editing them from inside the application 2024-10-13 20:30:56 +02:00
Twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
Validator Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
.preload.php Added copyright/license info to files 2022-11-29 21:21:26 +01:00
Kernel.php Added declare strict types to all files 2023-06-11 18:59:07 +02:00