Skip to content

Commit

Permalink
0.24.2 Analysis with selection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomansion committed Jul 7, 2023
1 parent 92d6cb3 commit 9659639
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: "2.0"
info:
version: 0.24.1
version: 0.24.2
title: DebiAI_BACKEND_API
description: DebiAI backend api
contact:
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "debiai_frontend",
"version": "0.24.1",
"version": "0.24.2",
"description": "Frontend for Debiai, made with Vuejs",
"license": "Apache-2.0",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/services/dataLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ async function getProjectSamplesIdList(
// If the project is small, we gather all ID at once
// If we are analyzing selections or models, we don't split the request (not implemented yet)
if (
projectNbSamples !== null &&
(projectNbSamples <= accepteSize || selectionIds.length > 0 || modelIds.length > 0)
(projectNbSamples !== null && projectNbSamples <= accepteSize) ||
selectionIds.length > 0 ||
modelIds.length > 0
) {
// At the moment, we gather all ID when we deal with selections and models
// If we have a small project, we gather all ID
Expand All @@ -113,7 +114,7 @@ async function getProjectSamplesIdList(
});
return res.samples;
} else if (projectNbSamples === null) {
// If we don't kwow the number of samples, we gather all ID by chunks
// If we don't know the number of samples, we gather all ID by chunks
// We stop when we get less samples than the chunk size
let samplesIdList = [];
let i = 0;
Expand Down

0 comments on commit 9659639

Please sign in to comment.