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/integration/components/widgets
Isaac Janzen 28078d78e2
DEV: Make 'username' optional for bookmark notifications (#19851)
Data Explorer queries have a `user_id` assigned to each query created. DE Reports can be bookmarked for later reference. 

When creating the bookmark notification there was the possibility of a notification error being thrown (that made the notification menu inaccessible) due to a DE Query not having a owner (associated user_id). This can happen in a couple ways: 
- having a query created by a user that was then later deleted leaving the query without ownership
- having a TA create a query for a customer using a temporary account, that would then later be deleted leaving the query without ownership

Since there is a case that `bookmark.user` is not valid the PR makes the `bookmark.user.username` optional for a bookmark notification. As [tested](https://github.com/discourse/discourse/pull/19851/files#diff-5b5154de37f96988d551feff6f1dfe5ba804fbcbc1c33b5478dde02a447a634f) in the case a username is not present, we will still render the `content` of the notification minus the username. This creates a safe fallback when looking up non-valid users.
2023-01-12 12:22:11 -06:00
..
actions-summary-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
avatar-flair-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
button-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
default-notification-item-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
hamburger-menu-test.js DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
header-test.js DEV: Replace current-user:main with service:current-user 2022-08-02 20:16:11 +01:00
home-logo-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
post-cooked-test.js SECURITY: Handle incomplete quote bbcode (#18311) 2022-09-21 14:02:50 +02:00
post-links-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
post-menu-test.js FIX: Evaluate all callbacks rather than override them (#18788) 2022-10-31 10:13:56 +08:00
post-small-action-test.js DEV: Add missing test case (#19510) 2022-12-19 10:09:19 +08:00
post-stream-test.js DEV: Use store to create Post records in tests (#18920) 2022-11-08 18:13:45 +01:00
post-test.js DEV: Deprecate create-store test helper (#19021) 2022-11-16 10:54:46 +01:00
poster-name-test.js DEV: add title class name, prefix username class (#19482) 2022-12-15 17:18:08 -05:00
quick-access-item-test.js DEV: Make 'username' optional for bookmark notifications (#19851) 2023-01-12 12:22:11 -06:00
render-glimmer-test.js DEV: Improve testing and documentation of RenderGlimmer actions (#18145) 2022-09-01 09:57:48 +01:00
small-user-list-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
topic-admin-menu-test.js DEV: Use store.createRecord for Topic models (#18837) 2022-11-03 12:32:20 +01:00
topic-participant-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
topic-status-test.js DEV: Deprecate create-store test helper (#19021) 2022-11-16 10:54:46 +01:00
user-menu-test.js FIX: Clientside checks for personal_message_enabled_groups (#18691) 2022-10-21 14:38:33 +10:00
widget-dropdown-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
widget-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00