Commit graph

3810 commits

Author SHA1 Message Date
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
Jan Böhmer
a516879258 Fixed an exception in getmaxDiscountAmount().
This should fixes an 500 error code, that showed up on some pages. Also added a test method to test this function.
2019-11-05 17:05:04 +01:00
Jan Böhmer
da6b74dfdd Added translation for old password field in user settings. 2019-11-02 21:23:29 +01:00
Jan Böhmer
d4353118d9 Cache the tools tree for each locale separately.
This fixes the problem that tools tree contained links to the wrong language.
2019-11-02 21:18:46 +01:00
Jan Böhmer
6071b35644 Added missing translations. 2019-11-02 15:55:21 +01:00
Jan Böhmer
9b481323aa Added rel=noopener to target=_blank links to prevent window.opener spoof. 2019-11-01 23:49:46 +01:00
Jan Böhmer
7a5a2f65f9 Added autocomplete for part tags input. 2019-11-01 23:07:31 +01:00
Jan Böhmer
bddd5b758a Use image/* mime type placeholder as filter for footprints attachment type. 2019-11-01 22:07:55 +01:00
Jan Böhmer
767ee59fb8 Apply the filetype filter to accept attribute of file input.
This way only files are shown which match the current attachment type and the user knows directly which file types are allowed or not.
2019-11-01 22:04:30 +01:00
Jan Böhmer
7a9c528d6d Upgraded yarn dependencies. 2019-11-01 14:02:58 +01:00
Jan Böhmer
719611b6d6 Updated composer dependencies.
Bumped Symfony to 4.3.6
2019-11-01 13:58:02 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
099234dd29
Added GitHub sponsor to funding list. 2019-11-01 12:48:25 +01:00
Jan Böhmer
96f12a3c4f Build yarn assets when testing on travis. 2019-10-31 23:14:02 +01:00
Jan Böhmer
93716c8583 Dont let Webclient catch exceptions during testing of the admin pages. 2019-10-31 23:05:20 +01:00
Jan Böhmer
fdfb099cb5 Allow to restrict the file extensions for a attachment type. 2019-10-31 22:37:54 +01:00
Jan Böhmer
2187f5eac2 Allow to disable a user in admin settings.
When a user is disabled, he can not login.
2019-10-26 23:22:27 +02:00
Jan Böhmer
dd1dc54d97 Test the admin pages, if read/list/delete is working. 2019-10-26 22:27:04 +02:00
Jan Böhmer
7e8752d1a2 Added coverage badge to Github README page. 2019-10-20 20:05:11 +02:00
Jan Böhmer
1c4c4622cf Upload test coverage information to codecov. 2019-10-20 19:56:49 +02:00
Jan Böhmer
b7124d53b2 Dont test with PHP 8.0, PHPunit does not support this version and test timeouts. 2019-10-20 19:36:39 +02:00
Jan Böhmer
c61269db19 Disable foreign key checks for loading fixtures. 2019-10-20 19:28:48 +02:00
Jan Böhmer
1e74f205e9 Truncate groups and user table manually for travis. 2019-10-20 15:50:57 +02:00
Jan Böhmer
e6f003b3b2 Set APP_ENV env the right way. 2019-10-20 15:33:43 +02:00
Jan Böhmer
2f9dfdedc0 Split long command into different commands. 2019-10-20 15:31:16 +02:00