-
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
Reset completedTaskReportActionID
to undefined
so it's not passed to the backend when not used
#51992
Reset completedTaskReportActionID
to undefined
so it's not passed to the backend when not used
#51992
Conversation
… to the backend when not used
completedTaskReportActionID
to undefined
so it's not passed…completedTaskReportActionID
to undefined
so it's not passed to the backend when not used
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@@ -3505,7 +3505,7 @@ function completeOnboarding( | |||
parentReportActionID: taskReportAction.reportAction.reportActionID, | |||
assigneeChatReportID: '', | |||
createdTaskReportActionID: taskCreatedAction.reportActionID, | |||
completedTaskReportActionID: completedTaskReportAction?.reportActionID ?? '-1', | |||
completedTaskReportActionID: completedTaskReportAction?.reportActionID ?? undefined, |
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.
Hi @francoisl This change is causing "402 Invalid task data, missing completedTaskReportActionID"
error on the latest main while selecting the "Chat and split expenses with friends"
onboarding option and completing the flow. Reverting the change back to '-1' does fix 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.
Here is a video
onboarding-error.mp4
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.
Yep, that's why the PR description says:
Note that this requires the backend change https://github.com/Expensify/Auth/pull/13028 in order not to reintroduce the same issue from #51395
That first internal PR hasn't been deployed yet. The issue will resolve itself once we deploy 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.
Oh, I see. I didn't fully read the description. Thanks for the explanation.
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.
No worries haha. If it's blocking you from testing something, feel free to temporarily revert that change back to -1
locally, but please don't commit it.
I expect that the backend changes should be deployed in the next 12 hours.
completedTaskReportActionID
to undefined
so it's not passed to the backend when not usedcompletedTaskReportActionID
to undefined
so it's not passed to the backend when not used
Taking CP Staging out of title b/c these changes already got to staging in #51983 somehow, which has the exact same change 🤷 |
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.0.58-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.58-2 🚀
|
Explanation of Change
Don't pass a
completedTaskReportActionID
in the payload to the commandCompleteGuidedSetup
for tasks that should not be created completed. This will prevent the backend from attempting to auto-complete tasks with the ID-1
(or'0'
or whatever value we would use)Note that this requires the backend change https://github.com/Expensify/Auth/pull/13028 in order not to reintroduce the same issue from #51395
Fixed Issues
Needed for https://github.com/Expensify/Expensify/issues/441575
Needed for #51969
Needed for #51980
Tests
CompleteGuidedSetup
doesn't include anycompletedTaskReportActionID
200
QA steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop