Commit Graph

648 Commits

Author SHA1 Message Date
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
Martin Brennan 7320fdd94b
FIX: Polymorphic bookmarks support (#328)
Adds support for polymorphic bookmarks in the serializer extensions
and preloaders for bookmarks.

Specs are skipped for now for the serializer but they do
work without the use_polymorphic_bookmark guard in the plugin.rb
2022-05-11 09:52:15 +10:00
Discourse Translator Bot 46f200935d
Update translations (#331) 2022-05-10 21:39:36 +02:00
Natalie Tay de65c7119a
FIX: Rename button (#330) 2022-05-10 18:33:38 +08:00
Natalie Tay b314882a6b
FEATURE: Show note in tooltip (#327) 2022-05-05 15:04:57 +08:00
Natalie Tay 1ac2dfbae2
FEATURE: Add assign note (#326) 2022-05-05 13:21:14 +08:00
Natalie Tay 3151bea1da
DEV: Backfill tests (#324) 2022-04-30 03:10:08 +08:00
Kris d2241049e1
UX: show posers on group assign list (#325) 2022-04-29 13:43:40 -04:00
dependabot[bot] 202f79d288
Build(deps): Bump async from 2.6.3 to 2.6.4 (#323)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 18:02:12 +02:00
Penar Musaraj b1b7023141
FIX: User link on post assign/unassign (#322) 2022-04-27 13:19:34 -04:00
Isaac Janzen de36236dbc
Serialize assignment assignee (#320) 2022-04-26 10:12:05 -05:00
Natalie Tay 21d89179ea
FIX: Hide footer action button when user cannot assign (#319) 2022-04-26 15:00:00 +08:00
Jarek Radosz 3a147fcb88
FIX: Broken reviewable filter (#318) 2022-04-23 01:31:36 +02:00
Discourse Translator Bot d039024fe3
Update translations (#316) 2022-04-19 15:44:44 +02:00
Kris 7a854fe504
UX: Show posters on assigned topic list (#315) 2022-04-14 16:20:09 -04:00
dependabot[bot] faa889c933
Build(deps): Bump ansi-regex from 4.1.0 to 4.1.1 (#314) 2022-04-10 20:11:36 +02:00
dependabot[bot] 3bf1bc1d5b
Build(deps): Bump minimist from 1.2.5 to 1.2.6 (#313) 2022-04-10 20:10:05 +02:00
Alan Guo Xiang Tan 4226ab21a0
DEV: Update .discourse-compatibility for 2.8.2. (#312) 2022-03-31 15:30:47 +08:00
Discourse Translator Bot 29955dae7e
Update translations (#311) 2022-03-30 14:52:39 +02:00
Jordan Vidrine d8d2dc950a
UX: Additional refactor for topic-list prep (#310) 2022-03-23 10:42:55 -05:00
Discourse Translator Bot 6e88d1434b
Update translations (#309) 2022-03-22 16:01:07 +01:00
discoursebot 8aa3db1eaf
DEV: Update CI workflows (#308)
Co-authored-by: discoursebuild <build@discourse.org>
2022-03-22 14:01:57 +01:00
Rafael dos Santos Silva 099845ffbd
FIX: Add missing notification title (#306) 2022-03-18 16:42:57 -03:00
Rafael dos Santos Silva a52d2a8228
FIX: New notification type needs one more i18n string (#305) 2022-03-17 14:11:16 -03:00
Alan Guo Xiang Tan 83719bacc1
DEV: Update .discourse-compatibility for stable branch. (#303) 2022-03-17 14:09:37 -03:00
Rafael dos Santos Silva bf31bdb824
FIX: New notification type needs some i18n string (#304) 2022-03-17 15:03:40 +00:00
Rafael dos Santos Silva 568a13101e
DEV: Use reserved assigned notification type (#302) 2022-03-16 16:23:14 -03:00
Discourse Translator Bot 6d5987244e
Update translations (#301) 2022-03-15 14:40:31 +01:00
Joffrey JAFFEUX f657239a4b
FEATURE: improves random assign to assign to a post (#300) 2022-03-14 10:55:50 +01:00
Jordan Vidrine 8c382b02c1
UX: Topic list refactor (#299) 2022-03-09 16:46:10 -06:00
Jarek Radosz 264620985e
DEV: Lose the es6 suffix (#298) 2022-03-05 17:19:50 +01:00
Discourse Translator Bot 81190f40fd
Update translations (#297) 2022-03-01 22:56:07 +01:00
Jarek Radosz 7307bfada6
DEV: Remove the migration specs (#295)
They're no longer useful
2022-02-23 21:12:24 +01:00
Jarek Radosz 7d83a98b45
DEV: Resolve small TODOs; fix a typo (#296) 2022-02-23 18:23:52 +01:00
Gavin 382666657d
DEV: Update README.md (#294)
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2022-02-21 21:05:57 +01:00
Bianca Nenciu c8fc42b60f
FIX: Reuse topic query method to find group topics (#292)
The query for counts and list were different and the count did not
match the number of topics from the list.
2022-02-15 19:57:33 +02:00
Discourse Translator Bot 7bec9aeaf7
Update translations (#293) 2022-02-15 15:09:52 +01:00