Skip to content

[Due for payment 2026-06-19] Rates - Change logs message after editing rate date, is different on chat and on search. #93143

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.2-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #92186
Email or phone of affected tester (no customers): applausetester+ib0005@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome
App Component: Search

Action Performed:

Prerequisite: Use Expensifail account.
Prerequisite 2: Account has a workspace with distance rates enabled.
Prerequisite 3: User created a rate with start and end dates included.

  1. Open the staging.new.expensify.com website.
  2. Navigate to "Workspaces" > Workspace > "Distance Rates"
  3. Open a distance rate that contains start and end dates.
  4. Edit the rate "Start" date and save it.
  5. Navigate to #Admins room of the workspace.
  6. Open the thread created with distance rates changes.
  7. Note that a "updated start date of "Name" rate to "Date" (previously "Date") message is visible in thread.
  8. Tap on the search icon on the top right corner.
  9. Hover over preview of thread chat and note that preview shows a "Updated the distance rate "Name" to apply from "Date" to "Date" (Previously "Date" - "Date")

Expected Result:

Message generated with editions on distance rates dates, should be consistent on thread conversation and on preview on "Search"

Actual Result:

Message generated with editions on distance rates dates, is different on thread conversation and on chat prevew on "Search". Message on thread is displayed as "updated start date of "Name" rate to "Date" (previously "Date")" while chat preview shows a "Updated the distance rate "Name" to apply from "Date" to "Date" (Previously "Date" - "Date")" message.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7176416_1781054894016.Rate_Log_4.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7176416

Issue OwnerCurrent Issue Owner: @thelullabyy

Activity

  1. applause-bot commented on Jun 10, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/fd2bbb9bd6631934551395be65966a9c123a7b6c4adb783c678dc15d782e9e1f

  2. added
    DeployBlockerCash
    Bug
    on Jun 10, 2026
  3. melvin-bot commented on Jun 10, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #92186

  4. melvin-bot commented on Jun 10, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jun 10, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. MelvinBot commented on Jun 10, 2026

    @MelvinBot
    Contributor

    Proposal

    Root cause is high-confidence (code-verified). The exact fix direction is a product/eng decision — see two options below.

    What is the root cause of that problem?

    PR #92186 introduced new, client-side wording for distance-rate date change logs that is computed at render time from the action's originalMessage (newStartDate / oldStartDate / newEndDate / oldEndDate). The inbox thread and the LHN read the live report action, so they show the new wording (e.g. updated start date of "Name" rate to <date> (previously <date>)).

    The Search page does not use that helper. Search renders threads from the search snapshot (snapshot_<hash>), a separate Onyx collection. Thread names there come from getReportName, which returns the derived reportAttributes value or falls back to report.reportName. The reportAttributes derived value only subscribes to the live reportActions_ collection — not the snapshot — so for a snapshot-only thread it falls back to report.reportName, which is the backend-precomputed string: Updated the distance rate "Name" to apply from <date> to <date> (Previously <date> - <date>).

    So the two surfaces read two different sources: thread = new client-computed wording; Search = old backend-precomputed wording. They diverge. (Consistent with the report: not reproducible in production — the new wording only exists on staging via #92186.)

    Code evidence

    What changes do you think we should make in order to solve the problem?

    Two viable directions, depending on which wording should win:

    1. Keep the new wording everywhere (recommended for product intent). The backend-precomputed change-log copy (the report.reportName / message for this action) must be updated to match the new frontend strings. This is a backend copy change outside the App repo — it needs an internal engineer to update the change-log message generation so all surfaces (thread, LHN, and Search) are consistent.

    2. Quickest deploy-blocker mitigation (App-only). Revert the wording change from feat: render date-aware workspace change logs for mileage rates #92186 (or align the new en.ts strings to the existing backend copy) so the thread again matches the backend-precomputed text shown in Search. This restores consistency but gives up the date-aware copy the PR added.

    A pure-App "make Search recompute via the helper" fix is not advisable here: the search snapshot is intentionally outside the reportAttributes derived value, so routing Search names through the helper is a broad architectural change and risky for a deploy blocker.

    What alternative solutions did you explore?

    Making reportAttributes (or SearchUIUtils) recompute thread names from the snapshot's parent report action — rejected as too broad/risky for a time-sensitive blocker; it would affect every report-action-derived thread name in Search, not just distance rates.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/93143) to create a draft PR (only viable for option 2 — option 1 requires a backend change outside App).
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  7. rlinoz commented on Jun 10, 2026

    @rlinoz
    Contributor

    Not a blocker, feature is behind a beta

  8. added
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on Jun 10, 2026
  9. 23 remaining items

  10. melvin-bot commented on Jun 18, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  11. mallenexpensify commented on Jun 20, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @thelullabyy due $250 via Upwork

    @thelullabyy can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022068328431604736228

  12. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    @thelullabyy Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. added
    Daily
    and removed
    Daily
    on Jun 24, 2026
  14. thelullabyy commented on Jun 25, 2026

    @thelullabyy
    Contributor

    @mallenexpensify I accepted the offer

  15. mallenexpensify commented on Jun 25, 2026

    @mallenexpensify
    Contributor

    I confused myself, is payment due here? The offending PR has @DylanDylann as a reviewer as well so I'd assume they'd be assigned here and not due payment. cc @rlinoz for bonus 👀 @MelvinBot please review too in case I'm missing something

  16. MelvinBot commented on Jun 25, 2026

    @MelvinBot
    Contributor

    🤖 Reviewed the chain. A couple of corrections that change the conclusion:

    The C+ reviewer of the offending PR was thelullabyy, not DylanDylann. DylanDylann has no role here — not on the offending PR, the original feature issue, or the fix:

    So thelullabyy is the same C+ across the offending PR and this regression.

    On payment: this is a regression from #92186, and thelullabyy is the C+ who approved that offending PR. Per the regression convention, the C+ who approves a PR that introduces a regression handles the resulting fix without additional payment — so the $250 C+ fee here is questionable and I'd lean not due, since you'd effectively be paying the reviewer to fix a regression they approved. The fix itself was written by an internal engineer (rlinoz), not a contributor, so there's no contributor payment owed either.

    Worth confirming with rlinoz, but the instinct that "the reviewer of the offending PR shouldn't be paid here" is right — that reviewer is just thelullabyy, not DylanDylann.

  17. thelullabyy commented on Jun 25, 2026

    @thelullabyy
    Contributor

    @rlinoz I think this issue is an ad-hoc issue, not including in original scope of project. I think I can be due for payment here? Please correct if I'm wrong? Thanks

  18. rlinoz commented on Jun 26, 2026

    @rlinoz
    Contributor

    Yes, this was not an actual regression, we changed the implementation in the backend without a warning then we needed this fix as a follow up, so this issue is due payment.

  19. mallenexpensify commented on Jun 27, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @thelullabyy due $250 via NewDot

    Thx!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions