Skip to content

Conversation

@nirinchev
Copy link
Collaborator

Proposed changes

Checklist

@nirinchev nirinchev requested a review from a team as a code owner September 16, 2025 07:35
Copilot AI review requested due to automatic review settings September 16, 2025 07:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes a bug where the reported number of clusters was incorrect by counting table rows instead of actual cluster data. The fix ensures the cluster count matches the actual number of clusters returned from the API.

  • Fixed cluster counting logic to use the combined array length instead of table rows
  • Updated test to verify the count matches the parsed table data
  • Refactored code to improve readability by extracting the combined clusters array

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/tools/atlas/read/listClusters.ts Fixed cluster counting by using allClusters.length instead of rows.length
tests/integration/tools/atlas/clusters.test.ts Added verification that cluster count matches parsed table data

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nirinchev nirinchev force-pushed the ni/cluster-statistics branch from 0697a95 to 24ce438 Compare September 16, 2025 07:37
Copy link
Collaborator

@cveticm cveticm left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the improved test!

@nirinchev nirinchev merged commit 7fa4a2f into main Sep 16, 2025
15 of 17 checks passed
@nirinchev nirinchev deleted the ni/cluster-statistics branch September 16, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants