Commit graph

3384 commits

Author SHA1 Message Date
Jan Böhmer
6405dee0ac Made tests compatible with phpunit 8
The new simple-phpunit wrapper is selects the best phpunit version automatically and removes all the void return types if needed.
2019-11-23 19:12:49 +01:00
Jan Böhmer
a62f947b86 Revert "Try to fix some travis issue"
This reverts commit 7d7588fd50.
2019-11-23 18:31:28 +01:00
Jan Böhmer
7d7588fd50 Try to fix some travis issue 2019-11-23 18:18:30 +01:00
Jan Böhmer
9c22149afd Let doctrine detect its driver and db_version automatically. 2019-11-23 18:01:45 +01:00
Jan Böhmer
1ae905ae78 Use number aware naming strategy for doctrine.
Fixes a deprecation notice.
2019-11-23 17:48:24 +01:00
Jan Böhmer
9b09d88b7b Specify controller path as path relative to src/.
This fixes a deprecation introduced in symfony 4.4.
2019-11-23 17:15:14 +01:00
Jan Böhmer
33d6a25060 Fixed an deprecation message. 2019-11-23 17:00:16 +01:00
Jan Böhmer
fa4f3aadd6 Fixed deprecation related to exception_controller. 2019-11-23 15:14:16 +01:00
Jan Böhmer
937700b06e Marked bin/console und bin/phpunit as executable. 2019-11-23 15:07:55 +01:00
Jan Böhmer
445b6b6a2b Fixed some deprecations related to kernel controller tests. 2019-11-23 15:03:08 +01:00
Jan Böhmer
cd5f099965 Use format_datetime filters from twig core instead of deprecated twig/extensions 2019-11-23 14:48:21 +01:00
Jan Böhmer
26fe946de3 Run some linters on TravisCI to ensure basic integrity of files. 2019-11-21 22:27:17 +01:00
Jan Böhmer
50a173d57c Updated symfony to 4.4 2019-11-21 22:16:30 +01:00
Jan Böhmer
ca33dfc7b7 Updated composer dependencies. 2019-11-21 21:52:41 +01:00
Jan Böhmer
87d6399175 Add Dockerfile. 2019-11-17 19:07:07 +01:00
Jan Böhmer
b48b9b78b4 Fixed exception in ElementPermissionListener. 2019-11-16 21:40:23 +01:00
Jan Böhmer
ffdeacc2ca Revert "Cache ColumnSecurity annotation on ElementPermission Listener to improve performance."
This reverts commit 0d215e7e2f.
2019-11-16 21:39:28 +01:00
Jan Böhmer
5b3533fd3e Added missing translation key in attachment table. 2019-11-16 21:37:59 +01:00
Jan Böhmer
0d215e7e2f Cache ColumnSecurity annotation on ElementPermission Listener to improve performance. 2019-11-16 21:34:21 +01:00
Jan Böhmer
977fa1df7a Cache edit/read permission on ElementPermissionListener
The many calls to voters degraded performance a lot, when querying many entities during things like part tables.
2019-11-16 21:03:59 +01:00
Jan Böhmer
3bc5005826 Use generic file icon for datasheet in parts table if no
This fixes an exception.
2019-11-16 19:31:39 +01:00
Jan Böhmer
988c53bead Fetch the manyTo* entity collections of parts with other part columns
This reduces the query count and should improve performance especially for big tables.
2019-11-16 19:23:45 +01:00
Jan Böhmer
01b790a8d0 Updated symfony to 4.3.8, which fixes some security bugs. 2019-11-16 17:59:32 +01:00
Jan Böhmer
2e3c1d6c0a Fetch preview attachment directly in table query.
This reduces the query count and therfore improves performance.
2019-11-15 19:13:53 +01:00
Jan Böhmer
b0fd346369 Use the right permission for minamount part field. 2019-11-15 19:02:11 +01:00
Jan Böhmer
d0f2667691 Only fetch database user from database once.
This should improve the performance a lot.
2019-11-15 18:58:58 +01:00
Jan Böhmer
3812cc88ff Check if an attachment is valid before showing it in part table. 2019-11-10 20:21:13 +01:00
Jan Böhmer
338b2bb7fe Include stacktraces in demo logs. 2019-11-10 20:14:06 +01:00
Jan Böhmer
ae753c8cca Include stacktraces in demo logs. 2019-11-10 20:09:33 +01:00
Jan Böhmer
09995330af Fixed an exception on part tables, when an attachment is external. 2019-11-10 19:58:35 +01:00
Jan Böhmer
2f1ff14a54 Added some margin between tags in tags input: 2019-11-10 19:51:32 +01:00
Jan Böhmer
c08780e1c3 Updated translations. 2019-11-10 19:48:59 +01:00
Jan Böhmer
af214831da Enabled markdown in description field. 2019-11-10 19:43:55 +01:00
Jan Böhmer
f5c2a7b728 Make tags in part table more pretty. Also added link to tags search. 2019-11-10 19:38:36 +01:00
Jan Böhmer
05d6b0aa93 Show (iconized) links to attachments on parts table. 2019-11-10 19:16:39 +01:00
Jan Böhmer
3e4f5a1391 Show the proper fa-file-* icon on attachment edit fragment. 2019-11-10 18:23:03 +01:00
Jan Böhmer
8b80f31b1e Moved extension to fa-icon logic to a service.
That way we can use it from inside PHP code and the logic is more testable.
2019-11-10 18:19:06 +01:00
Jan Böhmer
bf8455fa42 Added tests on some security related classes. 2019-11-10 14:49:09 +01:00
Jan Böhmer
6ddc937ec5 Fixed some inspection issues. 2019-11-10 14:00:56 +01:00
Jan Böhmer
3438f15274 Added some more tests. 2019-11-09 16:14:57 +01:00
Jan Böhmer
24e4a554f8 Really fixed .scrutinizer.yml 2019-11-09 14:35:54 +01:00
Jan Böhmer
d286b7499c Fixed .scrutinizer.yml 2019-11-09 13:32:59 +01:00
Jan Böhmer
42d39f05c3 Exclude some files from scrutinizer analysis. 2019-11-09 13:21:57 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
89258bc102 Added some tests for important entity methods. 2019-11-09 00:31:42 +01:00
Jan Böhmer
0663a00df8 Fixed deprecation warning from DotEnv component. 2019-11-08 22:37:16 +01:00
Jan Böhmer
a0c3410db6 Centralized setElement logic for *Attachment entities. 2019-11-08 22:05:12 +01:00
Jan Böhmer
e66fcc85fc Use plaintext password encoding in test environment.
That speeds up tests alot.
2019-11-08 21:15:21 +01:00
Jan Böhmer
56dbc96607 Updated composer dependencies. 2019-11-08 20:25:47 +01:00
Jan Böhmer
74fb21686c Fixed an potential exception on user info page, when user has no email set. 2019-11-05 17:09:01 +01:00