-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22008 from Expensify/report-lastactor-migration
Remove all uses of report.lastActorEmail
- Loading branch information
Showing
10 changed files
with
83 additions
and
69 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ export default () => ({ | |
lastVisibleActionCreated: '2022-08-01 20:49:11', | ||
lastMessageTimestamp: 1659386951000, | ||
lastMessageText: 'Say hello\ud83d\ude10', | ||
lastActorEmail: '[email protected]', | ||
lastActorAccountID: 10773236, | ||
notificationPreference: 'always', | ||
stateNum: 0, | ||
statusNum: 0, | ||
|
This file contains 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ describe('actions/Report', () => { | |
notificationPreference: 'always', | ||
lastVisibleActionCreated: '2022-11-22 03:48:27.267', | ||
lastMessageText: 'Testing a comment', | ||
lastActorEmail: TEST_USER_LOGIN, | ||
lastActorAccountID: TEST_USER_ACCOUNT_ID, | ||
}, | ||
}, | ||
{ | ||
|
@@ -195,7 +195,6 @@ describe('actions/Report', () => { | |
|
||
const USER_1_LOGIN = '[email protected]'; | ||
const USER_1_ACCOUNT_ID = 1; | ||
const USER_2_LOGIN = '[email protected]'; | ||
const USER_2_ACCOUNT_ID = 2; | ||
return Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${REPORT_ID}`, {reportName: 'Test', reportID: REPORT_ID}) | ||
.then(() => TestHelper.signInWithTestUser(USER_1_ACCOUNT_ID, USER_1_LOGIN)) | ||
|
@@ -216,7 +215,7 @@ describe('actions/Report', () => { | |
reportID: REPORT_ID, | ||
notificationPreference: 'always', | ||
lastMessageText: 'Comment 1', | ||
lastActorEmail: USER_2_LOGIN, | ||
lastActorAccountID: USER_2_ACCOUNT_ID, | ||
lastVisibleActionCreated: reportActionCreatedDate, | ||
lastMentionedTime: reportActionCreatedDate, | ||
lastReadTime: DateUtils.subtractMillisecondsFromDateTime(reportActionCreatedDate, 1), | ||
|
@@ -359,7 +358,7 @@ describe('actions/Report', () => { | |
reportID: REPORT_ID, | ||
notificationPreference: 'always', | ||
lastMessageText: 'Current User Comment 3', | ||
lastActorEmail: '[email protected]', | ||
lastActorAccountID: 1, | ||
lastVisibleActionCreated: reportActionCreatedDate, | ||
lastReadTime: reportActionCreatedDate, | ||
}, | ||
|
This file contains 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