Skip to content
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

feat(music): add additional genres #2621

Merged
merged 8 commits into from
Mar 28, 2024

Conversation

jeremyhofer
Copy link
Contributor

This PR is split off from #2620 where I originally added additional genres along with new album and artistName methods.

Genres were compiled primarily from these resources:

Based on feedback in #2620 from the original set I added I tried to clean up some of the odd/awkward genres adopted from the sources, e.g. just specifying "Holiday" or "Classical" instead of listing some of the sub-types from the resources. Happy to clean up the list further if desired!

@jeremyhofer jeremyhofer requested a review from a team as a code owner January 25, 2024 01:40
src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
@matthewmayer matthewmayer added the m: music Something is referring to the music module label Jan 25, 2024
@jeremyhofer
Copy link
Contributor Author

In addition to the call outs about Standup Comedy and Spoken Word, I cleaned up other questionable genres that were in the list, trying to keep it pure to music only. This included removing items related to activities like Study or Exercise, since really any music can be used for that.

matthewmayer
matthewmayer previously approved these changes Jan 25, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.94%. Comparing base (1477958) to head (6a8bacc).

Additional details and impacted files
@@           Coverage Diff            @@
##             next    #2621    +/-   ##
========================================
  Coverage   99.93%   99.94%            
========================================
  Files        2960     2960            
  Lines      211366   211617   +251     
  Branches      604      953   +349     
========================================
+ Hits       211231   211499   +268     
+ Misses        135      114    -21     
- Partials        0        4     +4     
Files Coverage Δ
src/locales/en/music/genre.ts 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

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

I'm not sure whether we should include genres like <any country> X.
What do the others think?

src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
src/locales/en/music/genre.ts Show resolved Hide resolved
src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
src/locales/en/music/genre.ts Show resolved Hide resolved
@ST-DDT ST-DDT added this to the vAnytime milestone Jan 25, 2024
@ST-DDT ST-DDT added p: 1-normal Nothing urgent c: locale Permutes locale definitions labels Jan 25, 2024
@jeremyhofer
Copy link
Contributor Author

@ST-DDT I had similar thoughts on the country names. There were some examples where e.g. France and French were both included from the sources I compiled from. In that case I opted for French. Could do similar for other countries listed.

@matthewmayer
Copy link
Contributor

I tend to agree that France or French is not really a genre.

If a French is performing rock, it's Rock. If it's a classical piece, it's Classical, rather than just lumping it under French.

So maybe let's remove all country/language genres.

ST-DDT
ST-DDT previously approved these changes Jan 26, 2024
src/locales/en/music/genre.ts Outdated Show resolved Hide resolved
@xDivisionByZerox
Copy link
Member

Sorry for my late feedback. The list you provided is very comprehensive. Would it be better to organize the genres into "main" and "sub" categories? I can see people requesting the possibility of only getting "common" genres. For features like this we would need to introduce a breaking change. Is that something we should consider?

@matthewmayer
Copy link
Contributor

Sorry for my late feedback. The list you provided is very comprehensive. Would it be better to organize the genres into "main" and "sub" categories? I can see people requesting the possibility of only getting "common" genres. For features like this we would need to introduce a breaking change. Is that something we should consider?

i'd say we dont really do that anywhere else. You can't request "common" first names or "common" dog breeds or "common" countries. There's no standard list of what a musical genre is.

@xDivisionByZerox
Copy link
Member

i'd say we dont really do that anywhere else. You can't request "common" first names or "common" dog breeds or "common" countries. There's no standard list of what a musical genre is.

We have:

I see more reason to differenciate betrween common and sub music genres as some genres are literally described as "x is a subgenre of y". For example:


I'm just trying to think ahead to avoid potential breaking chages. If all of you think this is unnecessary I'm fine with that as well.

@ST-DDT ST-DDT added the s: needs decision Needs team/maintainer decision label Feb 11, 2024
@ST-DDT
Copy link
Member

ST-DDT commented Mar 28, 2024

Team Decision

  • We will add this
  • If we need a selection of common genres, then we can open a new issue

@ST-DDT ST-DDT enabled auto-merge (squash) March 28, 2024 17:35
Copy link

netlify bot commented Mar 28, 2024

Deploy Preview for fakerjs canceled.

Name Link
🔨 Latest commit 6a8bacc
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/6605aa3a6c3f75000931fe59

@ST-DDT ST-DDT added s: accepted Accepted feature / Confirmed bug and removed s: needs decision Needs team/maintainer decision labels Mar 28, 2024
@ST-DDT ST-DDT merged commit 7dae52b into faker-js:next Mar 28, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: locale Permutes locale definitions m: music Something is referring to the music module p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants