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
0cd631774b
Fixed compatibility error with webauthn library which prevented 2FA via webauthn
2024-03-04 21:20:57 +01:00
Jan Böhmer
d49bb1f4b5
Removed unused import statements
2024-03-03 20:34:36 +01:00
Jan Böhmer
42e604245c
Fixed some inspection issues
2024-03-03 19:57:31 +01:00
Jan Böhmer
da0845c11c
Added Timestampable interface to entities that missed it, to fix timetravel in certain cases
2023-11-27 17:53:35 +01:00
Jan Böhmer
717a9fb0a3
Fixed API Platform deprecations
2023-10-25 20:40:41 +02:00
Jan Böhmer
3f36972764
Throw no warning, when unsetting a not existing permission value
2023-10-23 22:15:04 +02:00
Jan Böhmer
3df47ed748
Added filters to various endpoints to allow searching for parts
2023-10-03 16:29:04 +02:00
Jan Böhmer
c7a02ae870
Added tests for token API authentication
2023-10-02 23:36:14 +02:00
Jan Böhmer
42356cc2a3
Show the last 5 characters of the token secrets on the user settings page to make identification of a token easier
2023-10-02 00:45:21 +02:00
Jan Böhmer
b796ae36db
Restrict access to users API endpoint
2023-10-02 00:35:11 +02:00
Jan Böhmer
87e881f8e0
Show attachments and preview image in API response
2023-09-18 23:38:06 +02:00
Jan Böhmer
6387c24c89
Added some documentation to the API
2023-09-18 12:48:16 +02:00
Jan Böhmer
fc6643bd6f
Added system to restrict permissions based on API token level
2023-08-28 21:20:59 +02:00
Jan Böhmer
8fe3f4cf5c
Added permissions to control access to API and manage API tokens
2023-08-26 22:57:50 +02:00
Jan Böhmer
35a0e8464a
Added possibility to list all available API keys at the user settings page
2023-08-19 23:19:21 +02:00
Jan Böhmer
040e86ea6d
Added API endpoint to get info about the API token currently used to authenticate the user
2023-08-17 00:36:25 +02:00
Jan Böhmer
8dad143f8d
Added own APIToken authenticator, so we can wrap the used API token inside the symfony security token
2023-08-17 00:17:02 +02:00
Jan Böhmer
3bc6e61869
Added very basic system to add API tokens to an user
2023-08-15 23:36:56 +02:00
Jan Böhmer
6b5c51bdc5
Improved schema infos of Manufacturer endpoints
2023-08-06 20:50:19 +02:00
Jan Böhmer
676c8eeefb
Added basic API to access and edit manufacturer entities
2023-08-06 20:18:57 +02:00
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
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
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
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
485b35fbd4
Fixed static analysis issues
2023-06-11 23:16:07 +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
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
8c430a3af0
Fixed tests
2023-06-11 13:42:45 +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
Jan Böhmer
c24019fd57
Fixed error preventing the service container from compiling
2023-05-27 20:46:02 +02:00
Jan Böhmer
7baad04e39
Updated dependencies
2023-04-16 23:58:03 +02:00
Jan Böhmer
273293479d
Hopefully fix phpunit issue on github actions
2023-04-16 01:46:44 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
13209c3236
Improved typing of properties
2023-04-15 22:25:03 +02:00
Jan Böhmer
29d1d49aca
Fixed some more inspection issues
2023-04-15 22:05:29 +02:00
Jan Böhmer
de96aae9a5
Fixed inspection issues
2023-04-15 21:49:19 +02:00
Jan Böhmer
5f29ee9052
Fixed some deprecation messages
2023-04-15 21:18:11 +02:00
Jan Böhmer
fc1d2269d0
Fixed error with default values on older MySQL version
...
We have removed the default values for the columns completly, as it were only needed on SQLite when adding the column to existing row.
As this was done in an earlier migration, we can now safely remove it.
The MySQL now correctly detects no more changes. SQLite however still generates some wrong migration changes.
2023-04-09 01:17:48 +02:00