mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-08-29 21:32:59 +02:00
Adapt analysis and list to new urql version
- plotSelection.svelte not yet working
This commit is contained in:
@@ -29,22 +29,22 @@
|
||||
"Invalid list type provided!"
|
||||
);
|
||||
|
||||
let filter = [];
|
||||
|
||||
const stats = queryStore({
|
||||
client: getContextClient(),
|
||||
query: gql`
|
||||
query($filter: [JobFilter!]!) {
|
||||
rows: jobsStatistics(filter: $filter, groupBy: ${type}) {
|
||||
const client = getContextClient();
|
||||
const query = gql`
|
||||
query($filters: [JobFilter!]!) {
|
||||
rows: jobsStatistics(filter: $filters, groupBy: ${type}) {
|
||||
id
|
||||
name
|
||||
totalJobs
|
||||
totalWalltime
|
||||
totalCoreHours
|
||||
}
|
||||
}`,
|
||||
variables: { filter },
|
||||
pause: true,
|
||||
}`
|
||||
|
||||
$: stats = queryStore({
|
||||
client,
|
||||
query,
|
||||
variables: { filters },
|
||||
});
|
||||
|
||||
let filters;
|
||||
@@ -100,8 +100,7 @@
|
||||
startTimeQuickSelect={true}
|
||||
menuText="Only {type.toLowerCase()}s with jobs that match the filters will show up"
|
||||
on:update={({ detail }) => {
|
||||
filter = detail.filters;
|
||||
stats.resume();
|
||||
filters = detail.filters;
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
|
Reference in New Issue
Block a user