Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hold Web-E 30480] Added chronosInCash beta #2065

Merged
merged 8 commits into from
Apr 26, 2021
Merged

Conversation

deetergp
Copy link
Contributor

@deetergp deetergp commented Mar 25, 2021

PullerBear chooses @thienlnam

Held on https://github.com/Expensify/Web-Expensify/pull/30480. I could probably just pull the beta bits out of that PR, and just commit them on their own.

cc @flodnv @marcaaron

Details

Added a beta to Web and E.cash to prevent non-beta users from being able to chat with Chronos.

Related Issues

Tests

  1. Fliped the boolean on this line to false.
  2. Used Betatify to add the chronosInCash beta to my scott.hasbeta@deetfoo.com
    • Betatify seemed broken locally, so I added the beta here and it worked fine
  3. Logged in as scott.hasbeta@deetfoo.com
  4. Typed chronos@expensify.com and verified that the user appeared as someone I could start a chat with.
    Screen Shot 2021-04-07 at 4 19 23 PM
  5. Logged out
  6. Logged in as scott.hasnobeta@deetfoo (stashing the change to line 218)
  7. Performed step 4 and verified that I did not have the option to begin a chat with Chronos
    Screen Shot 2021-04-07 at 4 20 17 PM

I performed these same steps on all platforms.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screen Shot 2021-04-07 at 5 27 04 PM

Screen Shot 2021-04-07 at 5 26 42 PM

Mobile Web

Desktop

Screen Shot 2021-04-07 at 4 19 23 PM

Screen Shot 2021-04-07 at 4 20 17 PM

iOS

Screen Shot 2021-04-07 at 4 29 37 PM

Screen Shot 2021-04-07 at 4 23 31 PM

Android

Screen Shot 2021-04-07 at 4 38 12 PM

Screen Shot 2021-04-07 at 4 40 53 PM

@deetergp deetergp requested a review from a team as a code owner March 25, 2021 00:44
@deetergp deetergp self-assigned this Mar 25, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@botify botify requested review from MariaHCD and removed request for a team March 25, 2021 00:45
@deetergp deetergp removed the request for review from MariaHCD March 25, 2021 00:45
@deetergp
Copy link
Contributor Author

Removing the request for @MariaHCD to review since this is a WIP that I won't get back to till Monday.

@deetergp
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@deetergp
Copy link
Contributor Author

deetergp commented Apr 7, 2021

In order to test this, I need to apply this diff:

diff --git a/lib/BetaManager.php b/lib/BetaManager.php
index 1395d91b563..6ee283adcd5 100644
--- a/lib/BetaManager.php
+++ b/lib/BetaManager.php
@@ -83,7 +83,7 @@ class BetaManager
      *
      * @var bool
      */
-    private static $allBetasEnabled = true;
+    private static $allBetasEnabled = false;

     /**
      * This property only is used while on DEBUG mode, it indicates if a beta is enabled or not. Mostly for testing.

@deetergp deetergp force-pushed the scott_addChronosToWeb branch from f9dba58 to 652b494 Compare April 7, 2021 23:09
@deetergp deetergp requested a review from a team April 8, 2021 00:30
@deetergp deetergp changed the title [WIP] Added chronosInCash beta [Hold Web-E 30480] Added chronosInCash beta Apr 8, 2021
@MelvinBot MelvinBot requested review from thienlnam and removed request for a team April 8, 2021 00:30
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but had a couple of comments.

Do we also want to avoid having chronos@expensify.com show up as a user in the personalDetails array returned from getOptions()?

@deetergp
Copy link
Contributor Author

deetergp commented Apr 9, 2021

Updated!

marcaaron
marcaaron previously approved these changes Apr 9, 2021
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

thienlnam
thienlnam previously approved these changes Apr 9, 2021
@deetergp deetergp dismissed stale reviews from thienlnam and marcaaron via 1688f85 April 22, 2021 21:51
@deetergp
Copy link
Contributor Author

Updated to resolve some merge conflicts and some master vs. main confusion.

@thienlnam
Copy link
Contributor

This can be merged once the pending PR is on production right?

@deetergp
Copy link
Contributor Author

I don't think anything bad would happen if we merged this now, but I'm not 100% sure about it, so we might as well play it safe and wait.

@thienlnam thienlnam merged commit ba700bf into main Apr 26, 2021
@thienlnam thienlnam deleted the scott_addChronosToWeb branch April 26, 2021 19:31
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.31-1🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented May 8, 2021

🚀 Deployed to production in version: 1.0.39-5🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants