-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #934 from autonomys/feat/improve-taskboard-setup
Improve taskboard setup
- Loading branch information
Showing
27 changed files
with
1,067 additions
and
457 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
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,21 +1,28 @@ | ||
type Mutation { | ||
updateAccount( | ||
args: AddTaskUpdateAccountInput! | ||
): UpdateAccountOutput | ||
slackNotification(args: SlackNotificationInput!): SlackNotificationOutput | ||
} | ||
|
||
type Mutation { | ||
updateAccount(args: UpdateAccountInput!): UpdateAccountOutput | ||
} | ||
|
||
input UpdateAccountInput { | ||
networkId: String! | ||
accountId: String! | ||
} | ||
|
||
input AddTaskUpdateAccountInput { | ||
queueName: String! | ||
data: UpdateAccountInput! | ||
jobId: String! | ||
input SlackNotificationInput { | ||
title: String! | ||
path: String | ||
message: String | ||
logData: String | ||
messageId: String | ||
} | ||
|
||
type UpdateAccountOutput { | ||
blockNumber: String! | ||
} | ||
|
||
type SlackNotificationOutput { | ||
title: String! | ||
} |
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,15 +1,32 @@ | ||
actions: | ||
- name: slackNotification | ||
definition: | ||
kind: asynchronous | ||
handler: "{{HASURA_GRAPHQL_ACTION_TASK_BOARD}}/add-task" | ||
forward_client_headers: true | ||
headers: | ||
- name: taskboard_session_secret | ||
value: "{{HASURA_GRAPHQL_ACTION_TASK_BOARD_SESSION_SECRET}}" | ||
permissions: | ||
- role: astral-api | ||
comment: Send a slack notification | ||
- name: updateAccount | ||
definition: | ||
kind: asynchronous | ||
handler: '{{HASURA_GRAPHQL_ACTION_TASK_BOARD}}/add-task' | ||
handler: "{{HASURA_GRAPHQL_ACTION_TASK_BOARD}}/add-task" | ||
forward_client_headers: true | ||
headers: | ||
- name: taskboard_session_secret | ||
value: "{{HASURA_GRAPHQL_ACTION_TASK_BOARD_SESSION_SECRET}}" | ||
permissions: | ||
- role: astral-api | ||
comment: Update account in db (will add the account if it was not indexed before) | ||
custom_types: | ||
enums: [] | ||
input_objects: | ||
- name: UpdateAccountInput | ||
- name: AddTaskUpdateAccountInput | ||
- name: SlackNotificationInput | ||
objects: | ||
- name: UpdateAccountOutput | ||
- name: SlackNotificationOutput | ||
scalars: [] |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.