discourse/spec
Régis Hanol bc63232d2e
FIX: sync reviewable count when opening the hamburger menu (#10368)
When a tab is open but left unattended for a while, the red, green, and blue
pills tend to go out of sync.

So whevener we open the notifications menu, we sync up the notification count
(eg. blue and green pills) with the server.

However, the reviewable count (eg. the red pill) is not a notification and
is located in the hamburger menu. This commit adds a new route on the server
side to retrieve the reviewable count for the current user and a ping
(refreshReviewableCount) from the client side to sync the reviewable count
whenever they open the hamburger menu.

REFACTOR: I also refactored the hamburger-menu widget code to prevent repetitive uses
of "this.".

PERF: I improved the performance of the 'notify_reviewable' job by doing only 1 query
to the database to retrieve all the pending reviewables and then tallying based on the
various rights.
2020-08-07 18:13:02 +02:00
..
components FIX - limit number of embedded media items in a post (#10391) 2020-08-07 12:08:59 -04:00
fabricators FEATURE: Allow List for PMs (#10270) 2020-07-20 15:23:49 -06:00
fixtures DEV: Plugins can extend color definitions (#10383) 2020-08-06 09:46:17 -04:00
helpers Add site setting to pick dark mode color scheme (#10390) 2020-08-07 08:52:47 -04:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration DEV: Enable preserve_email_structure_when_styling by default 2020-07-20 10:21:32 +01:00
integrity DEV: Check English locale for errors in CI 2020-06-03 21:54:58 +02:00
jobs FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
lib Convert HEIC uploads to JPG by default (#10395) 2020-08-07 11:17:50 -04:00
mailers FIX: Exclude shared drafts from digests 2020-08-04 13:35:48 -04:00
models FIX - limit number of embedded media items in a post (#10391) 2020-08-07 12:08:59 -04:00
multisite FIX: invalid urls should not break store.has_been_uploaded? 2020-06-25 15:00:15 +10:00
requests FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers TopicView/PostSerializer should be able to handle topics without categories 2020-07-28 19:06:55 -04:00
services PERF: Replace video and audio links in search blurb while indexing. 2020-08-06 12:25:03 +08:00
support DEV: Improve docs for Sidekiq job assertion helpers. 2020-07-24 17:37:22 +08:00
tasks FEATURE: Add uploads:batch_migrate_from_s3 task to limit total posts migrated at once (#9933) 2020-06-04 09:48:11 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb Update rubocop to 2.3.1. 2020-07-24 17:19:21 +08:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00