Skip to content

chore: update star wars provider#1723

Merged
kingthorin merged 8 commits into
datafaker-net:mainfrom
ferclager:chore/update-star-wars-provider
Nov 20, 2025
Merged

chore: update star wars provider#1723
kingthorin merged 8 commits into
datafaker-net:mainfrom
ferclager:chore/update-star-wars-provider

Conversation

@ferclager

@ferclager ferclager commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Fixes #1720

@what-the-diff

what-the-diff Bot commented Nov 18, 2025

Copy link
Copy Markdown

PR Summary

  • Updated Character List in the Star Wars Application: This change involved adding new characters (Din Djarin, Grogu, and Kuiil) to the existing list, and removing Anakin Skywalker from that list.

  • Enhanced Star Wars Data File: The existing data file (star_wars.yml) has been enriched with new characters. These additions include Din Djarin, Grogu, Cara Dune, Greef Karga, Bo-Katan Kryze, Moff Gideon, The Armorer, and Kuiil. Alongside this, we added famous quotes associated with Din Djarin and Moff Gideon. This change also updated the referencing names for Grogu and Kuiil in various forms to match with show's narrative.

  • Added New Quotes: To enhance the content, new quotes from Din Djarin, Kuiil, and Moff Gideon across different contexts of the show were added to the YAML data file.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds content from "The Mandalorian" series to the Star Wars provider, expanding the available characters, droids, and vehicles.

  • Adds 9 new characters to the characters list, including Din Djarin (The Mandalorian), Grogu (Baby Yoda), and other key characters from the series
  • Updates the Java CHARACTERS array with 4 new characters that support quotes and alternate spellings
  • Adds the IG-11 droid and Razor Crest vehicle

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main/resources/en/star_wars.yml Adds 9 Mandalorian characters to the characters list, IG-11 to droids, Razor Crest to vehicles, quotes for 3 characters, and alternate spellings for 4 characters
src/main/java/net/datafaker/providers/entertainment/StarWars.java Updates CHARACTERS array to include din_djarin, grogu, kuiil, and moff_gideon in alphabetical order

"jar_jar_binks", "k_2so", "kylo_ren", "lando_calrissian", "leia_organa", "luke_skywalker", "mace_windu",
"maz_kanata", "obi_wan_kenobi", "padme_amidala", "qui_gon_jinn", "rey", "shmi_skywalker", "yoda"};
"bendu", "boba_fett", "c_3po", "count_dooku", "darth_caedus", "darth_vader", "din_djarin", "emperor_palpatine",
"finn", "general_hux", "grand_admiral_thrawn", "grand_moff_tarkin", "greedo", "grogu", "han_solo",

Copilot AI Nov 19, 2025

Copy link

Choose a reason for hiding this comment

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

The character "grogu" was added to the CHARACTERS array but is missing a corresponding entry in the quotes section of the YAML file. When quotes() randomly selects "grogu", it will fail to resolve star_wars.quotes.grogu.

Since Grogu is a non-verbal character (an infant), consider either:

  1. Adding at least one quote entry for grogu (perhaps "(coos)" or a description)
  2. Removing grogu from the CHARACTERS array if quotes should not be available for this character
Suggested change
"finn", "general_hux", "grand_admiral_thrawn", "grand_moff_tarkin", "greedo", "grogu", "han_solo",
"finn", "general_hux", "grand_admiral_thrawn", "grand_moff_tarkin", "greedo", "han_solo",

Copilot uses AI. Check for mistakes.

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.

There should be a test that catches this.

(Not necessarily for this PR, there are likely other providers that could have a similar issue)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we address this before merging it? I'm not 100% sure if Copilot is correct, but it's a nice catch if it is.

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.

The situation here should be addressed.

I meant the test(ing) could potentially wait.

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.

Should I do anything else?
I saw a lot of checks no successful...

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.

The failure is likely due to the situation that copilot has outlined here, you'll need to fix it

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.

Updated quotes for din_djarin and add one for grogu

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All tests seem to pass. I'm happy to merge it. What you @kingthorin ?

kingthorin
kingthorin previously approved these changes Nov 19, 2025
@kingthorin
kingthorin dismissed their stale review November 19, 2025 02:59

copilot comment should be addressed

@codecov-commenter

Copy link
Copy Markdown

⚠️ 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.27%. Comparing base (a9170f5) to head (895919b).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1723   +/-   ##
=========================================
  Coverage     92.27%   92.27%           
  Complexity     3432     3432           
=========================================
  Files           337      337           
  Lines          6779     6779           
  Branches        670      670           
=========================================
  Hits           6255     6255           
  Misses          356      356           
  Partials        168      168           

☔ 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.

@asolntsev asolntsev added this to the 2.6.0 milestone Nov 19, 2025
@kingthorin
kingthorin merged commit c968e79 into datafaker-net:main Nov 20, 2025
13 checks passed
@kingthorin

Copy link
Copy Markdown
Collaborator

Thanks!

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.

Extend Star Wars providers to include more character values from The Mandalorian

6 participants