-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix: Expenses moved to Self DM, display a Join button on top of report #76043
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
Merged
+38
−16
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f1bc53d
Expenses moved to Self DM, display a Join button on top of report
nkdengineer f094cea
Merge branch 'main' into fix/74897
nkdengineer 1fa8e2b
implement isTrackExpenseReportNew function
nkdengineer a18adbc
remove parentReportAction getting from Onyx
nkdengineer 0062dd7
Merge branch 'main' into fix/74897
nkdengineer 63dfb15
mark isTrackExpenseReport deprecated
nkdengineer f1952de
fix eslint
nkdengineer eee3bce
fix eslint
nkdengineer 96810cf
add dependency
nkdengineer 0b901e8
disable deprecated lint
nkdengineer e4be804
disable lint
nkdengineer 2e331c5
resolve conflict
nkdengineer a867b08
resolve conflict
nkdengineer 25dcb4c
fix lint
nkdengineer dcc2f9b
remove unnecessary dependency
nkdengineer 1cbdd80
fix lint
nkdengineer 45d96c0
Merge branch 'main' into fix/74897
nkdengineer 4d1b4e2
make parentReport as require parameter
nkdengineer 48ae36c
resolve conflict
nkdengineer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pecanoro Is this fine to do? The current
isTrackExpenseReportuses values from theOnyx.connect()method, and we want to avoid using those functions. UpdatingisTrackExpenseReportto use values passed from the UI can be complex and time-consuming. Let me know what you think about this.Slack thread: https://expensify.slack.com/archives/C02NK2DQWUX/p1759913248186279
cc: @DylanDylann
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nkdengineer @Krishna2323
isTrackExpenseReportfunction don't cause regression?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because you created a new function, we will need to migrate to this new function in other places later. But in the new function, you updated the logic. This update can cause regression in other places but we can't see that here because you only use isTrackExpenseReportNew in one place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a better way to check the selfDM, so I don't think it can cause any regression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DylanDylann, I think that's a better approach and has very low chances of causing regression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nkdengineer could you please mark the old function as deprecated so it’s clear that we shouldn’t use it anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the plan to remove the other function? Do we need to create a new issue so someone can handle it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pecanoro We can create a new issue for this. Happy to handle this if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pecanoro Do we want to create a new issue for this?