zulip/frontend_tests/node_tests
Steve Howell ef84d47d88 presence: Add warning for missing user_id.
This is defensive code for the scenario that we
have a user_id in presence but not people.  This is
unlikely to occur by the time that we actually render
the buddy list, which is the context for this code.

We have previously been reporting an error here via
the people code, but we add an additional warning.
Also, we filter the user_id from the result.
2020-02-04 12:24:53 -08:00
..
.eslintrc.json lint: Add JS indentation eslint rules for node_tests. 2018-05-06 19:35:18 -07:00
activity.js js: Use IntDict in people.js. 2020-01-05 12:27:28 -08:00
alert_words_ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
alert_words.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
billing_helpers.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
billing.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
blueslip_stacktrace.js blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
bot_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
buddy_data.js presence: Add warning for missing user_id. 2020-02-04 12:24:53 -08:00
buddy_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
channel.js node tests: Consolidate some set_global() calls. 2018-08-02 08:02:12 -04:00
color_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
colorspace.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
common.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
components.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose_actions.js dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
compose_fade.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose_pm_pill.js refactor: Use filter_taken_users in compose typeahead. 2020-01-08 12:55:42 -08:00
compose_ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose.js lazy_set: Convert LazySet to a real class. 2020-02-04 12:22:03 -08:00
composebox_typeahead.js mobile sharing: Extract shared/js/typeahead.js. 2020-01-27 16:32:11 -08:00
copy_and_paste.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
dict.js dict: Remove each method. 2020-02-04 12:22:03 -08:00
dispatch.js performance: Avoid expensive call in stream_data.is_active. 2019-12-30 09:45:46 -08:00
drafts.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
echo.js echo: Include sender in display_recipient during PM local insert. 2020-01-31 12:45:14 -08:00
emoji_picker.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
emoji.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
fetch_status.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
filter.js filter: Allow marking is:mentioned messages as read. 2020-01-16 11:10:36 -08:00
fold_dict.js dict: Replace items method with @@iterator method. 2020-02-04 12:22:03 -08:00
general.js compose: Improved warning for wildcard mentions. 2020-01-31 12:24:35 -08:00
hash_util.js people: Clean up recip.id code. 2020-01-05 12:27:30 -08:00
hashchange.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
hotkey.js Hotkeys: Change hotkeys behaviour on dropdown open. 2020-02-03 13:45:07 -08:00
i18n.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
input_pill.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
int_dict.js dict: Remove each method. 2020-02-04 12:22:03 -08:00
keydown_util.js keydown_util: Ignore alt-arrow and similar things. 2018-12-04 12:24:39 -08:00
lazy_set.js lazy_set: Convert LazySet to a real class. 2020-02-04 12:22:03 -08:00
lightbox.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
list_cursor.js node tests: Bring list_cursor to 100% coverage. 2018-08-24 10:00:04 -07:00
list_render.js blueslip: Add feature to time common operations. 2020-01-15 12:01:16 -08:00
markdown.js js: Automatically convert var to let and const in more files. 2019-11-20 14:10:47 -08:00
message_edit.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
message_events.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_fetch.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_flags.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_list_data.js search: Don't mark messages as read in search narrow. 2019-07-17 17:58:20 -07:00
message_list_view.js tests: Avoid _.uniqueId when a number is needed. 2020-02-02 20:37:41 -08:00
message_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_store.js people: Clean up recip.id code. 2020-01-05 12:27:30 -08:00
muting.js muting: Replace muted_topics Dict with IntDict. 2020-02-02 20:37:41 -08:00
narrow_activate.js messages: Simplify API for use_first_unread_anchor. 2020-01-29 12:17:03 -08:00
narrow_local.js narrow: Use search reading behavior in all searches. 2019-12-10 16:26:06 -08:00
narrow_state.js unreads: Remove is_reading_mode(). 2020-01-16 10:54:59 -08:00
narrow_unread.js people: Clean up recip.id code. 2020-01-05 12:27:30 -08:00
narrow.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
notifications.js notifications: Support wildcard_mentions_notify for desktop. 2019-12-10 13:12:36 -08:00
password.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
people_errors.js people: Use ints in is_my_user_id(). 2020-01-05 12:28:23 -08:00
people.js dict, lazy_set: Replace num_items method with size property. 2020-02-04 12:22:03 -08:00
pm_conversations.js bug fix: Fix huddles in "Private Messages". 2020-01-02 11:59:58 -08:00
pm_list.js pm_list: Simplify redraws for Private Messages. 2020-01-30 13:11:32 -08:00
popovers.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
presence.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
reactions.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
recent_senders.js tests: Avoid _.uniqueId when a number is needed. 2020-02-02 20:37:41 -08:00
rtl.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
schema.js lint: Fix comma spacing in node tests. 2018-12-07 13:14:28 -08:00
scroll_util.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
search_legacy.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
search_pill.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
search_suggestion_legacy.js search: Optimize search bar suggestions for large realms. 2020-01-04 12:58:00 -08:00
search_suggestion.js search: Retrofit recent changes to pills code. 2020-01-08 14:02:34 -08:00
search.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
server_events.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
settings_bots.js settings: Fix copy-from-clipboard behavior for bot tokens. 2020-01-31 15:11:20 -08:00
settings_muting.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
settings_org.js settings_org: Use actual value for value attribute of invite stream policy. 2020-01-31 12:42:26 +05:30
settings_profile_fields.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
settings_user_groups.js user_groups: Convert members from Dict to Set. 2020-01-16 13:23:47 -08:00
stream_data.js refactor: Extract is_subscriber_subset(). 2020-01-14 13:19:49 -08:00
stream_events.js wildcard_mentions_notify: Add per-stream override of global setting. 2019-12-09 16:09:38 -08:00
stream_list.js tests: Replace stream_count, topic_count, html_dict with IntDict. 2020-02-02 20:37:41 -08:00
stream_search.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
stream_sort.js performance: Avoid dup calls to subscribed_streams(). 2019-12-30 09:50:22 -08:00
submessage.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
subs.js blueslip: Add feature to time common operations. 2020-01-15 12:01:16 -08:00
support.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
templates.js compose: Improved warning for wildcard mentions. 2020-01-31 12:24:35 -08:00
timerender.js zjsunit: Remove Dict dependency. 2020-01-03 17:19:59 -08:00
top_left_corner.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
topic_data.js unread: Replace key_to_bucket Map with Dict/FoldDict/IntDict. 2020-02-04 12:21:29 -08:00
topic_generator.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
topic_list_data.js minor: Consolidate vars for max topics. 2020-01-30 12:15:40 -08:00
transmit.js dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
typeahead_helper.js lazy_set: Convert LazySet to a real class. 2020-02-04 12:22:03 -08:00
typeahead.js emojis: Make it easier to type smiley icons. 2020-01-28 12:48:02 -08:00
typing_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
typing_status.js typing: Fix invalid typing notifications for stream messages. 2019-12-02 09:31:16 -08:00
ui_init.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
unread.js unread: Replace key_to_bucket Map with Dict/FoldDict/IntDict. 2020-02-04 12:21:29 -08:00
upgrade.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
upload.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
user_events.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
user_groups.js user_groups: Convert members from Dict to Set. 2020-01-16 13:23:47 -08:00
user_pill.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
user_status.js refactor: Use a Set for away_user_ids. 2020-01-14 17:52:25 +00:00
util.js compose: Improved warning for wildcard mentions. 2020-01-31 12:24:35 -08:00
vdom.js vdom: Support attribute updates. 2020-01-30 13:11:32 -08:00
voting_widget.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
widgetize.js poll-widget: Refactor comment to option. 2019-01-29 09:34:14 -08:00
zblueslip.js blueslip: Replace jQuery wrappers with error event listener. 2019-07-09 11:38:20 -07:00
zjquery.js zjsquery: Add data support. 2020-01-05 12:28:37 -08:00