Skip to content

Conversation

@souissimai
Copy link
Contributor

PR Summary

SOUISSI Maissa (Externe) and others added 2 commits November 10, 2025 16:22
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import type { UUID } from 'node:crypto';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this file into src/services


export function updatePccMinParameters(studyUuid: UUID | null, newParams: PccMinParameters | null) {
console.info('set study pcc min parameters');
const url = `${PREFIX_STUDY_QUERIES}/v1/studies/${studyUuid}/pcc-min/parameters`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const url = `${PREFIX_STUDY_QUERIES}/v1/studies/${studyUuid}/pcc-min/parameters`;
const url = `${getStudyUrl(studyUuid)}/pcc-min/parameters`;

Comment on lines 32 to 47
// GridExplore versus GridStudy exclusive input params
type UsePccMinParametersFormProps =
| {
parametersUuid: UUID;
name: string;
description: string | null;
studyUuid: null;
parameters: null;
}
| {
parametersUuid: null;
name: null;
description: null;
studyUuid: UUID | null;
parameters: PccMinParameters | null;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe keep it simple, we don't manage GridExplore edition for now

Suggested change
// GridExplore versus GridStudy exclusive input params
type UsePccMinParametersFormProps =
| {
parametersUuid: UUID;
name: string;
description: string | null;
studyUuid: null;
parameters: null;
}
| {
parametersUuid: null;
name: null;
description: null;
studyUuid: UUID | null;
parameters: PccMinParameters | null;
};
type UsePccMinParametersFormProps = {
parametersUuid: UUID | null;
name: string | null;
description: string | null;
studyUuid: UUID | null;
parameters: PccMinParameters | null;
};

Comment on lines +94 to +96
const timer = setTimeout(() => {
setParamsLoading(true);
}, 700);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ? Why do we need to wait 700ms to set that params are loading ?

@souissimai souissimai requested a review from sBouzols November 13, 2025 20:24
SOUISSI Maissa (Externe) added 2 commits November 13, 2025 21:27
fix
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants