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 for payment 2023-07-24] [$1000] DEV: App crash when go to settings of public room #21759

Closed
6 tasks done
kavimuru opened this issue Jun 27, 2023 · 38 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed

Comments

@kavimuru
Copy link

kavimuru commented Jun 27, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open App
  2. Go to any public room (e.g. http://localhost:8080/r/8936976277251806)
  3. Open settings of public room

Expected Result:

App should not crash

Actual Result:

App crash when go to settings

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number:
Reproducible in staging?: DEV
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

AppCrash.mov

Expensify/Expensify Issue URL:
Issue reported by: @PrashantMangukiya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687760658520999

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01507221e6e9e02915
  • Upwork Job ID: 1676955027897794560
  • Last Price Increase: 2023-07-06
@kavimuru kavimuru added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kavimuru
Copy link
Author

Proposal

Please re-state the problem that we are trying to solve in this issue.

DEV: App crash when go to settings of public room

What is the root cause of that problem?

We are translating visibility description via this code:

<Text style={[styles.textLabelSupporting, styles.mt1]}>{this.props.translate(`newRoomPage.${this.props.report.visibility}Description`)}</Text>

Value for this.props.report.visibility comes as 'public_announce'. But we need only 'public' word. So this is the root cause of the problem.

What changes do you think we should make in order to solve the problem?

We have to remove value after _ as shown code below:

// <Text style={[styles.textLabelSupporting, styles.mt1]}>{this.props.translate(`newRoomPage.${this.props.report.visibility}Description`)}</Text> // *** OLD CODE ***
<Text style={[styles.textLabelSupporting, styles.mt1]}>{this.props.translate(`newRoomPage.${this.props.report.visibility.replace(/_.+/g, '')}Description`)}</Text> // *** UPDATED CODE ***

What alternative solutions did you explore? (Optional)

None

Result https://github.com/Expensify/App/assets/7823358/1af23bfa-1641-4326-9e4a-de5f0722a6c2

@hungvu193
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

DEV: App crash when go to settings of public room

What is the root cause of that problem?

We're translating the room description here:

<Text style={[styles.textLabelSupporting, styles.mt1]}>{this.props.translate(`newRoomPage.${this.props.report.visibility}Description`)}</Text>

For the room in this issue, the visibility props was public_announce so the translation key will be newRoomPage.public_announceDescription which didn't exist in our translation files, which caused the issue.
Screen Shot 2023-06-28 at 06 58 19

What changes do you think we should make in order to solve the problem?

Add the translation key for the missing key in our en.js es.js:

      newRoomPage: {
         public_announceDescription: 'Description for public announce room',
      }
      

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

@johncschuster Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

@johncschuster Still overdue 6 days?! Let's take care of this!

@johncschuster johncschuster added the External Added to denote the issue can be worked on by a contributor label Jul 6, 2023
@melvin-bot melvin-bot bot changed the title DEV: App crash when go to settings of public room [$1000] DEV: App crash when go to settings of public room Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01507221e6e9e02915

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Current assignee @johncschuster is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

@johncschuster
Copy link
Contributor

Not overdue. I was OOO for the holiday and have just come back.

@melvin-bot melvin-bot bot removed the Overdue label Jul 6, 2023
@Pujan92
Copy link
Contributor

Pujan92 commented Jul 6, 2023

Not able to reproduce

@PrashantMangukiya
Copy link
Contributor

I can still reproduce in Dev. In fact app crash in Dev, but in Staging instead of crash it will return translation key as shown in staging video.

Dev
21759-Dev.mov
Staging
21759-Staging.mov

@Santhosh-Sellavel
Copy link
Collaborator

Started a internal thread here

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@johncschuster
Copy link
Contributor

Following the internal thread

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Coming from here

As it is a different room type., We decided it's best we add a new key here. For now, let's just stick with the same value public room. So let's go with the @hungvu193 here, thanks!

C+ reviewed
🎀 👀 🎀

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Jul 17, 2023
@melvin-bot melvin-bot bot changed the title [$1000] DEV: App crash when go to settings of public room [HOLD for payment 2023-07-24] [$1000] DEV: App crash when go to settings of public room Jul 17, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.41-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-07-24. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

Issue is eligible for the urgency bonus

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@Santhosh-Sellavel] The PR that introduced the bug has been identified. Link to the PR:
  • [@Santhosh-Sellavel] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Santhosh-Sellavel] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Santhosh-Sellavel] Determine if we should create a regression test for this bug.
  • [@Santhosh-Sellavel] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 23, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@thienlnam We can skip the checklist here for the following reasons

  1. The room that causes the bug cannot be created from a new dot client. Refer here
  2. This is the PR which causes the regression. It will not be easy to capture as per statement 1 above.

We don't need a regression Test As well.

Let me know your thoughts, thanks!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 26, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@thienlnam bump for the above ☝️

@melvin-bot melvin-bot bot removed the Overdue label Jul 28, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@johncschuster Can you leave a comment mentioning the amount to be paid here so I can request payment on ND thanks!

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@thienlnam
Copy link
Contributor

Agree with you statement - no regression test needed

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@johncschuster
Copy link
Contributor

Summary of payments:

External issue reporter - @PrashantMangukiya - $250
Contributor that fixed the issue - @hungvu193 - $1500
Contributor+ that helped on the issue and/or PR - @Santhosh-Sellavel - $1500 - to be paid via NewDot

@johncschuster
Copy link
Contributor

I have issued payment for @hungvu193. @PrashantMangukiya, I have sent you an invite. Can you accept it? Thanks!

@PrashantMangukiya
Copy link
Contributor

@johncschuster invite accepted. Thank you.

@johncschuster
Copy link
Contributor

Paid! 🎉

@johncschuster
Copy link
Contributor

@JmillsExpensify

Summary of payments:

External issue reporter - @PrashantMangukiya - $250
Contributor that fixed the issue - @hungvu193 - $1500
Contributor+ that helped on the issue and/or PR - @Santhosh-Sellavel - $1500 - to be paid via NewDot

@Santhosh-Sellavel
Copy link
Collaborator

Requested on ND

@JmillsExpensify
Copy link

Reviewed details for @Santhosh-Sellavel. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot.

@melvin-bot melvin-bot bot added the Overdue label Aug 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 7, 2023

@johncschuster, @hungvu193, @thienlnam, @Santhosh-Sellavel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed
Projects
None yet
Development

No branches or pull requests

8 participants