Games-of-Switzerland / swissgamesgarden

👾 🇨🇭 Games of Switzerland - React Frontend Application
https://swissgames.garden
GNU General Public License v2.0
14 stars 1 forks source link

Game detail - Stores doesn't display in front #46

Closed CamilleLetang closed 2 years ago

CamilleLetang commented 3 years ago
Capture d’écran 2020-11-07 à 11 18 09

https://projects.invisionapp.com/share/ZRUVZ9XXHQV#/screens/393934326

CamilleLetang commented 2 years ago

@WengerK example: https://api.swissgames.garden/node/473/edit?destination=/admin/content

WengerK commented 2 years ago

I think it's indeed missing from Backend response I will check and cover the case

WengerK commented 2 years ago

seems a frontend issue, missing to request the stores field

current request

https://api.swissgames.garden/G70VW4Y9sP/jsonapi/node/game?filter[field_path]=/games/mokmok&fields[node--game]=title,body,genres,studios,genres,releases_normalized,release_platforms,website,locations,publishers,sponsors,social_networks,languages,awards,credits,completeness,members,images,contextual_links,sources,article_links&fields[studios]=title&fields[node--studio]=title,field_path&fields[node--people]=title,field_path&fields[taxonomy_term--genre]=slug&fields[taxonomy_term--platform]=slug&fields[taxonomy_term--location]=name&fields[taxonomy_term--publisher]=name&fields[taxonomy_term--sponsor]=name&fields[taxonomy_term--language]=name&fields[taxonomy_term--member]=name&include=studios,release_platforms,genres,locations,publishers,sponsors,languages,members,images

should be (add fields[node--game]=stores,....)

https://api.swissgames.garden/G70VW4Y9sP/jsonapi/node/game?filter[field_path]=/games/mokmok&fields[node--game]=stores,title,body,genres,studios,genres,releases_normalized,release_platforms,website,locations,publishers,sponsors,social_networks,languages,awards,credits,completeness,members,images,contextual_links,sources,article_links&fields[studios]=title&fields[node--studio]=title,field_path&fields[node--people]=title,field_path&fields[taxonomy_term--genre]=slug&fields[taxonomy_term--platform]=slug&fields[taxonomy_term--location]=name&fields[taxonomy_term--publisher]=name&fields[taxonomy_term--sponsor]=name&fields[taxonomy_term--language]=name&fields[taxonomy_term--member]=name&include=studios,release_platforms,genres,locations,publishers,sponsors,languages,members,images
WengerK commented 2 years ago

added missing Stores links on Games detail

Screenshot 2022-09-10 at 15 51 39