gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

publisher pages broken by changes in graphql #523

Closed MortenHofft closed 1 month ago

MortenHofft commented 1 month ago

https://hp-theme.gbif-staging.org/publisher/0f285de3-932e-483b-b915-b2377786ee90

fails with

Error: Error: GraphQL error: dataSources.participantAPI.getParticipantByKey is not a function
    at BE (https://react-components.gbif-staging.org/lib/gbif-react-components.js?v=275126706750af2c9082137076bc901b:68:537745)
    at we (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:84:293)
    at He (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:97:464)
    at zj (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:228:406)
    at Th (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:152:223)
    at tj (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:152:152)
    at Te (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:146:151)
    at https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:61:68
    at unstable_runWithPriority (https://unpkg.com/react@16/umd/react.production.min.js:25:260)
    at Da (https://unpkg.com/react-dom@16/umd/react-dom.production.min.js:60:280)

looks like there might have been a breaking change introduced in graphql https://github.com/gbif/gbif-web/commit/df71624bc4482fdf316f324b486a13aa85ad220f

dataSources.participantAPI.getParticipantByKey is called multiple places in resolvers, but the function has been removed in above commit.

ping @danielvdm2000