Skip to content

[$500] Web - When command is run, error message appears (Onyx is not defined) #30125

Closed

Description

@lanitochka17

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: 1.3.88-3

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

Issue found when executing PR #27547

Action Performed:

Pre-requisite: user must be logged in and have some chats

  1. Open JS console
  2. Go to Application tab
  3. In "personalDetailsList" key, look for the object that represents personal details of a contact you already have a chat with
  4. Copy the ID
  5. In console, run the following command: "Onyx.merge('personalDetailsList', {: {accountID: , avatar: "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_24.png",
    displayName: "", firstName: "", lastName: "", login: "", phoneNumber: "", validated: true}​})", replacing the ID you copied before

Expected Result:

The name of the contact should be replaced by "Hidden" in LHN

Actual Result:

An error message is displayed on console
Uncaught ReferenceError: Onyx is not defined at :1:1

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Windows: Chrome
Bug6245616_1697902690951.bandicam_2023-10-21_09-31-31-476.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b32cf134f5949260
  • Upwork Job ID: 1715776405695508480
  • Last Price Increase: 2023-10-21

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 21, 2023
  2. changed the title [-] Web - When command is run, error message appears (Onyx is not defined)[/-] [+][$500] Web - When command is run, error message appears (Onyx is not defined)[/+] on Oct 21, 2023
  3. melvin-bot commented on Oct 21, 2023

    @melvin-bot
  4. melvin-bot commented on Oct 21, 2023

    @melvin-bot

    Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 21, 2023
  6. melvin-bot commented on Oct 21, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. melvin-bot commented on Oct 21, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (External)

  8. abdel-h66 commented on Oct 21, 2023

    @abdel-h66
    Contributor

    I think it's normal that Onyx is not exposed in a staging env. works fine on local .

  9. mountiny commented on Oct 22, 2023

    @mountiny
    Contributor

    Yeah closing you cant do this in staging or prod

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions