Skip to content

Migration to Bonfire #167

@pral2a

Description

@pral2a
  1. Legacy migration work Asses ZenPub replacement with BonFire #121 Most of the issues here are solved.

  2. Bonfire public instance for development is here https://reflow-demo.dyne.org/api/graphql and documentation available https://reflow-demo.dyne.org/api/explore. Also, the main documentation in reflowos.dyne.org is updated except for the API Tour page.

  3. Changing remote server: In the .env file replace REACT_APP_GRAPHQL_ENDPOINT=https://api.reflowproject.eu/api/graphql (ZenPub) by REACT_APP_GRAPHQL_ENDPOINT=https://reflow-demo.dyne.org/api/graphql (Bonfire) and run yarn start.

  4. Almost all the existing queries and mutations are now implemented in the new Bonfire. See issue WeLoop: Sufficient Social GraphQL exposure for initial use cases dyne/reflow-os#18 (comment)

  5. However some minor changes are required. Preliminary list:

  • Login mutation anonLogin now replaced by login. See docs
  • Economic Resource track and trace previously return only economicResouce now can return multiple types and economicResource type needs to be detected before it's casted. See:
{
  economicResource(id: "ID") {
    id
    trace {
      __typename
      ... on Process {
        id
      }
      ... on EconomicEvent {
        id
      }
    }
  }
}
  • More to be detected while running we Loop and mapping the XHR calls in the console.
    Screenshot 2022-01-11 at 19 14 05

Metadata

Metadata

Assignees

No one assigned

    Labels

    bonfire-migrationIssues linked to ZenPub to Bonfire migration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions