You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-12-08] [$500] Web - App marks task as unread even when no changes are done #27296
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Open task report or raise new task report using any user and any title
Open Description
Without making any changes, click save and observe that task is marked unread
Expected Result:
Task should not be marked as unread if there is no change to any field
Actual Result:
Task is marked as unread even if there is no change to any field
Workaround:
Unknown
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: 1.3.68.13 Reproducible in staging?: y Reproducible in production?: y 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
changed the title [-]Web - App marks task as unread even when no changes are done[/-][+][$500] Web - App marks task as unread even when no changes are done[/+]on Sep 12, 2023
Please re-state the problem that we are trying to solve in this issue.
Task on the sidebar is marked as unread even if the task is saved with no changes made.
What is the root cause of that problem?
The editTaskAndNavigate function is calling the API even when there is no change in the current data and the updated data of the task.
What changes do you think we should make in order to solve the problem?
Before calling the EditTask API.write function, add a if condition that checks if there has been any change made in the previous state vs updated state of the Task. If not then avoid calling the API to update the task.
What alternative solutions did you explore? (Optional)
Most apps disable the Save button until any change has been made. We can write a logic to keep the Save button disabled, and only enable it when there is a change made in the values of the task.
📣 @iamuddeshya! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Activity
[-]Web - App marks task as unread even when no changes are done[/-][+][$500] Web - App marks task as unread even when no changes are done[/+]melvin-bot commentedon Sep 12, 2023
Job added to Upwork: https://www.upwork.com/jobs/~014012f6817510a0d1
melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to @kevinksullivan (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to @dylanexpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)iamuddeshya commentedon Sep 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Task on the sidebar is marked as unread even if the task is saved with no changes made.
What is the root cause of that problem?
The
editTaskAndNavigatefunction is calling the API even when there is no change in the current data and the updated data of the task.What changes do you think we should make in order to solve the problem?
Before calling the EditTask API.write function, add a if condition that checks if there has been any change made in the previous state vs updated state of the Task. If not then avoid calling the API to update the task.
App/src/libs/actions/Task.js
Line 478 in 54085f9
What alternative solutions did you explore? (Optional)
Most apps disable the Save button until any change has been made. We can write a logic to keep the Save button disabled, and only enable it when there is a change made in the values of the task.
melvin-bot commentedon Sep 12, 2023
📣 @iamuddeshya! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
118 remaining items
JmillsExpensify commentedon Dec 15, 2023
$500 payment approved for @sobitneupane based on this comment.
melvin-bot commentedon Dec 18, 2023
@hoangzinh, @sobitneupane, @stitesExpensify, @dylanexpensify Eep! 4 days overdue now. Issues have feelings too...
dylanexpensify commentedon Dec 20, 2023
nice! Will pay out reporter then close!
dylanexpensify commentedon Dec 22, 2023
@dhanashree-sawant offer sent!
melvin-bot commentedon Dec 26, 2023
@hoangzinh, @sobitneupane, @stitesExpensify, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
dhanashree-sawant commentedon Dec 28, 2023
Thanks @dylanexpensify, I have accepted the offer.
melvin-bot commentedon Dec 28, 2023
@hoangzinh, @sobitneupane, @stitesExpensify, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Jan 1, 2024
@hoangzinh, @sobitneupane, @stitesExpensify, @dylanexpensify 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
melvin-bot commentedon Jan 2, 2024
@hoangzinh, @sobitneupane, @stitesExpensify, @dylanexpensify 10 days overdue. I'm getting more depressed than Marvin.
dylanexpensify commentedon Jan 4, 2024
done!