Franz Liedke
5b3acfc0d9
Convert another test
...
Test the request, not a controller (implementation detail). This also
focuses on the observable behavior instead of hacking our way into the
middleware pipeline in order to observe internal behavior.
The authenticated user is now determined by looking at the API response
to compare permissions and (non-)existing JSON keys.
2020-02-04 22:59:06 +01:00
David Sevilla Martín
7adfb5bd7e
Initial template for Stale bot configuration ( #1841 )
2020-02-04 22:59:06 +01:00
Julian Berger
6b916065e9
Get translations from fallback catalogues ( #1961 )
2020-02-04 22:59:06 +01:00
Franz Liedke
f99f48b155
Add backwards compatibility layer for mail drivers
...
Support the old format (a simple list of available fields), in addition
to the new format (a map from field names to their types + metadata).
This will be removed after beta.12 is released.
2020-02-04 22:59:06 +01:00
Franz Liedke
d2c345c834
Document changes in mail driver interface
2020-02-04 22:59:06 +01:00
flarum-bot
966a093911
Bundled output for commit 4c89e2eb772779b7a1d499caa789a59515a23701 [skip ci]
2020-02-04 22:59:06 +01:00
Vladimir Vinogradov
0560238945
Add Mailgun region setting
...
Fixes #1834 .
2020-02-04 22:59:05 +01:00
Franz Liedke
63801484fa
Ensure page parameters are always integers
2020-02-04 22:59:05 +01:00
Matt Kilgore
f8d92edc9a
Change Zend namespace to Laminas ( #1963 )
...
Also ensure backwards compatibility for extensions that use the Zend framework but don't explicitly require it.
2020-02-04 22:59:05 +01:00
Daniël Klabbers
e1dbfa7d68
Update LICENSE
2020-02-04 22:59:05 +01:00
Matt Kilgore
ef7623e4ff
Middleware extender ( #1952 )
2020-02-04 22:59:05 +01:00
flarum-bot
d7fd076220
Bundled output for commit c1878fe29b6d78a79da210d98569dca979c1dcc8 [skip ci]
2020-02-04 22:59:05 +01:00
Franz Liedke
30a2421749
Update Webpack
2020-02-04 22:59:05 +01:00
Franz Liedke
1bf6e79b32
Catch more exceptions during boot process
...
This extends our boot exception handling block to also catch and format
all exceptions that could be thrown while building our request handler,
i.e. the middleware stack handling requests.
The only exceptions that would now not be handled in this way could be
raised by Zend's `RequestHandlerRunner` and its delegates, which we
should be able to rely on.
Exceptions on request execution will be handled by the error handler in
the middleware stack.
Fixes #1607 .
2020-02-04 22:59:05 +01:00
w-4
8aaa39bd4e
Fix update page with custom base path ( #1947 )
...
Calling UpdateHandler causes RouteNotFoundException when basepath is not /.
2020-02-04 22:59:05 +01:00
Franz Liedke
b1e11830d1
Link to security policy from README
2020-02-04 22:59:05 +01:00
Franz Liedke
3375f283eb
FUNDING.yml does not inherit
2020-02-04 22:59:05 +01:00
Franz Liedke
df4c193ab7
Add a custom FUNDING.yml file for this repository
...
Let's hope GitHub inherits the lines from our default community health
files at https://github.com/flarum/.github .
2020-02-04 22:59:05 +01:00
Daniël Klabbers
5a8326f442
Update CHANGELOG.md
2020-02-04 22:59:05 +01:00
Daniel Klabbers
d8dd870efe
releasing beta 11.1
2020-02-04 22:59:05 +01:00
Franz Liedke
60572b93fb
Fix implementations of settings repo interface
2020-02-04 22:59:05 +01:00
Daniel Klabbers
810bfdc28f
Revert "7.4 release, forcing tests to work with them"
...
This reverts commit da5628d1254a27e92b60773aa9e78dbf43ed6b0b.
2020-02-04 22:59:05 +01:00
Daniel Klabbers
9c4a24b258
7.4 release, forcing tests to work with them
2020-02-04 22:59:05 +01:00
David Sevilla Martín
18462c079f
Update Application version string to beta 11
2020-02-04 22:59:05 +01:00
Franz Liedke
10d6e653cb
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-02-04 22:59:05 +01:00
Franz Liedke
4e1f753f59
Update copyright claims in LICENSE
2020-02-04 22:59:04 +01:00
Daniel Klabbers
3c2dd23765
preparing the changelog for beta 11, part 2
2020-02-04 22:59:04 +01:00
Daniel Klabbers
aebc23cba2
preparing the changelog for beta 11
2020-02-04 22:59:04 +01:00
Clark Winkelmann
f6d03771cb
Fix tests to include expectation count and run user saving events
2020-02-04 22:59:04 +01:00
Clark Winkelmann
54be9573ac
Add unit test for AvatarUploader
2020-02-04 22:59:04 +01:00
Clark Winkelmann
bf46ea3840
Fix avatar files not being deleted. Fixes #1918
2020-02-04 22:59:04 +01:00
flarum-bot
bab49650e6
Bundled output for commit 17c86b82bf42605b13a92d17b30a493d3694ddd5 [skip ci]
2020-02-04 22:59:04 +01:00
w-4
a789c6b4e9
history back function fix
...
it shouldn't check for canGoBack again after the array pop()
2020-02-04 22:59:04 +01:00
Daniel Klabbers
3b3459ad3d
incorrect ability used, drop prefix discussion.
2020-02-04 22:59:04 +01:00
Daniel Klabbers
223f4d93d4
test only on the hidePosts policy ability
2020-02-04 22:59:04 +01:00
Daniel Klabbers
5d1fe9b815
resume chain in query builder
2020-02-04 22:59:04 +01:00
Daniël Klabbers
521834f5da
[review] using orWhere to allow any where to follow in extensions
2020-02-04 22:59:04 +01:00
Daniël Klabbers
622e2a6644
fixes #1827
...
- set default statement to block access
- added tests to confirm all scenarios work as intended
2020-02-04 22:59:04 +01:00
Franz Liedke
c5e38a5b1f
Automatically set up Mockery for unit tests
...
- Use provided PhpUnit listener to enforce verification of expectations.
- Include Mockery's trait to auto-close Mockery after each test.
2020-02-04 22:59:04 +01:00
Franz Liedke
9d2595d531
Actually return null
...
Nullable return types require an explicit null return value; not
returning or returning without value is the "void" type.
2020-02-04 22:59:04 +01:00
David Sevilla Martin
3526083320
Add test for discussion posts being deleted on discussion delete from DB
2020-02-04 22:59:04 +01:00
David Sevilla Martin
82562294b7
Fix failing tests
2020-02-04 22:59:04 +01:00
datitisev
51ae92f841
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-02-04 22:59:04 +01:00
David Sevilla Martin
6448babaa5
Remove 'or' from 'orWhereNotExists'
2020-02-04 22:59:04 +01:00
David Sevilla Martin
f7feea496d
Add discussion_id foreign key to posts table
2020-02-04 22:59:04 +01:00
flarum-bot
75e624d7ca
Bundled output for commit 6d2b50722afa37098460ce07d2e477ec1d19ab27 [skip ci]
2020-02-04 22:59:04 +01:00
Clark Winkelmann
5a01b63c99
Pass event to KeyboardNavigatable whenCallback ( #1922 )
...
This way the callback can know which key is pressed.
2020-02-04 22:59:04 +01:00
Daniël Klabbers
cae4a6eb45
Fix the queue:restart command ( #1932 )
...
Adding a proxy callStatic on our simple implementation of the Manager class allows passing through calls like `forever()` to the underlying cache driver instance.
2020-02-04 22:59:04 +01:00
Franz Liedke
36d6d79011
Add a docblock
2020-02-04 22:59:04 +01:00
Daniël Klabbers
22c599b283
only show queue commands if using another driver than sync
2020-02-04 22:59:04 +01:00