Skip to content

Commit

Permalink
fix: Update LiveViewPage layout and adjust AnalyzerRuns fetch method (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Dec 26, 2023
1 parent 05fdf9c commit d01d7a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions frontend/src/pages/LiveViewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ export function LiveViewPage() {
const { data, loading, error } = useRecentRunsQuery({});
if (loading || error) {
return (
<>
<PageLayout>
<Breadcrumbs aria-label="breadcrumb">
<Link color="inherit" href="/">
Home
</Link>
<Typography color="textPrimary">LiveView</Typography>
</Breadcrumbs>
<LinearProgress sx={{ paddingTop: '5px' }} />
</>
</PageLayout>
);
}
console.log(data);
if (!data?.recentRuns || data.recentRuns.length === 0) {
return (
<PageLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import io.github.martinwitt.laughing_train.mining.AnalyzerRunGraphQlDto;
import io.quarkus.security.Authenticated;
import java.util.List;
import org.eclipse.microprofile.graphql.GraphQLApi;
import org.eclipse.microprofile.graphql.Mutation;
import org.eclipse.microprofile.graphql.Query;

import java.util.List;

/** This class provides GraphQL endpoints for querying and retrieving analyzer run data. */
@GraphQLApi
public class MiningGraphQL {
Expand Down Expand Up @@ -42,7 +43,7 @@ private List<AnalyzerRunGraphQlDto> constructAnalyzerRunGraphQlDtos(
* @return A list of AnalyzerRunDao objects.
*/
private List<AnalyzerRunDao> fetchAnalyzerRuns(int limit) {
return AnalyzerRunDao.find("ORDER BY localDateTime DESC LIMIT").page(0, limit).list();
return AnalyzerRunDao.find("ORDER BY localDateTime DESC").page(0, limit).list();
}

@Authenticated
Expand Down

0 comments on commit d01d7a9

Please sign in to comment.