This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit/models
Martin Brennan 49a70a37f1
FIX: Remove last_unread_post excerpt logic for bookmarks (#17979)
The logic to determine what post excerpt to show for
a topic-level bookmark based on the last unread post
was complex and slow, so we decided to remove it and
always just use the first post excerpt.

This commit also fixes an issue where a couple of
instances of for_topic were missed when doing the
Bookmarkable refactors, so:

1. Clicking the topic bookmark link was not taking
   the user to the last unread post
2. When replying to a topic where there was a topic
   level bookmark with the auto delete preference
   of "on owner reply", we were not removing the
   bookmark from the UI correctly.

A test has been added for the former, the latter would
be quite time-consuming to test and not really worth
it considering it's quite an edge case UI bug.
2022-08-19 09:35:25 +10:00
..
badge-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
bookmark-test.js FIX: Remove last_unread_post excerpt logic for bookmarks (#17979) 2022-08-19 09:35:25 +10:00
category-test.js DEV: We already restore sinon after each test (#17529) 2022-07-16 22:57:33 +02:00
composer-test.js DEV: Bump eslint-config-discourse (#14868) 2021-11-10 09:31:41 +10:00
email-log-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
invite-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
nav-item-test.js FIX: NavItem and Composer prop overriding was broken (#17092) 2022-06-14 21:16:33 +02:00
pending-post-test.js DEV: Make settled() work in the legacy env (#16122) 2022-03-07 20:00:09 +01:00
post-stream-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
post-test.js DEV: Bump eslint-config-discourse (#14868) 2021-11-10 09:31:41 +10:00
private-message-topic-tracking-state-test.js DEV: Convert pm-topic-tracking-state to Ember Service (#17688) 2022-07-27 13:00:43 +01:00
report-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
rest-model-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
result-set-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
session-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
site-test.js FIX: Include all categories in sortedCategories (#14979) 2021-11-17 00:12:04 +01:00
staff-action-log-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
theme-test.js DEV: Use the block form of module() (#17151) 2022-06-20 15:42:10 +02:00
topic-details-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
topic-tracking-state-test.js Revert "DEV: Minor topic-tracking-state refactor (#17707)" (#17724) 2022-07-29 09:36:14 +10:00
user-action-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-badge-test.js DEV: Fix a test leak (#15135) 2021-11-30 13:45:26 +11:00
user-drafts-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-stream-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-test.js FIX: make sure every user instance has correct status tracking counter 2022-07-26 18:42:55 +04:00
wizard-field-test.js DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00