PokeAPI / PokeAPI/pokeapi

GRAPHQL Paradox Pokemon Have Duplicate Ability entries with one being described as a hidden one

Open
#907 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.4k
Forks
1.2k
Avg merge
2d 5h
Merged PRs (30d)
21

Description

Steps to Reproduce:

Using this query:
query MyQuery { pokemon_v2_ability(where: {id: {_eq: 282}}) { id name pokemon_v2_pokemonabilities{ is_hidden pokemon_v2_pokemon { id name pokemon_species_id types: pokemon_v2_pokemontypes { pokemon_v2_type { name id } } } } } } .
Gives a response from the https://beta.pokeapi.co/graphql/v1beta endpoint with duplicate entries for each pokemon where it's the same ability but one is described as being it's hidden one:
{ "data": { "pokemon_v2_ability": [ { "id": 282, "name": "quark-drive", "pokemon_v2_pokemonabilities": [ { "is_hidden": false, "pokemon_v2_pokemon": { "id": 990, "name": "iron-treads", "pokemon_species_id": 990, "types": [ { "pokemon_v2_type": { "name": "ground", "id": 5 } }, { "pokemon_v2_type": { "name": "steel", "id": 9 } } ] } }, { "is_hidden": true, "pokemon_v2_pokemon": { "id": 990, "name": "iron-treads", "pokemon_species_id": 990, "types": [ { "pokemon_v2_type": { "name": "ground", "id": 5 } }, { "pokemon_v2_type": { "name": "steel", "id": 9 } } ] } },...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the supplied query against the https://beta.pokeapi.co/graphql/v1beta endpoint and compare the returned pokemon_v2_pokemonabilities entries for ability 282. Trace the source data or GraphQL relationship responsible for the duplicate Quark Drive records; done means each affected Pokémon no longer has the same ability represented twice with conflicting is_hidden values.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.