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

✨ Add Subquery GraphQL API okp4-nemeton-1 #13

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

ccamel
Copy link
Member

@ccamel ccamel commented Nov 9, 2023

Self explanatory.

Configured endpoint is similar to the following curl command:

curl -X POST -d '{ "query": "{blocks(last: 1) { nodes { chainId height } } }" }' -H "Accept: application/json" -H "Content-Type: application/json" -H "Host: api.subquery.network" https://api.subquery.network/sq/okp4/nemeton-1

Summary by CodeRabbit

  • New Features
    • Expanded the Nemeton Program's API configuration with new settings for the Subquery GraphQL API.
    • Introduced a 'degraded body' attribute for the Subquery GraphQL API.

@ccamel ccamel self-assigned this Nov 9, 2023
Copy link

coderabbitai bot commented Nov 9, 2023

Walkthrough

The recent changes to the .upptimerc.yml configuration file have expanded the API configuration for the Nemeton Program. The additions include new entries for the RPC and Subquery GraphQL API, complete with method, URL, headers, and body details. A note about a degraded body for the Subquery GraphQL API is also included.

Changes

File Change Summary
.upptimerc.yml Added new entries for the Nemeton Program Web Site, RPC okp4-nemeton-1, and a new Subquery GraphQL API okp4-nemeton-1. The new entries include method, URL, headers, and body details. A note about a degraded body for the Subquery GraphQL API is also included.

Poem

🍂 As autumn leaves fall, we code and tweak, 🍁
In the .upptimerc.yml, a peek. 🐇
With new APIs, the future's not bleak,
For the Nemeton Program, the outlook is chic! 💻🎉


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

@ccamel ccamel requested a review from amimart November 9, 2023 17:41
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 3bc1248 and cce9fa8.
Files ignored due to filter (53)
  • api/nemeton-program-web-site/response-time-week.json
  • api/okp-4-documentation-site/response-time-week.json
  • api/okp-4-explorer/response-time-day.json
  • api/okp-4-explorer/response-time-week.json
  • api/okp-4-explorer/uptime-day.json
  • api/okp-4-explorer/uptime-month.json
  • api/okp-4-explorer/uptime-week.json
  • api/okp-4-explorer/uptime-year.json
  • api/okp-4-explorer/uptime.json
  • api/okp-4-faucet/response-time-day.json
  • api/okp-4-faucet/response-time-week.json
  • api/okp-4-faucet/uptime-day.json
  • api/okp-4-faucet/uptime-month.json
  • api/okp-4-faucet/uptime-week.json
  • api/okp-4-faucet/uptime-year.json
  • api/okp-4-faucet/uptime.json
  • api/okp-4-web-site/response-time-week.json
  • api/rpc-okp4-nemeton-1/response-time-week.json
  • api/rpc-okp4-nemeton-1/uptime-month.json
  • api/rpc-okp4-nemeton-1/uptime-week.json
  • api/rpc-okp4-nemeton-1/uptime-year.json
  • api/rpc-okp4-nemeton-1/uptime.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/response-time-day.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/response-time-month.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/response-time-week.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/response-time-year.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/response-time.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/uptime-day.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/uptime-month.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/uptime-week.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/uptime-year.json
  • api/subquery-graph-ql-api-okp4-nemeton-1/uptime.json
  • graphs/nemeton-program-web-site/response-time-week.png
  • graphs/okp-4-documentation-site/response-time-week.png
  • graphs/okp-4-explorer/response-time-day.png
  • graphs/okp-4-explorer/response-time-week.png
  • graphs/okp-4-faucet/response-time-day.png
  • graphs/okp-4-faucet/response-time-week.png
  • graphs/okp-4-web-site/response-time-week.png
  • graphs/rpc-okp4-nemeton-1/response-time-week.png
  • graphs/subquery-graph-ql-api-okp4-nemeton-1/response-time-day.png
  • graphs/subquery-graph-ql-api-okp4-nemeton-1/response-time-month.png
  • graphs/subquery-graph-ql-api-okp4-nemeton-1/response-time-week.png
  • graphs/subquery-graph-ql-api-okp4-nemeton-1/response-time-year.png
  • graphs/subquery-graph-ql-api-okp4-nemeton-1/response-time.png
  • history/nemeton-program-web-site.yml
  • history/okp-4-documentation-site.yml
  • history/okp-4-explorer.yml
  • history/okp-4-faucet.yml
  • history/okp-4-web-site.yml
  • history/rpc-okp4-nemeton-1.yml
  • history/subquery-graph-ql-api-okp4-nemeton-1.yml
  • history/summary.json
Files selected for processing (2)
  • .upptimerc.yml (1 hunks)
  • README.md (1 hunks)
Files not summarized due to errors (1)
  • README.md: Error: Message exceeds token limit
Files not reviewed due to errors (1)
  • README.md (Error: diff too large)
Additional comments: 3
.upptimerc.yml (3)
  • 12-14: The configuration for the Nemeton Program Web Site and RPC okp4-nemeton-1 seems to be unchanged. Ensure that these configurations are still valid and working as expected.

  • 16-24: The new configuration for the Subquery GraphQL API okp4-nemeton-1 is added. Ensure that the URL, headers, and body are correct and match the specifications of the API. Also, verify that the __dangerous__body_degraded attribute is used correctly and as intended.

  • 26-27: The status-website configuration remains unchanged. Ensure that the cname is still valid and pointing to the correct domain.

@ccamel ccamel force-pushed the feat/add-subquery-graphql-api branch from cce9fa8 to 3b64956 Compare November 10, 2023 07:30
@ccamel ccamel merged commit a4b4543 into main Nov 10, 2023
5 checks passed
@ccamel ccamel deleted the feat/add-subquery-graphql-api branch November 10, 2023 07:30
@bot-anik bot-anik restored the feat/add-subquery-graphql-api branch November 10, 2023 07:30
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 231de76 and 3b64956.
Files selected for processing (1)
  • .upptimerc.yml (1 hunks)
Additional comments: 5
.upptimerc.yml (5)
  • 12-14: Ensure that the URL for the Nemeton Program Web Site is correct and accessible.

  • 15-15: Ensure that the URL for the RPC okp4-nemeton-1 is correct and accessible.

  • 16-23: Ensure that the method, URL, headers, and body for the Subquery GraphQL API okp4-nemeton-1 are correct and match the expected configuration. Also, verify that the API endpoint is accessible and the request body is correctly formatted.

  • 24-24: The __dangerous__body_degraded attribute is used to specify the response body attribute that should be checked for errors. Ensure that the value "errors" is the correct attribute to check for in the response body of the Subquery GraphQL API.

  • 26-27: Ensure that the URL for the status website is correct and accessible.

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

Successfully merging this pull request may close these issues.

2 participants