-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 on regression test ] Workspace - Crash when removing a user offline in Manage members #13508
Comments
Triggered auto assignment to @stephanieelliott ( |
ProposalThis is a regression from #13398, especially this change: so crash happens on these 2 lines: App/src/components/OptionRow.js Lines 85 to 86 in 10dd188
When offline, props.style is set like this:So {} inside [] inside [] in style doesn't work and it crashes on web
Solution: - const displayNameStyle = [styles.optionDisplayName, ...textUnreadStyle, props.style];
+ const displayNameStyle = StyleSheet.flatten([styles.optionDisplayName, ...textUnreadStyle, props.style]);
- const alternateTextStyle = [textStyle, styles.optionAlternateText, styles.textLabelSupporting, props.style];
+ const alternateTextStyle = StyleSheet.flatten([textStyle, styles.optionAlternateText, styles.textLabelSupporting, props.style]); or we can use original code which uses StyleUtils.combineStyles: - const displayNameStyle = [styles.optionDisplayName, ...textUnreadStyle, props.style];
+ const displayNameStyle = StyleUtils.combineStyles([styles.optionDisplayName, ...textUnreadStyle], props.style);
- const alternateTextStyle = [textStyle, styles.optionAlternateText, styles.textLabelSupporting, props.style];
+ const alternateTextStyle = StyleUtils.combineStyles([textStyle, styles.optionAlternateText, styles.textLabelSupporting], props.style); |
@situchan thanks!, that indeed seems to be the cause and what you proposed fixes it. I wondering a bit now when do we choose to use |
Ready for review: #13525 |
The CP PR passed QA. Removing deploy blocker label. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.38-6 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 2022-12-20. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.39-0 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 2022-12-22. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
@kbecciv was this issue catch while running the test suite or doing QA? |
Erm this was fixed internally, no payments needed here! Will leave this open til we've agreed on how to handle the regression test -- I've started the discussion for the test case here: https://expensify.slack.com/archives/C01SKUP7QR0/p1671741994888809 |
I appreciate if I can get compensation here since I found the exact root cause and my solution was used. |
@stephanieelliott, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hey @situchan, thanks for raising that point! Chatted with @aldo-expensify and we agree that your comment did help save us quite a bit of time with the investigation. I created an Upwork job to pay you out for this, can you please claim it when you get a chance? https://www.upwork.com/jobs/~01d6c0e9c64b2148e8 |
@stephanieelliott applied. Thank you |
@stephanieelliott accepted your offer |
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:
Expected Result:
User expects the name to get crossed out and then afterwards removed when the connection is reestablished.
Actual Result:
The app crashes
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.38.0
Reproducible in staging?: Yes
Reproducible in production?: No
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5858097_Crash_after_removing_offline.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: