Commit Graph

634 Commits

Author SHA1 Message Date
Discourse Translator Bot ad1b63b1a4
Update translations (#377) 2022-09-13 16:03:59 +02:00
Jarek Radosz eea90c9670
DEV: Fix a flaky spec and typos (#378) 2022-09-12 09:27:25 +02:00
Krzysztof Kotlarek 0d9aa9c5fa
FIX: Move types of the assign notification list to the tab class (#376)
This change is needed following this commit in core: 661a903a0b

Co-authored-by: OsamaSayegh <asooomaasoooma90@gmail.com>
2022-09-02 18:48:45 +03:00
Krzysztof Kotlarek 0d586bb93c
FIX: use grouped_unread_notifications (#373)
Use `grouped_unread_notifications` instead of `grouped_unread_high_priority_notifications`

Related PR: https://github.com/discourse/discourse/pull/18132
2022-08-31 11:16:13 +10:00
Discourse Translator Bot 030d349aa0
Update translations (#374) 2022-08-30 20:15:40 +02:00
Bianca Nenciu 1dfbc84896
FIX: Count only active assignments when checking limits (#375)
Only 5 assignments can exist simultaneously for a topic or its post.
The code that counted the assignments did not ignore the inactive
assignments which made the limit check more strict than it should have
been.
2022-08-30 19:56:03 +03:00
Osama Sayegh 7b08ab425c
DEV: Apply model transformations for the assigns list in the experimental user menu (#372) 2022-08-26 13:33:25 +08:00
Keegan George 7e85101b89
FIX: Error bulk deleting posts when action post is already deleted (#371)
* DEV: Break when action post is already deleted

* FIX: Post needs to be unassigned on deletion

* WIP: Add spec

* DEV: Update spec
2022-08-25 12:48:55 -07:00
Bianca Nenciu 4046c9fb40
FIX: Find better users for automatic assignment (#370)
There were two problems with the way current automation script for automatic
assignment works:

- it tried to assign users that were not allowed to be assigned because they
were not part of groups that are allowed to use discourse-assign - fixed by
skipping users that are not a part of assign_allowed_on_groups groups

- it assigned new users - fixed by adding a new user that can skip new users
2022-08-25 15:13:33 +03:00
Discourse Translator Bot ba2eedb874
Update translations (#369) 2022-08-23 17:24:17 +02:00
Bianca Nenciu acb9025ede
FIX: Check if assignment has same user and details (#368)
The check existed, but its implementation was incorrect and it did not
work when the target was a post.
2022-08-18 18:16:20 +03:00
Osama Sayegh e6e222d8bc
FEATURE: Add assigns tab to the experimental user menu (#366)
This commit adds a tab for assignments in the experimental user menu. The assignments tab behaves very similarly to the bookmarks and messages tab in core: it displays the user's unread assign notifications first and then fills the rest of available space in the menu with assignments (same content that the current user menu displays).

More details of the experimental user menu can be found in https://github.com/discourse/discourse/pull/17379.
2022-08-17 11:57:15 +03:00
Discourse Translator Bot 28bc8ab78a
Update translations (#367) 2022-08-16 16:12:28 +02:00
Osama Sayegh d9a750d306
DEV: Add assignment ID to assign notification data (#365)
This change makes it possible to associate an assign notification with the `assignments` record that creates the notification. It'll be needed for the assignments tab in the new experimental user menu, see https://github.com/discourse/discourse/pull/17379.
2022-08-11 06:43:49 +03:00
Discourse Translator Bot 030cdc2d9c
Update translations (#364) 2022-08-09 16:58:16 +02:00
Rafael dos Santos Silva 7a2fde72c6
FEATURE: Assign Status (#363)
Adds a new plugin setting that when enabled adds a status field for every assignment. This setting defaults to off.

The possible status for an assignment are customizable via yet another new setting, and the first one on this list will be the default status for new assignments.

The status is not yet show anywhere except the assign modal and the small action posts in topics at the moment. Adding status to the assignment list for users and groups will be handled in the near future.


Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2022-08-04 14:50:18 -03:00
Martin Brennan a29a02abe7
FEATURE: Allow submitting the assign modal with ctrl+enter (#362)
This commit allows submitting the assign modal with
control/meta+enter when the textarea is focused.
2022-07-28 16:18:44 +10:00
Rafael dos Santos Silva 02e76e4986 DEV: Ignore stree commit from git blame 2022-07-27 13:48:51 -03:00
Rafael dos Santos Silva 6116f26642 DEV: Apply syntax_tree formatting 2022-07-27 13:48:51 -03:00
Rafael dos Santos Silva 8c11d4d6ed DEV: Enable ruby Syntax Tree format 2022-07-27 13:48:51 -03:00
Rafael dos Santos Silva 9f514a50ca
DEV: Add acceptance tests for assignment notifications (#307)
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2022-07-26 16:31:59 -03:00
Discourse Translator Bot 872430bd2c
Update translations (#361) 2022-07-26 15:20:51 +02:00
Alan Guo Xiang Tan 148b4b0089
Revert "FEATURE: Register assigned link under sidebar topics section. (#341)" (#359)
This reverts commit 959525b079.

Product design to drop from Sidebar
2022-07-22 15:40:05 +08:00
Jarek Radosz 0adea550c0
DEV: Fix leaky tests (#358) 2022-07-21 03:41:32 +02:00
Alan Guo Xiang Tan 86141dfe3d
Revert "UX: Don't display assign user menu glyph when sidebar is enabled (#356)" (#357)
This reverts commit 479fcfb411.

Link in user menu dropdown is kept in favor of link in experimental
sidebar
2022-07-08 15:44:45 +08:00
Alan Guo Xiang Tan 479fcfb411
UX: Don't display assign user menu glyph when sidebar is enabled (#356)
Assignments can already be accessed via sidebar.
2022-07-05 15:50:46 +08:00
Isaac Janzen 507060b7f1
DEV: Remove isLegacyEmber (#355) 2022-06-23 11:06:16 -05:00
Discourse Translator Bot 50adb646f3
Update translations (#354) 2022-06-21 15:26:14 +02:00
discoursebot e66d1fb770
DEV: Update CI workflows (#353)
Co-authored-by: discoursebuild <build@discourse.org>
2022-06-17 21:33:07 +02:00
Natalie Tay 4c7384e88f
FIX: Fix a bug where a note change was ending in a full blown whisper (#352) 2022-06-18 01:45:47 +08:00
Natalie Tay 1ef8e70314
FIX: Don't reuse assign note when reassigning (#351) 2022-06-18 01:35:58 +08:00
Natalie Tay 169f13e239
FEATURE: Allows note to be edited (#350) 2022-06-18 00:06:23 +08:00
Krzysztof Kotlarek 0b5f688451
FIX: ensure that assignee is participant of pm (#349)
We are already checking that assignee has access to the private message. However, admin still can be assigned as technically they have access.

We should ensure that assignee has direct access to the message.
2022-06-16 10:08:22 +10:00
Discourse Translator Bot af49e987de
Update translations (#348) 2022-06-14 16:57:29 +02:00
Vinoth Kannan 4ab491ec14
FIX: include users who were assigned to a post instead of topic. (#347)
While assigning a random user in group to the topic posts, if we didn't include the users who were assigned to indivitual posts then the same users will be assigned again and again.
2022-06-09 04:31:29 +05:30
Vinoth Kannan 3d4f63f921
UX: don't mention the group when no one is assigned. (#346)
It's a minor copyedit to remove group mention from the post raw. Else it sends a notification to all group members when no one is found to be assigned.
2022-06-08 23:52:14 +05:30
Isaac Janzen 201f115387
DEV: Remove 'htmlSafe' string prototype extensions (#344)
Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
2022-06-01 11:08:26 -05:00
Discourse Translator Bot 0d2a02a0db
Update translations (#343) 2022-05-31 16:11:36 +02:00
Alan Guo Xiang Tan 6d6184d31d
PERF: Speed up `User.assign_allowed` SQL query (#342)
The previous query which uses a subquery in combination with the OR
condition results in the PG planner unable to leverage the indexes we
have available. Instead, the PG planner would loop through each user
record and execute the subquery once per row. As the number of users on
a site increases, this query becomes more and more expensive to run
leading to the query timing out once a certain threshold is reached.

In the new query, we remove the OR condition which allows the PG
planner to the existing indexes more effectively. We also improved the
subquery by removing an unnecessary join against the groups table.
Since `group_users` rows are cleaned up when a group is destroyed so there is
no need for the inner join on the `groups` table.
2022-05-30 14:26:20 +08:00
Alan Guo Xiang Tan 959525b079
FEATURE: Register assigned link under sidebar topics section. (#341) 2022-05-26 09:13:40 +08:00
Martin Brennan 8d1aa65d5f
FEATURE: Promote polymorphic bookmarks (#339)
This removes the use_polymorphic_bookmarks site setting
guard and promotes that code to the only code used.
2022-05-24 11:22:40 +10:00
discoursebot cbf941e642
DEV: Update CI workflows (#340)
Co-authored-by: discoursebuild <build@discourse.org>
2022-05-23 16:59:03 +02:00
Bianca Nenciu efeb7ad511
DEV: Add test for list_group_topics_assigned (#338)
Follow up to commit c8fc42b60f.
2022-05-18 17:57:58 +03:00
Discourse Translator Bot 35842bf5ab
Update translations (#337) 2022-05-17 16:51:02 +02:00
Jeff Wong ea59761fa8
DEV: Update discourse compatibility for polymorphic bookmarks (#336) 2022-05-12 14:36:21 -07:00
Natalie Tay 43a3030707
FEATURE: Shows note in moderator post (#335) 2022-05-12 23:55:57 +08:00
Natalie Tay 6db2e0991b
FIX: Only assign when suggestion is clicked (#334) 2022-05-12 20:55:37 +08:00
Martin Brennan 4065b29f69
DEV: Get rid of old bookmark spec (#333)
The user_bookmark_serializer_spec.rb covers polymorphic bookmarks,
we no longer need this and
https://github.com/discourse/discourse/pull/16729 will
not pass without deleting it.
2022-05-12 16:46:29 +10:00
Natalie Tay 5503499514
FIX: Assigning a user without notes assigns and closes the modal (#329) 2022-05-11 16:17:33 +08:00
Natalie Tay fbdfb7143b
DEV: Small refactors for future work (#332) 2022-05-11 14:03:54 +08:00