-
Notifications
You must be signed in to change notification settings - Fork 51
Hasura prep command in flusher #2395
base: master
Are you sure you want to change the base?
Conversation
Your Render PR Server URL is https://d3n-scan-pr-2395.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bsl8rq2pp1jns01k5b90. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor comments
flusher/flusher/hasura.py
Outdated
engine.execute('''ALTER SCHEMA hdb_catalog OWNER TO hasura;''') | ||
engine.execute('''ALTER SCHEMA hdb_views OWNER TO hasura;''') | ||
|
||
# # grant select permissions on information_schema and pg_catalog. This is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need double comment
flusher/flusher/hasura.py
Outdated
@@ -0,0 +1,52 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this empty line
@@ -125,7 +125,7 @@ services: | |||
image: bandchain_flusher:latest | |||
networks: | |||
bandchain: | |||
command: sh -c "sleep 30 && python main.py init bandchain test --db postgres:postgrespassword@172.18.0.88:5432/postgres" | |||
command: sh -c "sleep 30 && python main.py init bandchain test --db postgres:postgrespassword@172.18.0.88:5432/postgres && python main.py hasura postgrespassword --db postgres:postgrespassword@172.18.0.88:5432/postgres" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want docker to use new user, please use the new user on hasura service too.
@Benzbeeb please resolve conflict and fix following comments |
Fixed: #2389
Implementation details
Create hasura role with input password
Create schema
Grant access to new user
Track all tables/relation
Edit validator-account relation
Rename redelegation relation
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG_UNRELEASED.md
Files changed
tab in the Github PR explorer)