Skip to content

Commit

Permalink
Add requireField cases to resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Aug 28, 2023
1 parent c84b819 commit 69519ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion internal/graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions web/frontend/src/Analysis.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
client: client,
query: gql`
query($jobFilters: [JobFilter!]!, $paging: PageRequest!) {
jobsStatistics(filter: $jobFilters, page: $paging, sortBy: COREHOURS, groupBy: USER) {
topUser: jobsStatistics(filter: $jobFilters, page: $paging, sortBy: COREHOURS, groupBy: USER) {
id
totalCoreHours
}
Expand Down Expand Up @@ -177,16 +177,16 @@
<Pie
size={colWidth1}
sliceLabel='Core Hours'
quantities={$topQuery.data.jobsStatistics.map((tu) => tu.totalCoreHours)}
entities={$topQuery.data.jobsStatistics.map((tu) => tu.id)}
quantities={$topQuery.data.topUser.map((tu) => tu.totalCoreHours)}
entities={$topQuery.data.topUser.map((tu) => tu.id)}
/>
{/key}
</div>
</Col>
<Col>
<Table>
<tr class="mb-2"><th>Legend</th><th>User Name</th><th>Core Hours</th></tr>
{#each $topQuery.data.jobsStatistics as { id, totalCoreHours }, i}
{#each $topQuery.data.topUser as { id, totalCoreHours }, i}
<tr>
<td><Icon name="circle-fill" style="color: {colors[i]};"/></td>
<th scope="col"><a href="/monitoring/user/{id}?cluster={cluster.name}">{id}</a></th>
Expand Down

0 comments on commit 69519ec

Please sign in to comment.