Skip to content

Added new food provider - Cheese.#1797

Merged
kingthorin merged 4 commits intodatafaker-net:mainfrom
L-Evg:feature/Cheese_Provider
Apr 17, 2026
Merged

Added new food provider - Cheese.#1797
kingthorin merged 4 commits intodatafaker-net:mainfrom
L-Evg:feature/Cheese_Provider

Conversation

@L-Evg
Copy link
Copy Markdown
Contributor

@L-Evg L-Evg commented Apr 17, 2026

Added new food provider - Cheese. It provides cheese-related fake data like name, type, texture, milk etc.

Data source:
https://www.cheese.com
https://en.wikipedia.org/wiki/Types_of_cheese

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Apr 17, 2026

PR Summary

  • Introduction of Cheese Data Generator
    A new function has been introduced, it's called a Cheese provider. Its role is to generate fake data that revolves around different types of cheese. It can provide details like cheese type, texture, milk type, colour, and the specific name of the cheese.

  • Expansion of FoodProviders' Functionality
    The functions available under FoodProviders have been expanded. Now, they can integrate with this new Cheese provider, allowing for a wider range of food-related data generation.

  • Inclusion of Cheese Information Resource
    We've included a new resource file named cheese.yml, it is essentially a database for our 'Cheese' provider. It likely holds the specific types of cheese data that the Cheese provider can generate.

  • Documentation Update
    We’ve updated our READMe file to reflect the latest additions. It now includes ‘Cheese’ provider in the list of available data providers. This update will help users understand what types of data they can generate.

  • Quality Assurance for the Cheese Provider
    We've created a new set of tests under the CheeseTest class. These tests are designed to confirm that our new Cheese provider is performing as expected, specifically ensuring that it doesn't generate empty data.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 17, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.24%. Comparing base (450a8c1) to head (316797d).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1797      +/-   ##
============================================
- Coverage     92.27%   92.24%   -0.04%     
- Complexity     3469     3475       +6     
============================================
  Files           340      341       +1     
  Lines          6824     6834      +10     
  Branches        670      670              
============================================
+ Hits           6297     6304       +7     
- Misses          361      362       +1     
- Partials        166      168       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Could you cleanup the PR removing the unrelated (and I believe already merged) content?

@asolntsev asolntsev added this to the 2.6.0 milestone Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@asolntsev asolntsev left a comment

Choose a reason for hiding this comment

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

Good - except the unrelated changed in this PR.

@L-Evg
Copy link
Copy Markdown
Contributor Author

L-Evg commented Apr 17, 2026

Could you cleanup the PR removing the unrelated (and I believe already merged) content?

I am a bit confused of what that "unrelated" could be since the fork was synced just before the push. Supposedly that is about "Emergency" reference in the README.md - removed that.

@L-Evg L-Evg requested a review from kingthorin April 17, 2026 16:30
Comment thread src/main/resources/ru.yml Outdated
lens: ["500мм/8", "17мм/2.0", "35мм/1.8", "50мм/1.2", "50мм/1.4", "50мм/1.8", "17-85мм/4.0-8.0", "85мм/1.2", "40мм/2.8", "70–300мм/4.5–5.6", "300мм/2.8", "35-350мм/3.5-5.6", "75-300мм/4-5.6", "24мм/1.4", "17–40мм/4", "24–105мм/4", "70–200мм/2.8", "70–200мм/4", "200-400мм/4", "85мм/1.8", "135мм/4", "600мм/4", "800мм/5.6", "18–55мм/3.5–5.6", "55–250мм/4–5.6", "10-24мм/3.5-4.5", "12-24мм/4", "16-85мм/3.5-5.6", "17-55мм/2.8", "18-55мм/3.5-5.6", "18-70мм/3.5-4.5", "18-105мм/3.5-5.6", "18-140мм/3.5-5.6", "18-200мм/3.5-5.6", "18-300мм/3.5-5.6", "18-300мм/3.5-6.3", "55-200мм/4-5.6", "рыбий глаз", "теле", "широкоугольный"]
genre: ["Абстракция", "Портрет", "Пейзаж", "Техника", "Транспорт", "Авиация", "Поезда", "Корабли", "Автомобили", "Велосипеды", "Армейское", "ВМФ", "Флора", "Фауна", "Спорт", "Улица", "Город", "Деревня", "за городом", "Архитектура", "Интерьер", "Пища", "Свадьба", "Из готового", "Папарацци", "Общественное", "Мода", "Красота", "Ню", "Наука", "Космос", "Воздушное", "Промышленное", "Искусство", "Под водой", "Ночь", "чёрный ключ", "белый ключ", "ЛОМО", "Панорама", "Макро", "Микро", "Нано"]
imagetag: ["Ч/Б", "стена", "небо", "облака", "трава", "дерево", "улица", "город", "техника", "самобеги", "вагоны", "повозки", "самолёты", "люди", "чай", "кофе", "ресторан", "лес", "луг", "гора", "вода", "река", "солнечно", "облачно", "дождливо", "дождь", "волна", "капля", "девушка", "кирпич", "океан", "море", "речушка", "весна", "пружина", "фестиваль", "празднование", "представление", "танцы", "вселенная", "звёзды", "галактика", "МИР", "МКС", "ракета", "реактивный самолёт", "боец", "истребитель", "певец", "действие", "показ", "театр"]
photography:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All this too

(Maybe this part isn't already merged, but it also isn't related to the PR)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, thank you for pointing that out. Removed.

@L-Evg L-Evg requested a review from kingthorin April 17, 2026 16:38
Copy link
Copy Markdown
Collaborator

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Just one comment and a few ideas/questions.

Doesn't necessarily need to be for this PR but would brands, rind type or edibility, or wrap/packaging (wax, paper, plastic, etc) be of any benefit?

Comment on lines +32 to +33
public String colour() {
return resolve("cheese.colour");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry to be a pain but I believe the library tries to stick with US spelling. (I did a quick code search)

Could you make this color? [plus update the data ref, JavaDoc, tests)
(I guess if you really want a colour variant it should be in a en-GB and en-CA localization.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, no problem. Changed to color.

@L-Evg
Copy link
Copy Markdown
Contributor Author

L-Evg commented Apr 17, 2026

@kingthorin -

Just one comment and a few ideas/questions.

Doesn't necessarily need to be for this PR but would brands, rind type or edibility, or wrap/packaging (wax, paper, plastic, etc) be of any benefit?

Sounds interesting. Let me add that in a separate PR.

@L-Evg L-Evg requested a review from kingthorin April 17, 2026 17:17
Copy link
Copy Markdown
Collaborator

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Thanks

@kingthorin kingthorin merged commit 4c9b3da into datafaker-net:main Apr 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants