discourse/spec
Martin Brennan 56f42d89c5
FIX: Post menu bookmark icon and attributes not refreshing on notification click (#10214)
When creating a bookmark reminder that deletes the bookmark on reminder, if the user clicked on the notification and got taken to the post in the topic the bookmark icon still showed as blue with the reminder clock indicator. This was because the response JSON for reloading a topic post was not including the bookmark attributes, not even the bookmarked boolean.

We now return the correct attributes in the serializer, and if bookmarked is false we clear all the bookmark related attributes on the post for the notification to make sure nothing of the old bookmark remains in the UI.

This was only a problem if the user did not refresh the app completely inbetween setting the reminder and receiving the notification.
2020-07-10 14:35:53 +10:00
..
components FIX: Test output related to Discourse::VERSION 2020-07-09 14:57:27 -04:00
fabricators DEV: Fix OptimizedImage specs 2020-07-06 21:51:56 +02:00
fixtures FEATURE: Parse images in email signatures (#10137) 2020-07-08 15:50:30 +10:00
helpers Fix the build. 2020-06-22 14:50:17 +08: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 PERF: Do not include thumbnail information in default topic list payload (#10163) 2020-07-06 10:59:21 +01:00
integrity DEV: Check English locale for errors in CI 2020-06-03 21:54:58 +02:00
jobs FIX: Do not send system emails to suspended users (#10192) 2020-07-08 13:30:32 -04:00
lib DEV: Add SVG tests for 31e31ef44 (#10205) 2020-07-09 14:02:25 -07:00
mailers DEV: correct regression and correct tests 2020-07-06 10:56:19 +10:00
models FIX: 'resend all invite' button was not working as expected 2020-07-08 15:52:44 +05:30
multisite FIX: invalid urls should not break store.has_been_uploaded? 2020-06-25 15:00:15 +10:00
requests DEV: Fix search rate limit tests 2020-07-09 20:44:17 -03:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers FIX: Post menu bookmark icon and attributes not refreshing on notification click (#10214) 2020-07-10 14:35:53 +10:00
services FEATURE: trigger user_updated event if username is changed. 2020-07-03 00:14:19 +05:30
support FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02: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 Always require pry gems in rails_helper 2020-06-17 10:08:53 +10:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00