Daniel Klabbers
51790494ce
fixes the parent include for tags when visiting index from any other page
2021-06-11 00:18:17 +02:00
Daniel Klabbers
9627e40e72
changelog for 1.0.2
2021-06-07 12:11:11 +02:00
flarum-bot
7df97be80a
Bundled output for commit a0f4dcc62a
...
Includes transpiled JS/TS.
[skip ci]
2021-06-07 10:09:41 +00:00
SychO9
a0f4dcc62a
Fix wrong subtags listing in sidebar
2021-06-07 12:08:40 +02:00
Daniel Klabbers
09e031ae23
changelog for v1.0.1
2021-06-02 08:56:52 +02:00
flarum-bot
a08b3d18e6
Bundled output for commit 3fb216b99e
...
Includes transpiled JS/TS.
[skip ci]
2021-06-02 06:54:57 +00:00
SychO9
3fb216b99e
Load all tags in permission grid
2021-06-02 08:53:59 +02:00
Daniel Klabbers
af7390eb4c
fixes flarum/core#2889 locale uses count instead of generated tags
2021-05-27 09:12:44 +02:00
Daniel Klabbers
e982e0206d
fix branch alias
2021-05-25 22:53:19 +02:00
Daniel Klabbers
df02f22594
changes for stable
2021-05-25 17:10:18 +02:00
Sami Mazouz
a6695e10cd
Check that included
array exists ( #132 )
2021-05-17 16:16:00 -04:00
flarum-bot
95fc846c04
Bundled output for commit 29525daa9b
...
Includes transpiled JS/TS.
[skip ci]
2021-05-17 04:21:14 +00:00
Alexander Skvortsov
29525daa9b
Fix logic for TagListState
...
This should load in the requested includes, not just parent and lastPostedDiscussion
2021-05-17 00:20:09 -04:00
Alexander Skvortsov
8468a05b87
Unset tags relation after setting ( #131 )
...
This ensures that the proper tag values are returned to the API by clearing any cached tags before returning a response. It also makes sure that the listeners to the `DiscussionWasTagged` event won't have old data under `$event->discussion->tags`.
Fixes https://github.com/flarum/core/issues/2514
2021-05-16 23:28:54 -04:00
SychO9
3635dbad19
Fix $tag
object getting overriden by last array item
2021-05-16 23:53:34 +01:00
Alexander Skvortsov
bcb5577de5
Bump composer reqs for 1.0.0
2021-05-16 18:29:46 -04:00
SychO9
88f44ca0d0
Use core dev-master for tests
2021-05-15 22:54:01 +01:00
David Wheatley
e15aaf428c
Update copyright year
2021-05-15 00:58:11 +01:00
flarum-bot
91891da48b
Bundled output for commit 0ec87f5b43
...
Includes transpiled JS/TS.
[skip ci]
2021-05-13 00:03:13 +00:00
Alexander Skvortsov
0ec87f5b43
Apply fixes from StyleCI
2021-05-13 00:02:06 +00:00
Alexander Skvortsov
f9e8c51e76
Don't add filter q if not defined
...
Otherwise, the backend controller will think we are searching, not filtering, and fail to apply filters.
2021-05-12 20:01:04 -04:00
Alexander Skvortsov
494633537e
Update for API Client changes
2021-05-12 19:58:49 -04:00
Alexander Skvortsov
706a07429d
Use RequestUtil to access actor
2021-05-12 19:48:17 -04:00
Alexander Skvortsov
d69b3fbb12
Update for ICU MessageFormat
2021-05-12 19:36:41 -04:00
Alexander Skvortsov
b6113169f8
Use new permissions
2021-05-12 18:52:19 -04:00
Alexander Skvortsov
0d5510154e
Apply fixes from StyleCI
2021-05-12 00:10:22 +00:00
Alexander Skvortsov
bf5a401787
Remove flags visibility scoping
...
This was moved to flags in 9fe9dd515b
2021-05-11 20:10:10 -04:00
Sami Mazouz
fffedb4e1d
Only check for bypassTagCounts permission for startDiscussion ability ( #130 )
...
This doesn't fix anything, but we should explicitly only check the
permission for the ability it is meant for, just to be safe in the
future.
Also add more tests.
2021-05-11 16:35:10 -04:00
flarum-bot
a0f9416f90
Bundled output for commit 99009e5d3b
[skip ci]
2021-05-11 20:06:14 +00:00
Alexander Skvortsov
99009e5d3b
Permission Tag Scoping Field ( #127 )
...
This allows tag scoping permissions that don't start with `discussion`, or on the contrary, removing tag scoping from permissions that DO start with `discussion`.
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-05-11 16:05:11 -04:00
Alexander Skvortsov
dfbb468744
Refactor queryIdsWhereCan ( #128 )
...
- Rename to queryIdsWhereHasPermission, since that's more accurate
- Make the base query an optional 3rd argument. This feels more intuitive
- Add a `can` function in AbstractPolicy, so extensions that add tag scopable permissions don't need to define their own policies (e.g. with approval)
- Combine ScopeDiscussionVisibilityWithAbility and ScopeDiscussionVisibility
- Fix ScopeDiscussionVisibility only requiring in one tag, not all.
- Add lots and lots of tests
Co-authored-by: SychO9 <sychocouldy@gmail.com>
2021-05-11 02:34:30 -04:00
flarum-bot
382729dd46
Bundled output for commit cc7e805a4b
[skip ci]
2021-05-10 18:22:48 +00:00
Alexander Skvortsov
cc7e805a4b
Restore searching in tags when on tag page ( #129 )
2021-05-10 14:21:43 -04:00
flarum-bot
42a1c97371
Bundled output for commit a1edbdc9b0
[skip ci]
2021-05-04 17:58:54 +00:00
Daniël Klabbers
a1edbdc9b0
Initial tag load performance improvement ( #87 )
...
- Only load lastPostedDiscussion on TagsPage
- For forum payload, only load top-level primary tags and top 3 secondary tags.
- In other cases, load tags in dynamically when needed.
Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-05-04 13:57:55 -04:00
Alexander Skvortsov
712286151f
Optimize tag permissions ( #126 )
...
The new implementation generates a subquery of IDs instead of sending big arrays of data to/from the database. This massively speeds up performance.
2021-05-04 12:53:20 -04:00
Alexander Skvortsov
5235dda1e4
Use RequestUtil to access actor
2021-04-08 00:07:14 -04:00
Sami Mazouz
a1ba21ec69
Eager load tags relation in discussion, posts and flags listing endpoints ( #125 )
...
* Eager load tags relation when listing posts & discussions
* Eager load ListFlags post.discussion.tags relation
2021-03-25 15:37:14 +01:00
Ian Morland
1b339267f8
Canonical URL: Use UrlGenerator in place of extracting the url from request ( #122 )
2021-03-15 21:44:22 -04:00
Daniel Klabbers
4ff74d3289
Release v0.1.0-beta.16
2021-03-15 13:03:08 +01:00
Alexander Skvortsov
6c25f09c9b
Use non-deprecated translator interface
2021-03-13 17:11:42 -05:00
flarum-bot
208aa47e60
Bundled output for commit 932c31db6d
[skip ci]
2021-03-13 22:01:34 +00:00
Alexander Skvortsov
932c31db6d
Apply fixes from StyleCI
2021-03-13 22:00:39 +00:00
Alexander Skvortsov
ee48c97a23
Tags admin list: move edit button back to where it should be
2021-03-13 17:00:27 -05:00
Alexander Skvortsov
85de81627d
Update for beta 16
2021-03-13 16:54:03 -05:00
Alexander Skvortsov
80efe35b16
Add defaults to params that should have it.
...
This fixes PHP8 warnings about required parameters following optional ones.
2021-03-08 15:51:56 -05:00
Charlie
7c1a96119c
Change category ( #118 )
2021-03-08 14:20:41 -05:00
Sami Mazouz
b78b097724
Eagerload lastPostedDiscussion needed relationships ( #120 )
2021-03-06 10:37:26 -05:00
Daniël Klabbers
162167fe23
made compatible with illuminate 8 and beta 16 ( #121 )
2021-03-05 09:44:20 -05:00
flarum-bot
6dc433470f
Bundled output for commit 181229ae93
[skip ci]
2021-03-05 03:16:09 +00:00