Sebastian Almberg
4427ba8ca6
Add KiCad HTTP Library API v2 with volatile field support
...
Implements preliminary support for the KiCad HTTP Library API v2 spec
(currently in draft). Key differences from v1:
- Volatile fields: Stock and Storage Location are marked volatile
(shown in KiCad UI but not saved to schematic files)
- Root endpoint returns links to categories endpoint
- Uses int $apiVersion parameter for clean version switching
v2 spec draft: https://gitlab.com/RosyDev/kicad-dev-docs/-/blob/http-lib-v2/content/apis-and-binding/http-libraries/http-lib-v2-00.adoc
2026-02-20 00:07:31 +01:00
Sebastian Almberg
30cd41ea8a
Split out KiCad API v2 into separate PR as requested by maintainer
...
Remove v2 controller, tests, and volatile field support from this PR.
The v2 API will be submitted as a separate PR for focused discussion.
2026-02-19 22:33:43 +01:00
Sebastian Almberg
06c6542438
Improve test coverage for BatchEdaController
...
Add tests for: applying all EDA fields at once, custom redirect URL,
and verifying unchecked fields are skipped.
2026-02-16 21:36:58 +01:00
Sebastian Almberg
7e3aa7fed8
Fix test failures: correct ids format and anonymous access assertion
2026-02-16 21:14:34 +01:00
Sebastian Almberg
be2c990286
Add functional tests for KiCad API v2 and batch EDA controller
...
- KiCadApiV2ControllerTest: root, categories, parts, volatile fields,
v1 vs v2 comparison, cache headers, 304 conditional request, auth
- BatchEdaControllerTest: page load, empty redirect, form submission
2026-02-16 21:12:41 +01:00
Sebastian Almberg
9ec6e3db70
Fix testPartDetailsPart2 to actually test Part 2
...
The test was requesting /parts/1.json instead of /parts/2.json and had
Part 1's expected data. Now tests Part 2 which inherits EDA info from
its category and footprint, verifying the inheritance behavior.
2026-02-16 21:10:58 +01:00
Sebastian Almberg
cc77007b49
Add stock quantity, datasheet URL, and HTTP caching to KiCad API
...
- Add Stock field showing total available quantity across all part lots
- Add Storage Location field when parts have stored locations
- Resolve actual datasheet PDF from attachments (by type name, attachment
name, or first PDF) instead of always linking to Part-DB page
- Keep Part-DB page URL as separate "Part-DB URL" field
- Add ETag and Cache-Control headers to all KiCad API endpoints
- Support conditional requests (If-None-Match) returning 304
- Categories/part lists cached 5 min, part details cached 1 min
2026-02-16 21:10:58 +01:00
Jan Böhmer
b21d294cf8
Ran rector and made tests final
2026-02-14 23:32:43 +01:00
Jan Böhmer
4eac63b683
Fixed phpunit deprecations
2025-11-30 14:45:40 +01:00
web-devinition.de
14a4f1f437
Added custom part status ( #1053 )
...
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, sqlite) (push) Has been cancelled
* Benutzerdefinierten Bauteilstatus einführen
* PartCustomStateController hinzufügen
* Umstellung Migrationen bzgl. Multi-Plattform-Support.
Zunächst MySQL, SQLite Statements integrieren.
* Postgre Statements integrieren
* Semikolon in Migration entfernen
* Migration für PartCustomState aktualisieren
* Benutzerdefinierten Bauteilstatus in TableSettings aufnehmen
* PartCustomStateControllerTest: Attribute für PHPUnit-Gruppen umgestellt
* PartCustomState: Mapping für Parameter korrigieren
* PartCustomState: Darstellung und Zuordnung von Anhängen ergänzt
Die Sidebar wurde um die Anzeige des benutzerdefinierten Bauteilstatus erweitert, inklusive Vorschaubild, sofern vorhanden.
* Migrationen zusammenführen
* PartCustomState: Anpassungen bzgl. Tests
* PartCustomStateEndpoint hinzufügen
* Made custom part states plural for consistency with other entity captions
* Fixed phpunit error
* Fixed phpstan issues
---------
Co-authored-by: Marcel Diegelmann <marcel.diegelmann@gmail.com>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-10-27 21:58:16 +01:00
Jan Böhmer
34d284b1c4
Do not test against real LCSC provider...
2025-09-22 00:05:49 +02:00
Jan Böhmer
ed1e51f694
Merge branch 'feature/batch-info-provider-import'
2025-09-21 23:14:09 +02:00
Jan Böhmer
1d52b7c464
Fixed tests
2025-09-21 21:35:13 +02:00
Jan Böhmer
0d49632b92
Refactored constraints, to reuse existing mechanisms
2025-09-21 20:45:18 +02:00
Jan Böhmer
710569daaf
Fixed phpunit tests
2025-09-21 19:03:29 +02:00
Jan Böhmer
92cd645945
Renamed dto to make their relation to batch searches more clear
2025-09-21 17:49:00 +02:00
barisgit
2c195d9767
Refactor bulk info provider: replace complex arrays with DTOs
...
- Add BulkSearchResponseDTO, FieldMappingDTO for type safety
- Use composition instead of inheritance in BulkSearchResultDTO
- Remove unnecessary BulkSearchRequestDTO
- Fix N+1 queries and API error handling
- Fix Add Mapping button functionality
2025-09-19 16:28:40 +02:00
Jan Böhmer
b4b758c356
Fixed tests
2025-09-14 23:14:00 +02:00
Jan Böhmer
41a7238ab7
Pass parts object directly to BulkSearchRequestDTO and added some syntax hints
2025-09-14 22:56:12 +02:00
barisgit
c7102bcd8c
Update bulk info provider test to work with new services approach
2025-09-09 20:54:27 +02:00
Jan Böhmer
88fbc46325
Added test for Currency Admin Controller
2025-09-05 23:25:20 +02:00
barisgit
71be75b3e7
Improve test coverage
2025-08-31 22:18:25 +02:00
barisgit
cc9d50a8fe
Add makefile to help with development setup, change part_ids in bulk import jobs to junction table and implement filtering based on bulk import jobs status and its associated parts' statuses.
2025-08-31 22:17:05 +02:00
barisgit
9b4d5e9c27
Improve test coverage
2025-08-31 22:16:28 +02:00
barisgit
ccb837e4b4
Fix migration error and dto error
2025-08-31 22:16:28 +02:00
barisgit
2bc39e7791
Add tests and fix static errors
2025-08-31 22:16:27 +02:00
Jan Böhmer
e2735823a0
Fixed tests for new PHPunit 11.5
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
2025-07-14 21:57:27 +02:00
Jan Böhmer
dc480f755c
Migrated phpunit annotations to attributes
2025-07-14 00:32:06 +02:00
Jan Böhmer
24137b30a5
Added tests for RedirectController that simulates the situation of a reverse proxy and subdirectory
2025-01-07 15:52:28 +01:00
Jan Böhmer
d898ca736c
Applied rector to remaining test files
2024-06-22 00:37:47 +02:00
Jan Böhmer
9994dbd9db
Added tests to test the KICad API endpoints
2023-12-03 00:43:34 +01:00
Jan Böhmer
0af5a58dbe
Renamed Storelocation entity to StorageLocation
2023-09-04 22:57:40 +02:00
Jan Böhmer
2b793bf242
Fixed tests
2023-07-02 17:46:09 +02:00
Jan Böhmer
49ae906029
Allow to directly specify the scanned string via an input query parameter
2023-07-02 14:16:32 +02:00
Jan Böhmer
5629215ce4
Use imports instead of FQNs
2023-06-11 15:00:28 +02:00
Jan Böhmer
98dc553938
Applied rector to test files
2023-06-11 14:18:53 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
29d1d49aca
Fixed some more inspection issues
2023-04-15 22:05:29 +02:00
Jan Böhmer
8351f38ee7
Keep query parameters when adding locale part in RedirectController
...
This fixes issue #268
2023-04-15 00:38:11 +02:00
Jan Böhmer
d34dbbbb38
Improved tests for project system
2023-01-08 23:22:53 +01:00
Jan Böhmer
0c7ec9f0c7
Added some basic DB fields for the new project system
2022-12-18 20:34:25 +01:00
Jan Böhmer
8ae4e9fe05
Fixed some inspection issues
2022-12-18 19:45:04 +01:00
Jan Böhmer
4b76d991dd
Removed old GPLv2 copyright headers in tests
2022-11-29 22:37:33 +01:00
Jan Böhmer
498cc07583
Added copyright/license info to files
2022-11-29 21:21:26 +01:00
Jan Böhmer
e01b06fb85
Fixed some inspection issues.
2020-08-21 22:43:37 +02:00
Jan Böhmer
d0b1024d80
Fixed code style.
2020-08-21 21:36:22 +02:00
Jan Böhmer
f5d685dfd4
Fixed coding style.
2020-05-10 21:39:31 +02:00
Jan Böhmer
7e656be246
Added some tests to check if LabelSystem and scanner pages are available.
2020-05-10 13:28:01 +02:00
Jan Böhmer
eb9b24d5d7
Fixed inspection issues.
2020-03-29 22:47:25 +02:00
Jan Böhmer
0fe83c7b3a
Removed unused variables.
2020-03-29 22:37:27 +02:00