Adding reportActionID client generation#10519
Conversation
|
|
||
| const parameters = { | ||
| reportID, | ||
| reportActionID: reportCommentAction.reportActionID, |
There was a problem hiding this comment.
I think we'll also want to add commentReportActionID: reportCommentAction.reportActionID
There was a problem hiding this comment.
I've added a conditional to guarantee we're using the right reportActionID in case we have attachments
Co-authored-by: Rory Abraham <47436092+roryabraham@users.noreply.github.com>
|
Triggered auto assignment to @cristipaval ( |
|
@roryabraham looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
Not an emergency, tests were passing |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by @roryabraham in version: 1.1.90-0 🚀
|
|
QA passed |
Details
Using NumberUtils.rand64() to generate reportActionId on client, changed references from clientId to sequenceNumber.
This is blocked on merge of NumberUtils.rand64();
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/224231
Tests / QA Steps
Just text:
AddCommentwas madereportActionIDis being sent for each messageText and image
AddAttachmentwas made andreportActionIDandcommentReportActionIDare different in the requestJust image
AddAttachmentwas made andreportActionIdis filled andcommentReportActionIDis nullPR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)