Skip to content

Conversation

@kraenhansen
Copy link
Contributor

Description

Small suggestion to print package current + total packages while iterating over changed packages.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Copilot AI review requested due to automatic review settings November 17, 2025 13:12
@kraenhansen kraenhansen requested a review from a team as a code owner November 17, 2025 13:12
@kraenhansen kraenhansen requested a review from nbbeeken November 17, 2025 13:12
@kraenhansen kraenhansen added no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) labels Nov 17, 2025
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

This PR adds progress tracking to the changed packages script by displaying the current package number and total package count during iteration. This provides better visibility into the script's execution progress.

Key Changes:

  • Added progress counter to display "current/total" format when processing packages
  • Stores the total package count at the start of execution for reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kraenhansen kraenhansen self-assigned this Nov 17, 2025
console.log();

const pkg = packages[0];
const currentIndex = totalPackages - packages.length + 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Took me a moment to realise that this is inside a while (packages.length)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. I have no idea why that was chosen originally.

@kraenhansen kraenhansen merged commit 35a9ec4 into main Nov 17, 2025
64 of 65 checks passed
@kraenhansen kraenhansen deleted the kh/print-progress-in-changed-script branch November 17, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants