Skip to content

[CP Staging] Revert #78634 #80318

Merged
mountiny merged 1 commit intomainfrom
revert-78634-feat/visible-report-actions-derived
Jan 23, 2026
Merged

[CP Staging] Revert #78634 #80318
mountiny merged 1 commit intomainfrom
revert-78634-feat/visible-report-actions-derived

Conversation

@mjasikowski mjasikowski requested review from a team as code owners January 23, 2026 08:58
@melvin-bot melvin-bot bot requested review from JmillsExpensify and inimaga and removed request for a team January 23, 2026 08:58
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Jan 23, 2026

@inimaga 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]

@mjasikowski mjasikowski changed the title Revert "new Onyx Derived Value VISIBLE_REPORT_ACTIONS" [CP Staging] Revert #80318 Jan 23, 2026
@mjasikowski mjasikowski changed the title [CP Staging] Revert #80318 [CP Staging] Revert #78634 Jan 23, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2026

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.

Files with missing lines Coverage Δ
src/ONYXKEYS.ts 100.00% <ø> (ø)
...tachments/AttachmentCarousel/extractAttachments.ts 70.83% <100.00%> (+0.24%) ⬆️
src/components/LHNOptionsList/LHNOptionsList.tsx 87.34% <100.00%> (+8.77%) ⬆️
src/components/LHNOptionsList/OptionRowLHNData.tsx 86.36% <ø> (+3.75%) ⬆️
src/components/ParentNavigationSubtitle.tsx 78.78% <100.00%> (+21.21%) ⬆️
src/components/Search/SearchAutocompleteList.tsx 32.01% <ø> (-0.20%) ⬇️
src/hooks/useSearchSelector.base.ts 0.00% <ø> (-20.00%) ⬇️
src/libs/SearchUIUtils.ts 59.86% <100.00%> (+44.61%) ⬆️
src/libs/SidebarUtils.ts 79.91% <100.00%> (+0.51%) ⬆️
...rc/libs/actions/OnyxDerived/ONYX_DERIVED_VALUES.ts 100.00% <ø> (ø)
... and 11 more
... and 165 files with indirect coverage changes

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f741c4b78

ℹ️ 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".

Comment on lines 118 to +120
const actions = [...(parentReportAction ? [parentReportAction] : []), ...getSortedReportActions(Object.values(reportActions ?? {}))];
for (const action of actions) {
if (!isReportActionVisible(action, reportID, canUserPerformAction, visibleReportActionsData) || isMoneyRequestAction(action)) {
for (const [key, action] of actions.entries()) {
if (!shouldReportActionBeVisible(action, key, canUserPerformAction) || isMoneyRequestAction(action)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass reportActionID to visibility check

shouldReportActionBeVisible relies on its key to detect deprecated actions via isReportActionDeprecated, which compares String(reportAction.sequenceNumber) to the key. Here the key comes from actions.entries() so it is just the array index, not the reportActionID, meaning any action whose sequenceNumber happens to equal its position will be treated as deprecated and skipped. In reports with sequential sequenceNumbers this can drop otherwise-visible actions and their attachments. Use action.reportActionID (or the original reportActions object key) instead of the index.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight revert

@mountiny mountiny merged commit df8d273 into main Jan 23, 2026
31 of 40 checks passed
@mountiny mountiny deleted the revert-78634-feat/visible-report-actions-derived branch January 23, 2026 13:26
@melvin-bot melvin-bot bot added the Emergency label Jan 23, 2026
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Jan 23, 2026

@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@mountiny
Copy link
Copy Markdown
Contributor

Straight revert

BartekObudzinski added a commit to callstack-internal/Expensify-App that referenced this pull request Jan 23, 2026
…4-feat/visible-report-actions-derived"

This reverts commit df8d273, reversing
changes made to a5e4a32.
OSBotify pushed a commit that referenced this pull request Jan 23, 2026
…port-actions-derived

[CP Staging] Revert #78634

(cherry picked from commit df8d273)

(cherry-picked to staging by mountiny)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Jan 23, 2026
@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.7-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.7-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.8-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.8-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.11-16 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Feb 5, 2026

🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants