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

[Fake API Data] Create sample data set #1331

Closed
3 tasks done
roadlittledawn opened this issue May 21, 2021 · 1 comment · Fixed by #1355
Closed
3 tasks done

[Fake API Data] Create sample data set #1331

roadlittledawn opened this issue May 21, 2021 · 1 comment · Fixed by #1355

Comments

@roadlittledawn
Copy link
Contributor

roadlittledawn commented May 21, 2021

Summary

We want to create some sample JSON we can then load into Gatsby GraphQL and build/run time. Depending on what shape we get data from the final API, we may still create a script that fetches the data and ultimately transforms it to a format that best suits our needs.

Shape of data

We could either create one JSON file with all the data we need for each pack OR we could create multiple JSON files (especially if we have multiple data sources) that we stitch together when loading into GraphQL (similar to how opensource does it).

Perhaps something like this may make sense, where each .json file contains all the data we would need for now.

│  data
│  ├── observability-packs
│  │   ├── browser
│  │   │   ├── browser.json
│  │   │   └── images
│  │   └── mysql
│  │       ├── images
│  │       └── mysql.json

Data sources

We'll source data from the main observability pack GraphQL API for most pack data.

We'll also need to source data from github re: some pack info. Examples: contributors, copy/description, images.

Acceptance criteria

  • Confirm with @kidk when the real API will be completed.
  • We have JSON file(s) that approximate what we will have access to
  • The JSON file(s) have sufficient data that's conducive to the needs of our pages / templates

Helpful links

@roadlittledawn roadlittledawn added this to the [DevEn] Sprint 5 milestone May 21, 2021
@roadlittledawn roadlittledawn changed the title [Fake API Data] Create sample JSON [Fake API Data] Create sample data set May 26, 2021
@roadlittledawn roadlittledawn added the sp:3 Story Point(s): 3 label May 27, 2021
@aswanson-nr aswanson-nr self-assigned this May 27, 2021
@nr-opensource-bot
Copy link
Contributor

🎉 This issue has been resolved in version 1.57.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants