-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c6ac2
commit 3a77dfe
Showing
7 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# Query Repo | ||
|
||
A template for creating repos to manage your Dune queries using the CRUD API. | ||
|
||
### Setup | ||
|
||
1. First, go to the dashboard you want to create a repo for (must be owned by you/your team). Click on the "github" icon in the top right to get a popup which will display all your query ids for said dashboard. Or, just get the list queries you want to track in general. | ||
|
||
2. Copy and paste that list into the `queries.yml` file. | ||
|
||
3. Install the python requirements and run the `update_from_dune.py` script. | ||
|
||
``` | ||
pip install -r requirements.txt | ||
python scripts/update_from_dune.py | ||
``` | ||
|
||
This will bring in your query ids into `query_{id}.sql` files within the `queries` folder. You can run that same python script again anytime you need to update your work from Dune into this repo. | ||
|
||
4. Make any changes you need to directly in the repo, and any time you push a commit, `update_to_dune.py` will run and save your changes into Dune directly. | ||
|
||
### For Contributors | ||
|
||
I've set up four types of issues right now: | ||
- `bugs`: This is for data quality issues like miscalculations or broken queries. | ||
- `chart_improvements`: This is for suggesting improvements to the visualizations. | ||
- `query_improvements`: This is for suggesting improvements to the query itself, such as adding an extra column or table that enhances the results. | ||
- `generic`: This is a catch all for other questions or suggestions you may have about the dashboard. | ||
|
||
If you want to contribute, either start an issue or go directly into making a PR (using the same labels as above). Once the PR is merged, the queries will get updated in the frontend. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
query_ids: | ||
- 3237721 | ||
- 3237738 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.