Skip to content
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

Migration to Bonfire #167

Open
3 tasks
pral2a opened this issue Feb 7, 2022 · 2 comments
Open
3 tasks

Migration to Bonfire #167

pral2a opened this issue Feb 7, 2022 · 2 comments
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration

Comments

@pral2a
Copy link

pral2a commented Feb 7, 2022

  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
@adam-burns
Copy link

1. 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](https://reflowos.dyne.org/) is (in principle) updated.

Note the documentation exception in that the API Tour page is not yet updated.

@pral2a
Copy link
Author

pral2a commented Feb 9, 2022

@adam-burns I updated the issue accordingly

@pral2a pral2a added the bonfire-migration Issues linked to ZenPub to Bonfire migration label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration
Projects
None yet
Development

No branches or pull requests

2 participants