-
Notifications
You must be signed in to change notification settings - Fork 2
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 #32 from smartcontractkit/fix-removal-of-timestamp…
…s-for-node-and-chain Fixes the GQL call to handle the removal of timestamps from Node and …
- Loading branch information
Showing
7 changed files
with
5 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@smartcontractkit/operator-ui': patch | ||
--- | ||
|
||
Fixes Node and Chain GQL queries which call the `CreatedAt` field which was removed |
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 |
---|---|---|
|
@@ -17,7 +17,6 @@ export const NODE_PAYLOAD_FIELDS = gql` | |
} | ||
httpURL | ||
wsURL | ||
createdAt | ||
state | ||
sendOnly | ||
} | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ export const NODES_PAYLOAD__RESULTS_FIELDS = gql` | |
id | ||
} | ||
name | ||
createdAt | ||
state | ||
sendOnly | ||
} | ||
|
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,34 +1,25 @@ | ||
import isoDate, { MINUTE_MS } from 'test-helpers/isoDate' | ||
|
||
// buildChains builds a chain for the FetchChains query. | ||
export function buildChain( | ||
overrides?: Partial<ChainsPayload_ResultsFields>, | ||
): ChainsPayload_ResultsFields { | ||
const minuteAgo = isoDate(Date.now() - MINUTE_MS) | ||
|
||
return { | ||
__typename: 'Chain', | ||
id: '5', | ||
enabled: true, | ||
createdAt: minuteAgo, | ||
...overrides, | ||
} | ||
} | ||
|
||
// buildsChains builds a list of chains. | ||
export function buildChains(): ReadonlyArray<ChainsPayload_ResultsFields> { | ||
const minuteAgo = isoDate(Date.now() - MINUTE_MS) | ||
|
||
return [ | ||
buildChain({ | ||
id: '5', | ||
enabled: true, | ||
createdAt: minuteAgo, | ||
}), | ||
buildChain({ | ||
id: '42', | ||
enabled: true, | ||
createdAt: minuteAgo, | ||
}), | ||
] | ||
} |
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