-
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
[$500] Android - Log-Unable to share log as tapping on conversation does not trigger any action #38209
Comments
Triggered auto assignment to @stephanieelliott ( |
@stephanieelliott I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Log-Unable to share log as tapping on conversation does not trigger any action What is the root cause of that problem?Here we return early if What changes do you think we should make in order to solve the problem?Create new report if there is not exist old one. To do that we can do below steps
What alternative solutions did you explore? (Optional)
|
Job added to Upwork: https://www.upwork.com/jobs/~01c66f93b0f705d0fa |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
Yea I think this may be a BE issue -- @situchan can you help me confirm? |
This is frontend issue |
@shahinyan11 does this happen only on android or all platforms? |
On all platforms |
In your ConversationActivity, you would then retrieve the log data:
|
📣 @Eros472! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to share log as tapping on conversation does not trigger any action. What is the root cause of that problem?When selecting a user with no existing report, the report ID in the App/src/pages/settings/AboutPage/ShareLogList/BaseShareLogList.tsx Lines 106 to 114 in f84219f
App/src/pages/settings/AboutPage/ShareLogList/index.native.tsx Lines 9 to 18 in f84219f
What changes do you think we should make in order to solve the problem?The report ID check can be removed.
Instead of having reportID in - const onAttachLogToReport = (reportID: string, filename: string) => {
+ const onAttachLogToReport = (option: OptionData, filename: string) => {
FileUtils.readFileAsync(
logSource,
filename,
(file) => {
- Report.addAttachment(reportID, file);
- const routeToNavigate = ROUTES.REPORT_WITH_ID.getRoute(reportID);
- Navigation.navigate(routeToNavigate);
+ if (!option.login) {
+ return;
+ }
+ Report.navigateToAndOpenReport([option.login], true, file)
},
() => {},
);
}; In navigateToAndOpenReport, we'll pass an option parameter file and then have the below logic after -function navigateToAndOpenReport(userLogins: string[], shouldDismissModal = true) {
+function navigateToAndOpenReport(userLogins: string[], shouldDismissModal = true, file: File = undefined) {
let newChat: ReportUtils.OptimisticChatReport | EmptyObject = {};
const participantAccountIDs = PersonalDetailsUtils.getAccountIDsByLogins(userLogins);
const chat = ReportUtils.getChatByParticipants(participantAccountIDs);
if (!chat) {
newChat = ReportUtils.buildOptimisticChatReport(participantAccountIDs);
}
const report = chat ?? newChat;
// We want to pass newChat here because if anything is passed in that param (even an existing chat), we will try to create a chat on the server
openReport(report.reportID, userLogins, newChat);
+ if (file && report.reportID) {
+ addAttachment(report.reportID, file, '');
+ }
if (shouldDismissModal) {
Navigation.dismissModalWithReport(report);
} else {
Navigation.navigateWithSwitchPolicyID({route: ROUTES.HOME});
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID));
}
} The above was for the web code.
|
Closing this based on the updated guidance, I think this is somewhat low ROI and can be fixed later when we move to the polish phase. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.51
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4422072
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
In search page, tapping on a conversation user must be directed to conversation page and logs must be sent as an attachment.
Actual Result:
In search page, tapping on a conversation does not trigger any action. User is not navigated to conversation page showing logs sent as an attachment.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6411980_1710314637190.ah.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: