-
Notifications
You must be signed in to change notification settings - Fork 4
add pcc min parameters #920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
| * 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'; |
There was a problem hiding this comment.
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
src/services/pcc-min.ts
Outdated
|
|
||
| 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`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const url = `${PREFIX_STUDY_QUERIES}/v1/studies/${studyUuid}/pcc-min/parameters`; | |
| const url = `${getStudyUrl(studyUuid)}/pcc-min/parameters`; |
| // 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; | ||
| }; |
There was a problem hiding this comment.
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
| // 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; | |
| }; |
| const timer = setTimeout(() => { | ||
| setParamsLoading(true); | ||
| }, 700); |
There was a problem hiding this comment.
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 ?
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
|


PR Summary