Skip to content

[No QA] perf: skip approval rules scan in chat room subtitle when the workspace name is shown #108323

Backlog

Description

@BartekObudzinski

Problem

getChatRoomSubtitle looks up the submit-to email for the user's own workspace chat even when the workspace name is the one shown. That walks every approval rule in the account on each render of the LHN row and report header, and the result is thrown away.

Solution

PR: #108319

The PR returns the workspace name before the lookup when isPolicyNamePreferred is false. Callers that pass true still get the "submits to" text.

Notes

  • Title copied from the PR: [No QA] perf: skip approval rules scan in chat room subtitle when the workspace name is shown
  • Reviewed the PR's own test steps: LHN row and header still show the workspace name.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions