Skip to content

Commit f73ffe5

Browse files
committed
Merge branch 'master' into fix-compliance-issues-with-gql-server
2 parents ab654d6 + e36fc63 commit f73ffe5

File tree

178 files changed

+5099
-2430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+5099
-2430
lines changed

.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[alias]
22
# Warnings create a lot of noise, we only print errors.
33
check-clippy = "clippy --no-deps -- --allow warnings"
4+
5+
# Can be safely removed once Cargo's sparse protocol (see
6+
# https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol)
7+
# becomes the default.
8+
[registries.crates-io]
9+
protocol = "sparse"

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+
{
4+
"name": "Rust",
5+
"dockerComposeFile": "docker-compose.yml",
6+
"service": "devcontainer",
7+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
8+
"features": {
9+
"ghcr.io/devcontainers/features/rust:1": {
10+
"version": "1.66.0"
11+
}
12+
},
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"rust-lang.rust-analyzer@prerelease", // rust analyser, pre-release has less bugs
17+
"cschleiden.vscode-github-actions", // github actions
18+
"serayuzgur.crates", // crates
19+
"vadimcn.vscode-lldb" //debug
20+
],
21+
"settings": {
22+
"editor.formatOnSave": true,
23+
"terminal.integrated.defaultProfile.linux": "zsh"
24+
}
25+
}
26+
},
27+
28+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
29+
// "mounts": [
30+
// {
31+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
32+
// "target": "/usr/local/cargo",
33+
// "type": "volume"
34+
// }
35+
// ]
36+
"forwardPorts": [
37+
8000, // GraphiQL on node-port
38+
8020, // create and deploy subgraphs
39+
5001 //ipfs
40+
]
41+
42+
}

.devcontainer/docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: '3'
2+
3+
services:
4+
devcontainer:
5+
image: mcr.microsoft.com/vscode/devcontainers/rust:bullseye
6+
volumes:
7+
- ../..:/workspaces:cached
8+
network_mode: service:database
9+
command: sleep infinity
10+
ipfs:
11+
image: ipfs/kubo:v0.18.1
12+
restart: unless-stopped
13+
network_mode: service:database
14+
database:
15+
image: postgres:latest
16+
restart: unless-stopped
17+
command:
18+
[
19+
"postgres",
20+
"-cshared_preload_libraries=pg_stat_statements"
21+
]
22+
volumes:
23+
- postgres-data:/var/lib/postgresql/data
24+
environment:
25+
POSTGRES_USER: graph-node
26+
POSTGRES_PASSWORD: let-me-in
27+
POSTGRES_DB: graph-node
28+
29+
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
30+
31+
volumes:
32+
postgres-data:

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Bug report
2+
description: Use this issue template if something is not working the way it should be.
3+
title: "[Bug] "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: bug-report
12+
attributes:
13+
label: Bug report
14+
description: Please provide a detailed overview of the expected behavior, and what happens instead. The more details, the better. You can use Markdown.
15+
- type: textarea
16+
id: graph-node-logs
17+
attributes:
18+
label: Relevant log output
19+
description: Please copy and paste any relevant log output (either graph-node or hosted service logs). This will be automatically formatted into code, so no need for backticks. Leave black if it doesn't apply.
20+
render: Shell
21+
- type: markdown
22+
attributes:
23+
value: Does this bug affect a specific subgraph deployment? If not, leave the following blank.
24+
- type: input
25+
attributes:
26+
label: IPFS hash
27+
placeholder: e.g. QmST8VZnjHrwhrW5gTyaiWJDhVcx6TooRv85B49zG7ziLH
28+
validations:
29+
required: false
30+
- type: input
31+
attributes:
32+
label: Subgraph name or link to explorer
33+
placeholder: e.g. https://thegraph.com/explorer/subgraphs/3nXfK3RbFrj6mhkGdoKRowEEti2WvmUdxmz73tben6Mb?view=Overview&chain=mainnet
34+
validations:
35+
required: false
36+
- type: checkboxes
37+
id: checkboxes
38+
attributes:
39+
label: Some information to help us out
40+
options:
41+
- label: Tick this box if this bug is caused by a regression found in the latest release.
42+
- label: Tick this box if this bug is specific to the hosted service.
43+
- label: I have searched the issue tracker to make sure this issue is not a duplicate.
44+
required: true
45+
- type: dropdown
46+
id: operating-system
47+
attributes:
48+
label: OS information
49+
description: What OS are you running? Leave blank if it doesn't apply.
50+
options:
51+
- Windows
52+
- macOS
53+
- Linux
54+
- Other (please specify in your bug report)

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Feature request
2+
description: To request or discuss new features.
3+
title: "[Feature] "
4+
labels: ["enhancement"]
5+
body:
6+
- type: textarea
7+
id: feature-description
8+
attributes:
9+
label: Description
10+
description: Please provide a detailed overview of the desired feature or improvement, along with any examples or useful information. You can use Markdown.
11+
- type: textarea
12+
id: blockers
13+
attributes:
14+
label: Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.
15+
validations:
16+
required: false
17+
- type: checkboxes
18+
id: checkboxes
19+
attributes:
20+
label: Some information to help us out
21+
options:
22+
- label: Tick this box if you plan on implementing this feature yourself.
23+
- label: I have searched the issue tracker to make sure this issue is not a duplicate.
24+
required: true

0 commit comments

Comments
 (0)