Skip to content

Boolean Offline Status #9020

Closed
Closed

Description

@roryabraham

This issue is intended to be the sole issue associated with the Boolean Offline Status design doc.

Please reference the document for the complete problem statement and detailed implementation plan.

Problem

Parts of our app are reliant upon a 3rd-party service called Pusher to communicate with our servers in real-time. There are a couple scenarios where the app may have an internet connection but still be unable to receive data from Pusher, for example:

  • You are connected to the Pusher service but not subscribed to your user channel
  • The Pusher service is down

In these scenarios, we currently have an inconsistent UX, where those parts of our app that are reliant upon Pusher (eg. "user is typing", comments being edited, etc.) won't work as expected, while others will. This will be confusing for users.

Solution

Implement Boolean Offline Status according to the following logic:

If you are authenticated with Expensify (have an authToken), you are considered online if and only if:

  • You have an internet connection (determined by NetInfo), AND
  • You are connected to Pusher, AND
  • You are subscribed to your private user Pusher channel

If you are NOT authenticated with Expensify (do not have an authToken), you are considered online if and only if:

  • You have an internet connection (determined by NetInfo), AND
  • You are connected to Pusher

If you are not online, you’re offline. Period.

Outstanding Issues:

Activity

  1. added
    Weekly
    Improvement
    on May 14, 2022
  2. self-assigned this
    on May 14, 2022
  3. JmillsExpensify commented on May 17, 2022

    @JmillsExpensify
    Contributor

    Commenting so this hits my participating filter.

  4. roryabraham commented on May 17, 2022

    @roryabraham
    ContributorAuthor

    Pro-tip – you can also just press Subscribe/Unsubscribe on the side 😄

    image

  5. roryabraham commented on May 18, 2022

    @roryabraham
    ContributorAuthor

    Putting this on HOLD per this slack thread

  6. changed the title [-]Boolean Offline Status[/-] [+][HOLD] Boolean Offline Status[/+] on May 18, 2022
  7. JmillsExpensify commented on May 23, 2022

    @JmillsExpensify
    Contributor

    @roryabraham Yeah unfortunately that doesn't work for the "participating" filter in GitHub's native inbox. Thanks though!

  8. JmillsExpensify commented on May 23, 2022

    @JmillsExpensify
    Contributor

    More importantly though, are we still on hold?

  9. changed the title [-][HOLD] Boolean Offline Status[/-] [+]Boolean Offline Status[/+] on May 31, 2022
  10. roryabraham commented on May 31, 2022

    @roryabraham
    ContributorAuthor

    Got a draft PR up, just need to spend a bit more time testing it and working on the PR writeup before it will be ready for review: #9230

  11. 34 remaining items

  12. JmillsExpensify commented on Nov 9, 2022

    @JmillsExpensify
    Contributor

    I almost think we should close this one. It's not really a priority, right? We can always come back to this, but I don't really think it fits within WAQ and it doesn't make total sense in the N07-N10 parts of the roadmap in my opinion. @roryabraham curious for your thoughts.

  13. roryabraham commented on Nov 11, 2022

    @roryabraham
    ContributorAuthor

    We could, but I like keeping it open as a monthly for now. I also think that implementing this will be a bit simpler once this proposal is implemented

  14. JmillsExpensify commented on Nov 11, 2022

    @JmillsExpensify
    Contributor

    Ok, cool. Thinking more on this, you're right. We still need to do this. I was also probably too wrapped up in the specific implementation of boolean offline status, and where it fits. Assigning myself as well to keep it top of mind.

  15. changed the title [-]Boolean Offline Status[/-] [+][HOLD WAQ] Boolean Offline Status[/+] on Nov 22, 2022
  16. JmillsExpensify commented on Nov 22, 2022

    @JmillsExpensify
    Contributor

    Added the WAQ hold for clarity.

  17. JmillsExpensify commented on Dec 12, 2022

    @JmillsExpensify
    Contributor

    Still on hold for WAQ.

  18. changed the title [-][HOLD WAQ] Boolean Offline Status[/-] [+]Boolean Offline Status[/+] on Jan 11, 2023
  19. JmillsExpensify commented on Jan 11, 2023

    @JmillsExpensify
    Contributor

    No longer on hold for WAQ, but still not a priority in my book.

  20. roryabraham commented on Feb 13, 2023

    @roryabraham
    ContributorAuthor

    No update

  21. JmillsExpensify commented on Feb 15, 2023

    @JmillsExpensify
    Contributor

    Out of curiosity, I wonder if we should consider this one for the "buddy" process?

  22. roryabraham commented on Mar 14, 2023

    @roryabraham
    ContributorAuthor

    Chatted with @JmillsExpensify, we're just going to close this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MonthlyNewFeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions