Add retry_until helper to filter generated values by condition - #572
Open
marocchino with Copilot wants to merge 4 commits into
Open
marocchino with Copilot wants to merge 4 commits into
marocchino with Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/ffaker/ffaker/sessions/6fb9fa1d-7eb3-4b9e-a337-dd3f5c39990f Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ffaker/ffaker/sessions/6fb9fa1d-7eb3-4b9e-a337-dd3f5c39990f Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
marocchino
April 24, 2026 03:42
View session
marocchino
marked this pull request as ready for review
April 24, 2026 03:45
marocchino
reviewed
Apr 24, 2026
|
|
||
| Example: | ||
| ```ruby | ||
| FFaker::Name.only { |str| str.size > 2 }.first_name # returns a first name longer than 2 characters |
Member
There was a problem hiding this comment.
I would appreciate it if you could suggest a better method name.
…rd arg Agent-Logs-Url: https://github.com/ffaker/ffaker/sessions/caa14345-bbb9-4fcf-9e37-284e3f5a6dad Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
only helper to filter generated values by conditionretry_until helper to filter generated values by condition
Agent-Logs-Url: https://github.com/ffaker/ffaker/sessions/7b8fd0be-8fc8-4a30-a5b6-a702da8bc2cf Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
only→retry_until,OnlyUtils→RetryUtils,limitas keyword argretry_untildefaultlimit:from10_000to100inmodule_utils.rband tests