-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$125] Delete card transactions when "allow deleting transactions" is disabled on card feed #54389
Comments
Triggered auto assignment to @kadiealexander ( |
Just noting that I'll be OOO until Jan 6th, not reassigning given most people will be out but please tag someone online from the bug zero team if any urgent action is needed! |
I would love to help on this issue as C+ |
@DylanDylann not sure if there is much to do for you here |
@mountiny, @kadiealexander, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Havent got around yet |
@mountiny, @kadiealexander, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@mountiny @kadiealexander @DylanDylann this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@mountiny, @kadiealexander, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
On my list |
Will start looking tomorrow |
@robertjchen Does this feature already exist on oldDot? Do we currently store it at feed level? When scraping, do we currently store it a transaction level? If it's all new, did we already decide on where the deletable state should be stored at feed and transaction level? Thanks! |
I couldn't reproduce. I connected my corporate card, then toggled off @joekaufmanexpensify Are you sure you toggled "allow deleting transactions" off BEFORE the transactions got imported? Settings apply only for transactions imported after the setting was set. |
Actually discussing this one in here with @joekaufmanexpensify https://expensify.slack.com/archives/C07HPDRELLD/p1736538317020839 I thin there might be a bug in the default value we use in App as the default value in backend is |
@mountiny As I see, this is the condition to display "Delete expense" button Line 1978 in 12f4847
And I don't see any condition that relates to |
@nkuoch, @mountiny, @kadiealexander, @DylanDylann Huh... This is 4 days overdue. Who can take care of this? |
But Nathalie for example could not see the button |
I think the conclusion from Slack that we want to change the default to be corporate. I would treat that as a separate issue though as we will need to update it across stack and for oldDot too - will require more testing. In the meantime, I would update the App code to correctly treaty default (no |
Job added to Upwork: https://www.upwork.com/jobs/~021879495944828519700 |
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new. |
Upwork job price has been updated to $125 |
I will create a proposal here if there are no contributors post proposal in a day |
Here's the approach that I plan to follow for this issue in your app. Technical Approach:Identify the Source of the Bug: Review the conditional logic in the front-end React Native components responsible for rendering the delete option. ### Front-End Fix: Locate the component that displays the delete button (likely in the transaction detail view). ### Back-End Validation: Enhance the API endpoint that handles transaction deletion to double-check the "enable delete transaction" setting server-side. Write unit tests for the front-end components to validate that the delete button is hidden when the setting is off. I hope this makes sense. Contributor Details |
📣 @saadi123! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Delete card transactions when "allow deleting transactions" is disabled on card feed What is the root cause of that problem?We are activating the 'allow deleting transactions' button when
What changes do you think we should make in order to solve the problem?We should change this condition to cover also the case where
Line 1978 in 12f4847
Optional: if we want to hide the delete expense button then we can update the function Line 1978 in 12f4847
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@nkuoch @mountiny @kadiealexander @DylanDylann this issue is now 4 weeks old, please consider:
Thanks! |
Let's go with @nkdengineer 🎀 👀 🎀 C+ Reviewed |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Context
Third-party workspace card feeds in NewDot have an "allow deleting transactions" toggle on the feed settings. You should not be able to delete any card transactions imported while it was deleted. Similarly, you should be able to delete any transactions imported while it is enabled. The rule only applies to new transactions, eg: if you import transactions while this is disabled and later enable it, those past transactions can't be deleted and vice versa.
Problem
As discussed here, you can currently delete card transactions imported when this toggle is disabled, counter to how this feature is supposed to work.
2024-12-19_13-52-37.mp4
Solution
the default value for liabilityType (even when not saved in the JSON) should be
personal
for now.Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: