No configuration set, uses default []
- Lines 11-37: "creates an external user" Active user without groups publishes event
No configuration set, uses default []
Summary of this gist: after Michelle and I chatted about https://runway.powerhrg.com/backlog_items/FINC-3481?from=active_sprint, I asked a chat bot to summarize other places in nitro-web that might have the same behavior.
Many notifiers throughout the codebase are using relative paths (_path helpers or hardcoded paths) instead of fully qualified URLs when sending notifications via NotificationCenter.notify() or ConnectClient.message_user(). This causes issues when the notifications are sent through Connect messages, as the links don't include the domain.
What we want to validate on this page (the first two are the most important):
To answer those questions, here's how we should set these tests up:
| def new_query(params, current_user) | |
| begin | |
| # existing code from `new_query` | |
| rescue ActiveRecord::StatementInvalid => e | |
| binding.pry | |
| end | |
| end |
| const createRoom = (userIdForNewDM) => { | |
| enum Preset { | |
| PrivateChat = "private_chat", | |
| TrustedPrivateChat = "trusted_private_chat", | |
| PublicChat = "public_chat", | |
| } | |
| enum Visibility { | |
| Public = "public", | |
| Private = "private", | |
| } |
Edge cases:
With and without holds:
With and without loans, when it's an item with a borrow policy:
| $ jest /Users/greg/code/connect-rn/__tests__/components/Events/ContentRow.spec.js | |
| FAIL __tests__/components/Events/ContentRow.spec.js | |
| ● Test suite failed to run | |
| ReferenceError: XMLHttpRequest is not defined | |
| 56 | } | |
| 57 | | |
| > 58 | let hasonprogress = new XMLHttpRequest().onprogress === null | |
| | ^ |
notification_preview_enabled value is required, but it is undefined on this request.notification_preview_enabled value to true by default, and the value should change when it makes another request whenever the user changes the toggle on the app.[Thu Feb 25 2021 07:12:21.876] LOG AXIOS Request: {"adapter": [Function xhrAdapter], "data": {"connect_client_preference": {"app_uuid": "3ac5d1e6a71680fe", "device_type": "Google/Android SDK built for x86", "notification_preview_enabled": undefined}}, "headers": {"Accept": "application/json", "User-Agent": "Connect {\"app_id\":\"com.powerhrg.connect.dev\",\"build_number\":1,\"os_version\":27,\"device\":\"unknown\",\"os\":\"Android\"}", "common": {"Accept": "
| [3] pry(main)> Connect::Notification.summary_for(effective_user) | |
| => {:reactions=>0, | |
| :users=>{2=>19, 618=>17}, | |
| :rooms=> | |
| {138=>{:messages=>10, :mentions=>0, :mentions_direct=>0, :mentions_all=>0}, | |
| 1976=>{:messages=>1, :mentions=>1, :mentions_direct=>1, :mentions_all=>0}, | |
| 10278=>{:messages=>3, :mentions=>3, :mentions_direct=>2, :mentions_all=>1}, | |
| 10783=>{:messages=>23, :mentions=>0, :mentions_direct=>0, :mentions_all=>0}, | |
| 19319=>{:messages=>148, :mentions=>5, :mentions_direct=>0, :mentions_all=>5}, | |
| 23514=>{:messages=>130, :mentions=>13, :mentions_direct=>0, :mentions_all=>13}, |