-
Notifications
You must be signed in to change notification settings - Fork 1
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 #18 from simonsobs/dev
Stop loading all data in memory in the history page
- Loading branch information
Showing
7 changed files
with
339 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query RDBRun($runNo: Int!) { | ||
rdb { | ||
run(runNo: $runNo) { | ||
id | ||
runNo | ||
state | ||
startedAt | ||
endedAt | ||
script | ||
exception | ||
} | ||
} | ||
} |
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,30 @@ | ||
query RDBRuns( | ||
$before: String | ||
$after: String | ||
$first: Int | ||
$last: Int | ||
) { | ||
rdb { | ||
runs(before: $before, after: $after, first: $first, last: $last) { | ||
pageInfo { | ||
startCursor | ||
endCursor | ||
hasNextPage | ||
hasPreviousPage | ||
} | ||
totalCount | ||
edges { | ||
cursor | ||
node { | ||
id | ||
runNo | ||
state | ||
startedAt | ||
endedAt | ||
script | ||
exception | ||
} | ||
} | ||
} | ||
} | ||
} |
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,5 +1,5 @@ | ||
query Runs { | ||
history { | ||
rdb { | ||
runs { | ||
edges { | ||
node { | ||
|
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,9 +1,16 @@ | ||
|
||
export interface Edge<Node> { | ||
node?: Node | null | undefined; | ||
} | ||
|
||
export interface PageInfo { | ||
hasNextPage?: boolean; | ||
hasPreviousPage?: boolean; | ||
startCursor?: string | null; | ||
endCursor?: string | null; | ||
} | ||
|
||
export interface Connection<Node> { | ||
pageInfo?: PageInfo; | ||
totalCount?: number; | ||
edges: (Edge<Node> | null)[]; | ||
} |
Oops, something went wrong.