-
Notifications
You must be signed in to change notification settings - Fork 633
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
Adding past Pokemon type data? #288
Comments
I think the plan in the past was to add a Any thoughts @encukou? I believe you wanted to get rid of all the changelog tables. If we go this route, could you please model this after the existing changelog tables? In particular, the table should be named How do you handle pokemon which gained a type rather than changing a type, like Magnemite? |
@magical I will work on making my changes follow the model you linked 🙂 In response to your second question, my changes would specify the exact typing that the Pokemon previously had. When querying its type in a given generation we first check if it has entries in Taking Magnemite as an example, it would have a single entry in |
@magical I've made some prospective changes aligned with the existing ability changelog model, which can be viewed here: https://github.com/phrasmotica/pokedex/commits/feature/pokemon-types-changelog |
(tl;dr: ignore this comment)
Yes: changelogs are a pain to query, unless you want to display a changelog. They're encoding the info in a way that's suitable for the web pokedex but not much else (including a potential different/improved web view). But, don't mix refactoring with a data contribution. Veekun currently uses changelogs, and if that changes, types will just be one more small thing to adjust. |
What is the status here? |
Some background: I made a PR into PokeAPI that includes some new data. I was told that they consume data from this repo and that I should open an issue to have the new data integrated here before they merge my functional changes into PokeAPI.
The data describes a Pokemon's types in previous generations, and would go in a
pokemon_types_past.csv
file that follows the format ofpokemon_types.csv
but has an additional columngeneration_id
, representing the last generation in which the Pokemon had the given type.I'd really appreciate some feedback on this idea as this is data I'd like to use through PokeAPI in a project I'm working on 😄
My PR into PokeAPI is here: PokeAPI/pokeapi#457
Thanks!
The text was updated successfully, but these errors were encountered: