Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@parasharrajat 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] |
|
Assigning @DylanDylann since this is related to the to-do counters project |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a6ec1daddc
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const label = originalMessage?.label; | ||
| // It's possible for originalMessage?.markedManually to be `false`, but the report is still has a valid automatic export. | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| const isValidExport = originalMessage?.markedManually || (label && validExportLabels.has(label) && originalMessage?.type !== CONST.EXPORT_TEMPLATE); |
There was a problem hiding this comment.
Ignore optimistic export actions when determining success
Treating any labeled EXPORTED_TO_INTEGRATION action as a successful export causes failed exports to be misclassified in the fallback path. exportToIntegration() always adds an optimistic export action with a valid label before the API result, and on failure an INTEGRATIONS_MESSAGE is added while that export action remains (src/libs/actions/Report/index.ts), so this condition now returns true for a failed attempt that previously returned false. That affects code paths still using action-based fallback (for example src/pages/inbox/report/ReportDetailsExportPage.tsx and isPrimaryPayAction in src/libs/ReportPrimaryActionUtils.ts) or reports where isExportedToIntegration is absent, which can hide export-failure behavior and incorrectly treat reports as already exported.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
While that makes sense, I copied over the BE logic so the new logic should align with what the server does.
JmillsExpensify
left a comment
There was a problem hiding this comment.
In align with product spec
|
@luacmartins I think the report param should not be marked as optional. This seems to be a missed spot App/src/libs/ReportPrimaryActionUtils.ts Line 191 in a93a316 |
|
@luacmartins The test coverage has dropped due to our changes. Could you update the unit tests? |
Reviewer Checklist
|
|
@luacmartins Before merging, could we have QA test this change on an ad-hoc build first? |
|
@cristipaval 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] |
|
🎯 @DylanDylann, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #82484. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.21-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.21-4 🚀
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
Explanation of Change
Aligns the export condition with BE logic.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/594467
Tests
Exportcount is at 0 and no incorrect expenses are shownOffline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari