[No QA] Handle chatReportIDAdmins and chatReportIDAnnounce as string instead of number#75814
Conversation
|
@ZhenjaHorbach 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] |
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.
|
toString reportID conversionschatReportIDAdmins and chatReportIDAnnounce as string instead of number
|
No product change. Removing myself and unsubscribing |
…ersion. Updated the types for backward compatibility.
|
@jjcoffee - whenever you'd like to test these changes against the backend changes (which are currently on hold on this App PR), please feel free to DM me and I'd be happy to share an ngrok URL for testing |
|
Update: I've sent the ngrok URL to Joel so we can test these changes both with and without the BE PRs |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2025-12-17_16.24.41.mp4Android: mWeb Chromeandroid-chrome-2025-12-17_16.32.15.mp4iOS: HybridAppios-app-2025-12-17_17.31.57.mp4iOS: mWeb SafariUploading ios-safari-2025-12-17_17.31.59.mp4… MacOS: Chrome / SafariWithout BE PRs desktop-chrome-2025-12-17_15.28.13.mp4With BE PRs desktop-chrome-2025-12-17_17.04.21.mp4 |
|
Resolved merge conflicts |
|
|
||
| /** ReportID of the admins room for this workspace */ | ||
| chatReportIDAdmins?: number; | ||
| /** ReportID of the admins room for this workspace - This should be a string, we are keeping the number for backward compatibility */ |
There was a problem hiding this comment.
How long do we need to keep it as a number? Can we use an onyx migration to clean up the existing data and then remove the migration after a month, and then set this type to only be a string?
There was a problem hiding this comment.
Ah, I wasn't aware we had a mechanism to migrate Onyx data - thanks for pointing that out. That approach sounds good to me 👍
There was a problem hiding this comment.
Added an onyx migration: #75814 (comment)
|
Sorry for the delay - I was handling higher-priority tasks and then was out sick. I'm catching up now. |
…cy chat reports report IDs from number to string
|
Updated |
tgolen
left a comment
There was a problem hiding this comment.
Thanks for adding the migration!
|
✋ 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 https://github.com/tgolen in version: 9.2.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.2.89-6 🚀
|



Explanation of Change
Web-E PR:
Auth PR:
Fixed Issues
$ #71326
PROPOSAL:
Tests
Test 1: Report Action Avatars in Policy Chat Rooms
Scenario 1A: Workspace with Announce Room (3+ members)
Expected: Avatars render without errors; no console errors about invalid Onyx keys
Scenario 1B: Workspace without Announce Room (1-2 members)
Expected: Since
chatReportIDAnnounceis"0", it should fall back tochatReportIDAdmins; avatars render correctlyExpected: No Onyx errors or console errors related to
chatReportIDAnnounceorchatReportIDAdminsTest 2: Create New Workspace
Expected:
chatReportIDAnnounceorchatReportIDAdminsTest 3: Create Draft Workspace
Expected: No Onyx-related errors or console errors
Test 4: Workspace Admin Restricted Action
Prerequisites: remove this code:
App/src/pages/RestrictedAction/Workspace/WorkspaceRestrictedActionPage.tsx
Lines 24 to 28 in e0923e0
Expected:
chatReportIDAnnounceorchatReportIDAdminsTest 5: Policy Accounting Page - Onboarding Specialist Link
!!account?.guideDetails?.email &&from the condition here:App/src/pages/workspace/accounting/PolicyAccountingPage.tsx
Line 611 in e0923e0
Expected:
chatReportIDAnnounceorchatReportIDAdminsTest 6: Subscription Settings
Expected:
chatReportIDAnnounceorchatReportIDAdminsOffline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Regression tests related to the creation of the #admin and #announce workspace chat rooms, their links, and report action avatars within them.
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
MacOS: Desktop