-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2025-01-22] [$250] Status message not cleared after the specified "Clear after" date #53518
Comments
Triggered auto assignment to @MitchExpensify ( |
Please re-state the problem that we are trying to solve in this issue.Custom status is not cleared automatically, if the time defined is reached What is the root cause of that problem?It is not considered anywhere, it only clears if users manually clear it by clicking on the clearing status button. What changes do you think we should make in order to solve the problem?in the ProfilePage, add this useEffect:
and we may use this as well:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The status message with a "Clear after" date doesn't automatically clear after the specified date, leaving outdated information on the profile. What is the root cause of that problem?The component lacks logic to check and clear the status message after the "Clear after" date has passed. What changes do you think we should make in order to solve the problem?Solution:
App/src/pages/settings/Profile/ProfilePage.tsx
What alternative solutions did you explore? (Optional)
|
Job added to Upwork: https://www.upwork.com/jobs/~021864198631680121664 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The status message remains visible even after the "Clear after" date. What is the root cause of that problem?We don't have any logic to clear the status when the What changes do you think we should make in order to solve the problem?We should add a
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?I don't think we need to add a unit test in this case because the new logic is an What alternative solutions did you explore? (Optional) |
This should be fixed via BE Pusher updates. |
So you think this is an internal issue @shubham1206agra ? |
While I think frontend improvement is also necessary for offline use cases. |
@MitchExpensify Yes |
If you have a solution without setTimeout, feel free to propose it. |
@shubham1206agra Interesting! Would you mind sharing your concern about using setTimeout? I searched the codebase and found there's a similar use case in MapboxToken.ts Cc @nkdengineer |
@eh2077 This problem can be solved without |
@shubham1206agra Do you mean the BE pusher solution? But that won't help for offline use case right? |
I think we need both actually. The proposed solution is good for offline or if you happen to be online when your status expires. If your status expires and you're not online right away, we still need it to update for anyone who has a conversation with you, so that will require a BE change. There's a potential edge case I think that goes like this:
So think the actual solution is:
|
@rafecolton Excellent summary! For the edge case about managing updates from different devices (online and offline), there's an old similar issue #41911 and slack discussion
If the App calls the
So, this should be expected according to slack comment For frontend fix, I think we can go with @nkdengineer 's proposal. Just need to note
as suggested by @rafecolton 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sorry @eh2077 But I will give my 2 cents here We should just do conditional check on clearAfter date on FE, and this will help other people status which have clearAfter time. |
❌ There was an error making the offer to @nkdengineer for the Contributor role. The BZ member will need to manually hire the contributor. |
This issue has not been updated in over 15 days. @rlinoz, @MitchExpensify, @eh2077, @nkdengineer eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR is being reviewed, I am still trying to understand why the job is not always clearing the status though |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.85-4 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 2025-01-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@eh2077 @MitchExpensify @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Payment summary:
|
Payment Summary
BugZero Checklist (@MitchExpensify)
|
@nkdengineer https://www.upwork.com/nx/wm/offer/105842031 Offer here for payment |
@eh2077 can you please complete BZ steps? Thanks |
@eh2077 - bump |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:NA Test:
Do we agree 👍 or 👎 |
$250 approved for @eh2077 based on confirmed payment summary. |
@rlinoz, @MitchExpensify, @eh2077, @nkdengineer Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
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: 9.0.71-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @rafecolton
Slack conversation (hyperlinked to channel name): ts_external_expensify_bugs
Action Performed:
Expected Result:
The status message should be automatically cleared once the "Clear after" date is reached, ensuring timely updates to the display.
Actual Result:
The status message remains visible even after the "Clear after" date.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.816.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: