Skip to content

Conversation

@AdityaHegde
Copy link
Collaborator

We are making a call per row for group and project count. This moves the request to the dropdown only when it is open. Instead it uses the count from ListOrganizationMemberUsers

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!
Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

Backend LGTM – but note the test failure

Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

Looks good! Nice optimization to defer the per-row API requests to dropdown open.

Minor: The pluralization groupCount > 1 ? "s" : "" at UserGroupsCell.svelte:34 shows "0 Group" and "1 Group". Consider groupCount !== 1 ? "s" : "" for correct English pluralization ("0 Groups", "1 Group", "2 Groups"). Same applies to UserProjectsCell.svelte:44.

Developed in collaboration with Claude Code and Eric.

@AdityaHegde AdityaHegde merged commit 26e6a2d into main Dec 3, 2025
21 of 26 checks passed
@AdityaHegde AdityaHegde deleted the fix/org-user-management-page-requests branch December 3, 2025 04:56
AdityaHegde added a commit that referenced this pull request Dec 3, 2025
* fix: org user management page sending too many requests

* Update tests

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

Labels

None yet

4 participants