-
Notifications
You must be signed in to change notification settings - Fork 221
Remove duplicates from yaml values #1066
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
Remove duplicates from yaml values #1066
Conversation
PR SummaryThis Pull Request involves a series of updates focused on cleaning up data in our codebase. It has systematically removed specific elements from various lists throughout the code. Essentially, this action is akin to deleting unused or unnecessary items from a spreadsheet to help streamline and improve efficiency. Here's a breakdown of the key changes:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1066 +/- ##
============================================
+ Coverage 92.29% 92.42% +0.12%
- Complexity 2817 2822 +5
============================================
Files 292 292
Lines 5607 5608 +1
Branches 599 599
============================================
+ Hits 5175 5183 +8
+ Misses 276 272 -4
+ Partials 156 153 -3 ☔ View full report in Codecov by Sentry. |
|
@TamasSzigeti would you be up for adding tests to this or is that asking too much? (Not a trick, we can do it separately if that's outside your interest/skillset.) |
|
Sure, gladly, will make time for it in the coming days. |
|
Even just something like: Get the List from the yaml: Then assert that the two sizes should be equal, then we know there's no duplicates. |
|
Your method content will be different but here's an example how to annotate and set things up: datafaker/src/test/java/net/datafaker/providers/base/DateAndTimeTest.java Lines 194 to 199 in 8166a0f
|
|
@kingthorin I did a bit more than that, have a look pls |
kingthorin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks! |
|
@snuyanzin @bodiam one of you wanna make a second call on this. I'm not 100% sure all lists should be unique. (I don't see a reason why not, but don't wanna kill something being unaware.) |
|
thanks for the contribution
|
|
Thanks! |
|
Thank you too! Could you tag and publish a release, please? |
|
@TamasSzigeti a snapshot release should have been published automatically, I can make a new official release soon if you need. |
|
Thanks, I can use the snapshot for now, no problem |
Fixes #1064