janzenisaac
28fbcac11e
FIX: Update Re-assign view permissions ( #241 )
...
Only show mobile re-assign options if user has permission to assign
Fixes: https://meta.discourse.org/t/discourse-assign/58044/155?u=isaacjanzen
2021-11-15 09:58:48 -06:00
Jarek Radosz
ab0c63b1fb
DEV: Fix a computed property override ( #239 )
2021-11-15 00:41:30 +01:00
Jarek Radosz
5fc1dee14d
DEV: `mobile-nav` no longer uses `currentPath` arg ( #238 )
2021-11-15 00:40:19 +01:00
janzenisaac
ec9405df5c
FIX: Return proper aria-labels ( #237 )
...
- Add proper aria label to dropdown
- Make sure footer button aria-labels are returned
fixes : https://dev.discourse.org/t/quicker-assign-to-self-when-group-is-assigned/54647/24?u=isaacjanzen
2021-11-13 14:58:35 -06:00
janzenisaac
98103586b2
FEATURE: Reassign workflow ( #231 )
...
Build a new workflow that adds a dropdown in place of the old assign button with the ability to
Re-assign a new user / group to an assigned topic
Re-assign yourself to an assigned topic
Unassign a user / group from an assigned topic
2021-11-12 10:09:47 -06:00
Martin Brennan
0e4649d507
DEV: Update code for eslint object-shorthand-rule ( #236 )
...
See 4f7aba06c0
2021-11-10 12:04:26 +11:00
Discourse Translator Bot
3a8e45700c
Update translations ( #235 )
2021-11-09 14:54:14 +01:00
Krzysztof Kotlarek
69dac06a82
FIX: correctly update UI when post is assigned/unassigned ( #233 )
...
Update topic title, first post and related post
2021-11-09 08:40:43 +11:00
Krzysztof Kotlarek
2d1f5668a5
FIX: rename action_code_href to action_code_path ( #234 )
...
We should use relative paths, therefore name change is necessary to avoid confusions. Post migration is added to fix existing data.
2021-11-08 14:32:21 +11:00
Krzysztof Kotlarek
22025b35b8
FEATURE: small post action with link to post ( #232 )
...
When a post is assigned/unassigned, we want small action to have a link to the specific post.
2021-11-08 08:25:13 +11:00
Krzysztof Kotlarek
a876821ab1
FIX: missing assignee icon in search ( #230 )
...
Change serializer to include icon path
2021-11-04 08:32:25 +11:00
Krzysztof Kotlarek
fcd4532c76
FIX: move post assignment when move post ( #229 )
...
When an assigned post is moved to the new topic, it becomes topic assignment.
When an assigned post is moved to an existing topic it stays post assignment
2021-11-04 08:22:53 +11:00
Krzysztof Kotlarek
a4b1847eff
FEATURE: display indirect assignments in the first post ( #227 )
...
A link in the first post will allow going to a specific post assigned to a user or group.
2021-11-03 10:35:10 +11:00
Discourse Translator Bot
5447a72fd8
Update translations ( #228 )
2021-11-02 18:48:28 +01:00
Osama Sayegh
0cda263a71
FIX: Pin plugin version when running discourse <= 2.8.0.beta1 ( #226 )
...
c396605d2f
introduces a call to the `TopicView.on_preload` method which was added in discourse 2.8.0.beta2.
This commit pins the plugin to the commit before the one linked above for Discourse instances running version 2.8.0.beta1 or older
2021-11-01 13:39:42 +03:00
Krzysztof Kotlarek
c396605d2f
FEATURE: assign to post ( #224 )
...
Ability to assign an individual post to a user or group
2021-11-01 09:27:13 +11:00
Discourse Translator Bot
54c670536c
Update translations ( #225 )
2021-10-28 11:24:51 +02:00
Discourse Translator Bot
09129d6529
Update translations ( #223 )
2021-10-27 14:24:31 +02:00
Krzysztof Kotlarek
95cd224898
FIX: deprecate TopicAssigner ( #221 )
...
Delegate to assigner and add deprecation note
2021-10-27 15:42:51 +11:00
Joffrey JAFFEUX
7747bb81a0
FIX: more accurate and flexible random assign automation ( #222 )
...
- allows to define the number of days within which a user is considered recently assigned
- more correct by now using post custom fields
2021-10-19 17:31:17 +02:00
Krzysztof Kotlarek
dc8f43fbb1
FEATURE: Assignment target is polymorphic ( #218 )
...
Change `topic_id` to polymorphic approach (In the next step we will allow assigning to individual post)
`topic_id` column is still used for efficient display of assigned users on topic list (to avoid scanning posts)
2021-10-14 09:22:29 +11:00
Bianca Nenciu
247c74ecfd
DEV: Add test when user is suspended ( #219 )
2021-10-12 10:44:59 +03:00
Jarek Radosz
58315230f0
UX: Remove an obsolete css class from an element ( #220 )
...
1. It's not needed in the new advanced search interface
2. It causes problems in some cases
2021-10-12 17:22:02 +11:00
Krzysztof Kotlarek
5124ba0f67
FIX: assignment table migration when SKIP_POST_DEPLOYMENT_MIGRATIONS ( #217 )
...
We need two branches of that migration. One when `assigned_to_type` is missing and another when `assigned_to_type` exists.
https://meta.discourse.org/t/db-migration-version-20210714173022-fails-when-having-skipped-post-deployment-migrations-before/204660
2021-09-29 18:33:45 +10:00
Krzysztof Kotlarek
3a58df219c
FIX: n+1 query on list of private messages assigned ( #216 )
...
When getting a list of private messages assigned to groups/users, we should include :allowed_users to avoid n+1
2021-09-29 09:01:15 +08:00
Penar Musaraj
dd37f66f5d
DEV: Fix dev plugin reloading issue ( #215 )
2021-09-23 12:56:35 -04:00
Penar Musaraj
dd2eae8f9c
DEV: Update bulk select in group topics list ( #214 )
2021-09-23 10:50:36 -04:00
Penar Musaraj
74b9f3d22c
UX: Fix input styling in group assignments page ( #213 )
2021-09-21 14:25:01 -04:00
discoursebot
ac0f8a6ee3
DEV: Update CI workflows ( #210 )
...
* DEV: Update CI workflows
* DEV: Fix prettier errors in tests
Co-authored-by: CvX <CvX@users.noreply.github.com>
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2021-09-20 15:52:26 +02:00
Bianca Nenciu
85fa1f90aa
FIX: Refresh first post after assign and unassign ( #212 )
...
The first post showed the assign status when it was loaded and did not
update if it changed. The page had to be refreshed for the text to be
updated.
2021-09-17 10:37:36 +10:00
Robin Ward
7082e32122
FIX: Tests were broken on Ember CLI ( #211 )
...
The first issue is using `updateCurrentUser` when code was conditional
in an initializer. Instead we need to use `needs.user()`.
The second issue was trickier to track down but we were using an
observer in a syncrhnous way which is not allowed in newer Embers. This
removes the observer (and some dead code around it!) so that we can
execute that code synchronously.
2021-09-16 08:46:44 -04:00
Penar Musaraj
83635ced6f
DEV: Remove displayNewPosts (deprecated in core) ( #208 )
2021-09-15 08:29:48 -04:00
Alan Guo Xiang Tan
5f97e1603d
FIX: Properly fabricate data for topic query specs. ( #209 )
...
We were creating PM topics that did not have any posts.
2021-09-15 13:00:28 +08:00
Martin Brennan
5f7adcc786
FIX: Allow Never selection for frequency of assigned topic reminders ( #204 )
...
If the user selected Never for their frequency of assigned topic
reminder PMs, the option automatically set back to the default
value (Monthly) because of the user of the `or` computed helper,
which considered the 0 value of Never to be falsey.
This is the same problem that occurred in core which was fixed by
d3779d4cf7
We need to be careful around using the `or` helper if any of the
options could be considered falsey.
2021-09-15 08:31:59 +10:00
Krzysztof Kotlarek
b172ca604c
FIX: n+1 assignment ( #205 )
...
We are preloading assigned_to for topic list https://github.com/discourse/discourse-assign/blob/main/plugin.rb#L214
Therefore instead of checking assignment, we should use assigned_to directly on topics for serializers
2021-09-15 08:24:37 +10:00
Penar Musaraj
463b1c2cf0
DEV: Add `pluginId` in one last `modifyClass` call ( #207 )
2021-09-14 15:50:15 -04:00
Discourse Translator Bot
7738124007
Update translations ( #206 )
2021-09-14 16:20:24 +02:00
Penar Musaraj
86a2b1d574
UX: Fix input alignment following core changes ( #200 )
2021-09-14 09:41:08 -04:00
Krzysztof Kotlarek
f58b78e027
FIX: add assigned fields to suggested topic serializer ( #199 )
...
With hard refresh, information about assigned user disappeared from suggested topics.
2021-09-09 16:59:06 +10:00
Krzysztof Kotlarek
ab9e6f0684
FIX: unassign/assign when group pm is archived ( #192 )
...
Send correct messages and correctly unassign/assign to user/group if group PM is archived or moved back to inbox.
2021-09-09 14:22:04 +10:00
Krzysztof Kotlarek
62d87f0084
FEATURE: better UI for group assignments ( #197 )
...
On the group assignment page, we should be able to display
- all topics assigned to that group + to user belonging to that group
- all topics assigned directly to group
- all topics assigned to individual user
2021-09-09 12:18:18 +10:00
Joffrey JAFFEUX
da0a6ce219
DEV: adds log warning if assign is not enabled ( #202 )
2021-09-08 16:46:41 +02:00
Joffrey JAFFEUX
0881b638bd
DEV: adds an option to check for working hours ( #201 )
2021-09-08 16:46:33 +02:00
Joffrey JAFFEUX
cfc25d9ac2
DEV: removes default for minimum time ( #203 )
2021-09-08 16:46:17 +02:00
Krzysztof Kotlarek
5954c625ef
FEATURE: advance search groups ( #198 )
...
Allow advance search filter to select topics assigned to specific group
2021-09-08 11:39:15 +10:00
Krzysztof Kotlarek
375f7ba78d
FEATURE: new assignable group option instead of messageable ( #195 )
...
V1 of group assign was using "who can message" to determine if group can be assigned.
This PR is introducing new separate setting "who can assign"
2021-09-08 10:30:13 +10:00
Robin Ward
f541158b64
DEV: Add `pluginId` for more stable tests ( #196 )
2021-09-02 15:46:32 -04:00
Discourse Translator Bot
43b587dc44
Update translations ( #194 )
2021-08-31 16:08:49 +02:00
Krzysztof Kotlarek
b42ec9f779
FIX: correct group icons and notification message ( #193 )
...
* New group icon
* Group assignment notification displays group name instead of who assigned
2021-08-31 08:17:43 +10:00
David Taylor
978f3d74a1
FIX: Ensure move_to_inbox does not raise error when unassigned ( #190 )
2021-08-27 15:22:24 +01:00