Jan Böhmer
1fb334b0ca
Show a notification on homepage and server info page if there is a new version available.
2023-08-04 23:49:26 +02:00
Jan Böhmer
c981476706
Use proper way of overriding doctrine attributes
...
In older versions doctrine allowed overriding attributes, by simply redifining them in subclasses. In 2.16 this throws an exception. We now use the proper way using the AttributeOverrides attribute
2023-08-01 15:55:21 +02:00
Jan Böhmer
0f336b6f89
Allow for longer manufacturer and supplier URLs
2023-07-31 00:00:57 +02:00
Jan Böhmer
6a00b8e168
Added possibility to manage client_credentials OAuth tokens
2023-07-30 15:24:46 +02:00
Jan Böhmer
15ba6572df
Try to detect if an external attachment is an image or not.
...
Before we assumed that it is a picture in all cases.
2023-07-29 18:50:18 +02:00
Jan Böhmer
d59b8817c3
Do not use fetch join, as even with the N+1 problem the queries are faster than with the very complex and slow expressions needed for the fetch Join pagination
2023-07-22 23:51:06 +02:00
Jan Böhmer
8ce5f4a796
Do not cache entities directly in NodesListBuilder but cache only the IDs instead
...
Otherwise the doctrine proxies break, and we get issues with loading the preview_images in structural Elements.
2023-07-20 23:20:46 +02:00
Jan Böhmer
2e8cb35acc
Use ManyToOne instead of OneToOne for master_picture_attachment like before
2023-07-20 21:54:13 +02:00
Jan Böhmer
2ddfe48aba
Do the doctrine definitions of the master preview attachment in the sub classes
...
This makes lazy fetching works and saves some db queries.
2023-07-19 22:49:40 +02:00
Jan Böhmer
87cf4c2d08
Do a extra lazy fetch on webauthn and u2f keys property of a user
...
In the most cases we just need the count of them and not the exact details. This just gives as a bit better performance on most requests
2023-07-19 00:20:38 +02:00
Jan Böhmer
3a8c5a788f
Fixed phpstan issues
2023-07-17 00:43:35 +02:00
Jan Böhmer
d10d29e590
Do not enable the create part from provider permission automatically
...
This allows users to create new datastructures, which is maybe not wanted. Besides it has to be configured first.
2023-07-17 00:20:38 +02:00
Jan Böhmer
f423fdf7f8
Fixed bug in DB schema, which prevented the creation of parts without info provider reference
2023-07-16 23:48:55 +02:00
Jan Böhmer
b74ab18a6d
Added possibility to define alternative names on data structures
...
This can be used to find elements, based on the data returned by info providers
2023-07-16 22:59:46 +02:00
Jan Böhmer
edc54aaf91
Added migrations for sqlite and new additional_names field
2023-07-16 20:47:25 +02:00
Jan Böhmer
b3b205cd6e
Added permissions to control access to info providers and oauth tokens
2023-07-16 20:33:24 +02:00
Jan Böhmer
c203de082e
Added proper OAuth authentication for digikey and other providers
2023-07-16 03:07:53 +02:00
Jan Böhmer
a95ba1acc4
Add a reference to the used info provider to a part
2023-07-16 01:24:49 +02:00
Jan Böhmer
0cb46039dd
Allow to retrieve price and shopping informations from info providers
2023-07-14 00:09:22 +02:00
Jan Böhmer
9e3cb4d694
Use enum for manufacturing status
2023-07-08 23:49:47 +02:00
Jan Böhmer
8a4ede9d43
Write to event log, when a user gets impersonated
2023-07-08 23:07:06 +02:00
Jan Böhmer
e7a1b33ae6
Allow to set the exchange rate of a currency to null (not existing) after it was set once
2023-07-03 22:15:58 +02:00
Jan Böhmer
2d5f23271f
Force that an currency has an iso currency code
...
Otherwise it will crash a lot of formatter code (and a currency which is not existing is not really useful)
2023-07-03 22:11:12 +02:00
Jan Böhmer
e72b120c12
Use new UniqueObjectCollection constraint to ensure that BOM entries does not contain duplicate items
2023-07-02 20:49:10 +02:00
Jan Böhmer
8a20584e27
Use enum for undo mode
2023-06-18 21:26:28 +02:00
Jan Böhmer
7d99607919
Use an enum for the part stock change type
2023-06-18 20:42:05 +02:00
Jan Böhmer
9adfcc7aec
Use an enum for target_type in log entries
2023-06-18 18:31:39 +02:00
Jan Böhmer
2da7463edf
Use a enum for level in LogEntries
2023-06-18 17:25:55 +02:00
Jan Böhmer
cbdf0a9392
Fixed some errors introduced by earlier typings
2023-06-18 16:01:28 +02:00
Jan Böhmer
b7c8ca2a48
Improved typing and phpdoc type annotations
2023-06-18 15:37:42 +02:00
Jan Böhmer
e8771ea118
Fixed some more phpstan issues
2023-06-18 00:00:58 +02:00
Jan Böhmer
78b0e1bf7e
Fixed errors when setting setParent on a proxied AbstractStructuralDBElement
2023-06-13 21:00:25 +02:00
Jan Böhmer
19530a9102
Fixed some PHPStan level 5 issues
2023-06-13 20:24:54 +02:00
Jan Böhmer
fc3290271c
Started to increase the phpstan level
2023-06-13 10:36:34 +02:00
Jan Böhmer
71cd4057a7
Use enums for LabelOptions
2023-06-12 23:39:30 +02:00
Jan Böhmer
485b35fbd4
Fixed static analysis issues
2023-06-11 23:16:07 +02:00
Jan Böhmer
3d7cf8f7f3
Removed remaining annotations
2023-06-11 19:42:02 +02:00
Jan Böhmer
930adaf439
Moved custom validators from annotations to attributes
2023-06-11 19:32:15 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00
Jan Böhmer
219b57a362
Fixed some deprecations
2023-06-11 17:38:08 +02:00
Jan Böhmer
684334ba22
Improved code style of tests
2023-06-11 15:02:59 +02:00
Jan Böhmer
5629215ce4
Use imports instead of FQNs
2023-06-11 15:00:28 +02:00
Jan Böhmer
7ee01d9a05
Applied rector with PHP8.1 migration rules
2023-06-11 14:17:19 +02:00
Jan Böhmer
dc6a67c2f0
Made the ALLOWED_ELEMENT_CLASS protected so we can apply rector
...
Its bad style to override a public const in a child class
2023-06-11 14:02:59 +02:00
Jan Böhmer
8c430a3af0
Fixed tests
2023-06-11 13:42:45 +02:00
Jan Böhmer
7191ece7a5
Configure doctrine to use attributes instead of annotations
2023-05-28 01:55:30 +02:00
Jan Böhmer
0837f84a43
Migrated doctrine annotations to attributes
2023-05-28 01:51:13 +02:00
Jan Böhmer
0bc4699cdc
Started to move doctrine annotations to attributes (rector automated)
2023-05-28 01:33:45 +02:00
Jan Böhmer
a43af180a7
Applied rector rules up to symfony 6.2
2023-05-28 01:21:05 +02:00
Jan Böhmer
1dbf36b86b
Use str_contains and similar instead of strpos
2023-05-27 23:58:28 +02:00