discourse/test/javascripts/acceptance
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
..
about-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
account-created-test.js DEV: Move `preload-store` to `discourse/lib/preload-store` 2020-05-06 15:28:06 -04:00
admin-emails-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-search-log-term-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-search-logs-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-site-settings-test.js DEV: Fix test 2020-08-05 12:11:57 +03:00
admin-site-text-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-suspend-user-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-user-badges-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-user-emails-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
admin-user-index-test.js Allow multiple groups which can vote when creating a poll (#10015) 2020-06-12 14:52:32 +03:00
admin-users-list-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
admin-watched-words-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
auth-complete-test.js Remove `Discourse.SiteSettings` from tests (#10193) 2020-07-09 15:54:53 -04:00
badges-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
bookmarks-test.js FEATURE: Add "delete on owner reply" bookmark functionality (#10231) 2020-07-21 10:00:39 +10:00
category-banner-test.js FEATURE: add category banner for why a user cannot post (#9576) 2020-04-30 10:39:11 -07:00
category-chooser-test.js Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
category-edit-security-test.js DEV: No need for double `await` 2020-05-10 19:54:07 +02:00
category-edit-test.js FIX: Show category name in badge preview on edit (#9726) 2020-05-11 17:05:40 +02:00
click-track-test.js DEV: skip click track test (#9792) 2020-05-15 16:12:22 +02:00
composer-actions-test.js FIX: Flaky tests 2020-07-09 12:58:57 -04:00
composer-attachment-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
composer-edit-conflict-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
composer-hyperlink-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
composer-onebox-test.js DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
composer-tags-test.js FIX: Staff users can bypass tag validation rule (#9924) 2020-06-02 16:11:25 +10:00
composer-test.js FIX: Pretender errors were being swallowed 2020-08-05 15:48:57 -04:00
composer-topic-links-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
composer-uncategorized-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
create-account-external-test.js Remove `Discourse.SiteSettings` from tests (#10193) 2020-07-09 15:54:53 -04:00
create-account-user-fields-test.js UX: don't disable "create account" button & display error message for required fields. (#9643) 2020-05-14 12:15:33 +05:30
custom-html-set-test.js DEV: Move `preload-store` to `discourse/lib/preload-store` 2020-05-06 15:28:06 -04:00
custom-html-template-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
dashboard-test.js FEATURE: allows to limit visible reports and tabs in dashboard (#9598) 2020-04-30 17:31:04 +02:00
email-notice-test.js Remove `Discourse.SiteSettings` from tests (#10193) 2020-07-09 15:54:53 -04:00
emoji-picker-test.js REFACTOR: Remove `Discourse.__container__` from tests 2020-07-28 14:58:31 -04:00
emoji-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
encoded-category-test.js DEV: add acceptance test for encoded subcategory 2020-05-27 16:59:49 -07:00
enforce-second-factor-test.js Remove `Discourse.SiteSettings` from tests (#10193) 2020-07-09 15:54:53 -04:00
forgot-password-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
group-card-mobile-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
group-card-test.js DEV: skip bunch of failing tests (#9896) 2020-05-27 17:36:50 +02:00
group-index-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
group-manage-categories-test.js FEATURE: set notification levels when added to a group (#10378) 2020-08-06 12:27:27 -04:00
group-manage-interaction-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
group-manage-logs-test.js UX: drop the `automatic_membership_retroactive` column from groups model. (#9430) 2020-04-22 22:07:39 +05:30
group-manage-membership-test.js UX: drop the `automatic_membership_retroactive` column from groups model. (#9430) 2020-04-22 22:07:39 +05:30
group-manage-profile-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
group-manage-tags-test.js FEATURE: set notification levels when added to a group (#10378) 2020-08-06 12:27:27 -04:00
group-requests-test.js FIX: Tests that used the olds paths 2020-07-24 09:45:55 -04:00
group-test.js Remove `Discourse.SiteSettings` from tests (#10193) 2020-07-09 15:54:53 -04:00
groups-index-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
groups-new-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
hamburger-menu-test.js FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
hashtags-test.js DEV: Merge category and tag hashtags code paths (#10216) 2020-07-13 19:13:17 +03:00
invite-accept-test.js FEATURE: multiple use invite links (#9813) 2020-06-09 20:49:32 +05:30
invite-show-user-fields-test.js FEATURE: multiple use invite links (#9813) 2020-06-09 20:49:32 +05:30
jump-to-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
keyboard-shortcuts-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
login-redirect-test.js REFACTOR: Remove `Discourse.SiteSettings` from utilities 2020-07-24 09:45:55 -04:00
login-required-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
login-with-email-and-hide-email-address-taken-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
login-with-email-and-no-social-logins-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
login-with-email-disabled-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
login-with-email-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
mobile-discovery-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
mobile-sign-in-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
mobile-users-test.js FIX: Tests that used the olds paths 2020-07-24 09:45:55 -04:00
modal-test.js DEV: Allow displaying both title and panels in modals (#10220) 2020-07-13 12:43:06 +02:00
new-message-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
new-topic-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
notifications-filter-test.js FIX: Filter read/unread notifications on the server side (#10152) 2020-07-02 11:06:00 +01:00
page-publishing-test.js FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
password-reset-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
personal-message-test.js UX: remove edit PM button 2020-05-28 15:15:27 +10:00
plugin-keyboard-shortcut-test.js REFACTOR: Remove `Discourse.__container__` from tests 2020-07-28 14:58:31 -04:00
plugin-outlet-connector-class-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
plugin-outlet-decorator-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
plugin-outlet-multi-template-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
plugin-outlet-single-template-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
post-admin-menu-test.js FEATURE - allow Group Moderators to edit category description (#10292) 2020-07-23 09:50:00 -04:00
preferences-test.js FEATURE: Allow users to opt out of automatic dark mode (#10377) 2020-08-06 09:45:37 -04:00
raw-plugin-outlet-test.js DEV: Remove `Discourse.RAW_TEMPLATES` (#9630) 2020-05-05 12:15:03 -04:00
redirect-to-top-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
reports-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
review-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
search-full-test.js FIX: Tests involving dates were logging warnings 2020-07-17 15:20:45 -04:00
search-mobile-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
search-test.js UX: remove `in:unpinned` filter from advanced search page. (#9911) 2020-05-29 00:47:28 +05:30
share-and-invite-desktop-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
share-and-invite-mobile-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
shared-drafts-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
sign-in-test.js DEV: skip bunch of failing tests (#9896) 2020-05-27 17:36:50 +02:00
static-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
tag-groups-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
tags-intersection-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
tags-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
topic-admin-menu-test.js FEATURE: Allow group moderators to add/remove staff notes (#10252) 2020-07-20 15:53:47 -04:00
topic-anonymous-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
topic-discovery-test.js Revert "Revert "DEV: Import `MessageBus` from `message-bus-client` instead of globals"" 2020-05-28 08:42:36 -04:00
topic-edit-timer-test.js FIX: Remove more computed properties being set 2020-07-16 16:06:27 -04:00
topic-footer-buttons-mobile-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
topic-list-tracker-test.js DEV: add acceptance test for topic list 2020-07-31 11:23:12 +10:00
topic-move-posts-test.js FEATURE - allow category group moderators to split/merge topics (#10351) 2020-08-05 10:33:25 -04:00
topic-notifications-button-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
topic-quote-button-test.js DEV: re-enable test skipped in 7dce4bfd 2020-07-20 09:55:30 -04:00
topic-test.js FEATURE - group modetators visual indicator (#10310) 2020-07-28 17:15:04 -04:00
unknown-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
user-anonymous-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
user-bookmarks-test.js UX: Bookmark removal tweaks (#9635) 2020-05-05 14:56:04 +10:00
user-card-mobile-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
user-card-test.js DEV: skip bunch of failing tests (#9896) 2020-05-27 17:36:50 +02:00
user-drafts-stream-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
user-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
users-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00