Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CP Staging] Revert "Fix filtering attendees names in the Reports page"#80207

Merged
lakchote merged 1 commit intomainfrom
revert-79498-lucien/fix-attendees-search
Jan 22, 2026
Merged

[CP Staging] Revert "Fix filtering attendees names in the Reports page"#80207
lakchote merged 1 commit intomainfrom
revert-79498-lucien/fix-attendees-search

Conversation

@lakchote
Copy link
Contributor

@lakchote lakchote commented Jan 22, 2026

Reverts #79498 to fix deploy blocker #80175

@lakchote lakchote requested review from a team as code owners January 22, 2026 10:50
@melvin-bot melvin-bot bot requested review from inimaga and joekaufmanexpensify and removed request for a team January 22, 2026 10:50
@melvin-bot
Copy link

melvin-bot bot commented Jan 22, 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]

@melvin-bot melvin-bot bot removed the request for review from a team January 22, 2026 10:51
@lakchote lakchote changed the title Revert "Fix filtering attendees names in the Reports page" [CP Staging] Revert "Fix filtering attendees names in the Reports page" Jan 22, 2026
Copy link

@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: 9cd909b9fa

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +812 to 815
filterKey === CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTER ||
filterKey === CONST.SEARCH.SYNTAX_FILTER_KEYS.ATTENDEE
) {
filtersForm[key as typeof filterKey] = filterValues.filter((id) => personalDetails?.[id]);

Choose a reason for hiding this comment

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

P2 Badge Preserve name-only attendee filters when parsing search

This now filters ATTENDEE values through personalDetails, so any attendee filter values that don’t map to a known account (e.g., name-only attendees without accountIDs) are silently dropped in buildFilterFormValuesFromQuery. That means saved URLs or filters like attendee:Bob no longer apply and return broader results than requested. Consider keeping ATTENDEE values that aren’t in personalDetails, or restoring the previous special‑case handling for name‑only attendees.

Useful? React with 👍 / 👎.

Comment on lines 4447 to 4451
value: lodashUnionBy(
transactionChanges.attendees?.map(({avatarUrl, displayName, email}) => ({avatarUrl, displayName, email})),
recentAttendees,
(attendee) => attendee.email || attendee.displayName,
'email',
).slice(0, CONST.IOU.MAX_RECENT_REPORTS_TO_SHOW),

Choose a reason for hiding this comment

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

P2 Badge Avoid collapsing name-only attendees in recent list

Recent attendees are now deduped by email only. Name‑only attendees often have an empty email, so multiple distinct name‑only attendees collapse to a single entry in NVP_RECENT_ATTENDEES. After adding different name‑only attendees, only the first survives and others never appear in the recent list/suggestions. Consider using a key that falls back to displayName when email is empty (as before) to keep unique name‑only entries.

Useful? React with 👍 / 👎.

@codecov
Copy link

codecov bot commented Jan 22, 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/hooks/useSearchSelector.base.ts 0.00% <ø> (ø)
src/libs/SearchQueryUtils.ts 69.64% <100.00%> (-0.05%) ⬇️
src/libs/actions/IOU/index.ts 68.15% <ø> (-0.01%) ⬇️
...hAdvancedFiltersPage/SearchFiltersAttendeePage.tsx 0.00% <ø> (ø)
...pages/iou/request/MoneyRequestAttendeeSelector.tsx 0.00% <0.00%> (ø)
...nListWithSections/Search/UserSelectionListItem.tsx 0.00% <0.00%> (ø)
src/libs/OptionsListUtils/index.ts 75.77% <50.00%> (-1.61%) ⬇️
src/pages/Search/AdvancedSearchFilters.tsx 0.00% <0.00%> (ø)
...nents/Search/SearchFiltersParticipantsSelector.tsx 0.00% <0.00%> (ø)
... and 6 files with indirect coverage changes

@lakchote lakchote merged commit ad0d695 into main Jan 22, 2026
32 of 39 checks passed
@lakchote lakchote deleted the revert-79498-lucien/fix-attendees-search branch January 22, 2026 13:26
@melvin-bot melvin-bot bot added the Emergency label Jan 22, 2026
@melvin-bot
Copy link

melvin-bot bot commented Jan 22, 2026

@lakchote 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.

@lakchote
Copy link
Contributor Author

Not an emergency, straight revert.

@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify pushed a commit that referenced this pull request Jan 22, 2026
…ndees-search

[CP Staging] Revert "Fix filtering attendees names in the `Reports` page"

(cherry picked from commit ad0d695)

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

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.3.6-1 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.6-4 🚀

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

@OSBotify
Copy link
Contributor

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

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

@OSBotify
Copy link
Contributor

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

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.

5 participants