ripe-tech / ripe-sdk

The public Javascript SDK for RIPE Core
https://www.platforme.com
Apache License 2.0
8 stars 4 forks source link

fix: support combinations for initials builder of only 1 profile #303

Closed BeeMargarida closed 3 years ago

BeeMargarida commented 3 years ago
- -
Issue Found when implementing initials in ripe-green.
Dependencies --
Decisions When only when profile was given (which is rarely), the itertools combination would not work, so a check was added, since all combinations of only one element is the element itself.
Animated GIF --
ripe-tobias-bot[bot] commented 3 years ago

Woof, Woof!

Thank you for submitting the "fix: support combinations for initials builder of only 1 profile" pull request 😎.

Please do not forget to review our internal guidelines:

Engaging in the development process in the best possible way helps it being efficient and fast.

Your friend, Tobias (Platforme's mascot)

Tobias Bot
gcandal commented 3 years ago

Does ripe.combinations map 1-1 to some itertools method? If it does, is it behaving the same way?

BeeMargarida commented 3 years ago

I verified, the result is the same. I don't know what happened, but I can't replicate the problem I found when I created this PR. I'll close it