Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(zosfiles/List): maxLength with multiple patterns #2417

Merged
merged 7 commits into from
Jan 28, 2025

Conversation

traeok
Copy link
Member

@traeok traeok commented Jan 22, 2025

What It Does

This PR improves the behavior of the maxLength parameter when listing multiple patterns. We'll gradually increment the total number of items returned for each pattern, and once we've reached the max length, we'll stop listing patterns.

How to Test

Review Checklist
I certify that I have:

Copy link

📅 Suggested merge-by date: 2/5/2025

@traeok traeok changed the title doc(zosfiles/List): add note to typedoc about maxLength fix(zosfiles/List): better handling for maxLength with multiple patterns Jan 22, 2025
@traeok traeok changed the title fix(zosfiles/List): better handling for maxLength with multiple patterns refactor(zosfiles/List): maxLength with multiple patterns Jan 22, 2025
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.34%. Comparing base (b3feef9) to head (8949068).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2417   +/-   ##
=======================================
  Coverage   91.33%   91.34%           
=======================================
  Files         639      639           
  Lines       18251    18258    +7     
  Branches     3836     3912   +76     
=======================================
+ Hits        16670    16677    +7     
  Misses       1579     1579           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@traeok traeok force-pushed the fix/list-multiple-pats-maxlength branch from 53b8b37 to 8949068 Compare January 28, 2025 18:07
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this. 🎉
It makes sense to truly limit the list based on maxLength! 🥳

LGTM! 😋

@traeok traeok merged commit 61d2373 into master Jan 28, 2025
25 checks passed
@traeok traeok deleted the fix/list-multiple-pats-maxlength branch January 28, 2025 21:31
@traeok traeok added the release-minor Indicates a minor feature has been added label Jan 28, 2025
Copy link

Release succeeded for the master branch. 🎉

The following packages have been published:

Powered by Octorelease 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog release-minor Indicates a minor feature has been added released
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

5 participants