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

HIGH: 'Chat report' title shows for thread comment push notifications #28108

Closed
2 of 6 tasks
Julesssss opened this issue Sep 25, 2023 · 34 comments
Closed
2 of 6 tasks

HIGH: 'Chat report' title shows for thread comment push notifications #28108

Julesssss opened this issue Sep 25, 2023 · 34 comments
Assignees
Labels
Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2

Comments

@Julesssss
Copy link
Contributor

Julesssss commented Sep 25, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  • Within a room or chat, send a message as userA
  • As userB, reply within the thread
  • As userA, look at the push notification that you receive

Expected Result:

  • The notification title should be <original_message>

Actual Result:

  • The notification title is Chat Report
Room Thread
291860676-385e537a-7585-44c4-b027-9ec63a1da373 Screenshot_20230925-122327

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: v1.3.73-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: ME
Slack conversation: N/A

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a906e67be084d98b
  • Upwork Job ID: 1706164911894806528
  • Last Price Increase: 2023-09-25
Issue OwnerCurrent Issue Owner: @Julesssss
@Julesssss Julesssss added Engineering Daily KSv2 Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. labels Sep 25, 2023
@Julesssss Julesssss self-assigned this Sep 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

@melvin-bot melvin-bot bot added the Weekly KSv2 label Sep 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01a906e67be084d98b

@melvin-bot melvin-bot bot removed the Daily KSv2 label Sep 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @narefyev91 (Internal)

@Julesssss
Copy link
Contributor Author

I'm going to ignore iOS notifications for now, as they don't even show the room/group title. I'll take the question of how iOS notifications should look to #design:

🤮🤮🤮🤮

61709891-FE4B-477F-8C1B-E0EF0AB6ECD3-2023-09-25 04_35_35 039 AC3992B8-4699-44F3-8592-8010C4467B86-2023-09-25 04_35_38 807

@Julesssss Julesssss changed the title Display the thread title in thread-reply push notifications [Android] Display the thread title in thread-reply push notifications Sep 25, 2023
@trjExpensify
Copy link
Contributor

Are you working on this Jules, yeah?

@Julesssss
Copy link
Contributor Author

Are you working on this Jules, yeah?

Yeah.

@Julesssss
Copy link
Contributor Author

I need to do the following:

  • Figure out where we are setting the NVP_PARENT_REPORT_ACTION_ID rNVP
  • In the same place, use Report::setNameValuePair(db, finalReportID, Report::NVP_PARENT_REPORT_ID, to_string(parentReportID)); to persist the parentReportActionID to the report
  • This will allow me to retrieve the parentReport from within the push notification logic, and then FINALLY i will be able to get the thread message...

@Julesssss
Copy link
Contributor Author

On second thoughts, we'll need a new auth function to lookup the parentReportID...

  • We'll need to do create a new Auth function for retrieving the parent report
  • I'll use Auth::getParentReportDetails to get the report

@Julesssss
Copy link
Contributor Author

Made progress today, but I'm holding to work on a wave 4 issue.

Branches in Web-E & Auth: jules-implementGetParentReportDetails

@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2023
@Julesssss
Copy link
Contributor Author

Held for a few weeks while I focus on wave projects.

@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 12, 2023
@Julesssss
Copy link
Contributor Author

Still held

@melvin-bot melvin-bot bot removed the Overdue label Oct 13, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2023
@Julesssss
Copy link
Contributor Author

Still held on wave issues

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 31, 2023
@Julesssss
Copy link
Contributor Author

Same as above.

@Julesssss Julesssss changed the title Thread push notification displays with generic 'Chat report' title 'Chat report' title shows for thread comment push notifications Jan 31, 2024
@Julesssss
Copy link
Contributor Author

I took a look at this again recently, and I have a WIP PR where I'm working on the solution.

@melvin-bot melvin-bot bot removed the Overdue label Feb 2, 2024
@quinthar
Copy link
Contributor

quinthar commented Feb 5, 2024

Let's add this as HIGH to VIP-VSB. @Julesssss can you give an ETA for completion?

Also, what is the final proposal? I don't think it should say Thread: ... -- we don't use that anywhere. Let's just copy the same exact subject line that we use for emails, explained here: #33579 (comment)

@quinthar quinthar changed the title 'Chat report' title shows for thread comment push notifications HIGH: 'Chat report' title shows for thread comment push notifications Feb 5, 2024
@Julesssss
Copy link
Contributor Author

ETA a few days, as I'm close to finishing my current wave 5 issue.

Also, what is the final proposal? I don't think it should say Thread: ... -- we don't use that anywhere.

Ah that was an old proposal, updated. We'll match web/Desktop

@Julesssss
Copy link
Contributor Author

I made progress on this today. I'll submit the draft PR tomorrow after I make some final fixes and fully test it.

@Julesssss
Copy link
Contributor Author

Today I fixed CI issues and tested the solution. All is well except for thread comments made against unpaid IOU requests.

I need to detect the difference between these reportActions and then find a different solution for retrieving the thread title.

@Julesssss
Copy link
Contributor Author

Yesterday I had to switch focus to handle a fire.

Today I am holding temporarily as we might change how notification delivery works.

@quinthar
Copy link
Contributor

quinthar commented Feb 9, 2024

@rlinoz is handling the email portion, @Julesssss can you take the push notification part?

@quinthar
Copy link
Contributor

quinthar commented Feb 9, 2024

Moving to CRITICAL as this is really just an offshot.

@quinthar quinthar moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Feb 9, 2024
@quinthar quinthar changed the title HIGH: 'Chat report' title shows for thread comment push notifications CRITICAL: 'Chat report' title shows for thread comment push notifications Feb 9, 2024
@quinthar quinthar moved this from CRITICAL to HIGH in [#whatsnext] #vip-vsb Feb 13, 2024
@quinthar quinthar changed the title CRITICAL: 'Chat report' title shows for thread comment push notifications HIGH: 'Chat report' title shows for thread comment push notifications Feb 13, 2024
@Julesssss
Copy link
Contributor Author

can you take the push notification part?

@quinthar no problem.

The original issue is fixed, but is now blocked (issue) because a recent PR broke the push notification header/title. I'm working on a separate fix for that today.

@Julesssss
Copy link
Contributor Author

Debugging is extremely slow here as I'm waiting 30 minutes for every build to compile...

I have a couple of potential causes but will need more time tomorrow to confirm them before I can work on a solution.

@Julesssss Julesssss changed the title HIGH: 'Chat report' title shows for thread comment push notifications [BLOCKED: 36412] HIGH: 'Chat report' title shows for thread comment push notifications Feb 13, 2024
@Julesssss Julesssss changed the title [BLOCKED: 36412] HIGH: 'Chat report' title shows for thread comment push notifications HIGH: 'Chat report' title shows for thread comment push notifications Feb 13, 2024
@Julesssss
Copy link
Contributor Author

End of day update: The original Web-E PR almost ready for review. I just need to fix a flakey test failure tomorrow.

@Julesssss
Copy link
Contributor Author

Still blocked. The flakey test failure is widespread. We're looking into solutions.

@Julesssss
Copy link
Contributor Author

PR is now in review, the flakey test has been resolved.

@Julesssss Julesssss added the Reviewing Has a PR in review label Feb 14, 2024
@Julesssss
Copy link
Contributor Author

Merged, awaiting deployment to prod

@quinthar
Copy link
Contributor

quinthar commented Mar 5, 2024

Is this done? Can we close it?

@Julesssss
Copy link
Contributor Author

Is this done? Can we close it?

Yep, closing.

@github-project-automation github-project-automation bot moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

4 participants