-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[No QA] Search: Added Withdrawal ID to GROUP_BY
#66045
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
Changes from all commits
b30fd60
3c06c38
42a8066
1552a9b
80b5559
df31eeb
b533ead
20c276c
0093332
4a28993
b26ad48
44366b4
d480e38
43daef5
ed81387
18f1780
7ec3f9a
dd86667
0e2d9ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -503,6 +503,30 @@ type SearchCardGroup = { | |
| lastFourPAN: string; | ||
| }; | ||
|
|
||
| /** Model of withdrawal ID grouped search result */ | ||
| type SearchWithdrawalIDGroup = { | ||
| /** Withdrawal ID */ | ||
| entryID: number; | ||
|
|
||
| /** Number of transactions */ | ||
| count: number; | ||
|
|
||
| /** Total value of transactions */ | ||
| total: number; | ||
|
|
||
| /** Currency of total value */ | ||
| currency: string; | ||
|
|
||
| /** Masked account number */ | ||
| accountNumber: string; | ||
|
|
||
| /** Bank name */ | ||
| addressName: string; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is being handled in #66078 |
||
|
|
||
| /** When the withdrawal completed */ | ||
| debitPosted: string; | ||
| }; | ||
|
|
||
| /** Types of searchable transactions */ | ||
| type SearchTransactionType = ValueOf<typeof CONST.SEARCH.TRANSACTION_TYPE>; | ||
|
|
||
|
|
@@ -526,7 +550,7 @@ type SearchResults = { | |
| PrefixedRecord<typeof ONYXKEYS.COLLECTION.POLICY, SearchPolicy> & | ||
| PrefixedRecord<typeof ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS, TransactionViolation[]> & | ||
| PrefixedRecord<typeof ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS, ReportNameValuePairs> & | ||
| PrefixedRecord<typeof CONST.SEARCH.GROUP_PREFIX, SearchMemberGroup | SearchCardGroup>; | ||
| PrefixedRecord<typeof CONST.SEARCH.GROUP_PREFIX, SearchMemberGroup | SearchCardGroup | SearchWithdrawalIDGroup>; | ||
|
|
||
| /** Whether search data is being fetched from server */ | ||
| isLoading?: boolean; | ||
|
|
@@ -552,4 +576,5 @@ export type { | |
| SearchResultsInfo, | ||
| SearchMemberGroup, | ||
| SearchCardGroup, | ||
| SearchWithdrawalIDGroup, | ||
| }; | ||
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.
Whyd we remove all of these?
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.
I think because we can't select any transactions on these groups, since we don't return them?
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.
Yes that's the reason. The above code can't get tested until we start returning transaction and align on the export functionality (e.g. if you select a group that only lists 50 transactions but it have more than that, should we only export the 50? How can the user know what he is only downloading a portion of the data, etc.)