-
Notifications
You must be signed in to change notification settings - Fork 71
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
feat: add cancel button for offline deals waiting for data #1413
Conversation
Nice work 🙌 I'd suggest that instead of creating a new mutation CancelOfflineDealAwaitingData we just use the existing dealCancel endpoint, and make it work for offline deals. |
@dirkmc I have updated the mutations. I should have caught that during the initial commit. |
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.
One nit but otherwise LGTM 👍
Please test manually to make sure it works after the refactor and then feel free to merge
react/src/DealDetail.js
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
import React, {useEffect, useState} from "react"; | |||
import {useMutation, useQuery, useSubscription} from "@apollo/react-hooks"; | |||
import {DealCancelMutation, DealFailPausedMutation, DealRetryPausedMutation, DealSubscription, EpochQuery} from "./gql"; | |||
import {DealCancelMutation, DealFailPausedMutation, DealRetryPausedMutation, DealSubscription, EpochQuery, CancelOfflineDealAwaitingData} from "./gql"; |
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.
I don't think you need CancelOfflineDealAwaitingData anymore
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.
fixes #1403