Skip to content

Commit

Permalink
feat(ui-hydro): the endpoints are renamed hydro/inflow-structure (w…
Browse files Browse the repository at this point in the history
…ith a dash)
  • Loading branch information
laurent-laporte-pro committed Feb 1, 2024
1 parent 4bb66d1 commit 4b83c32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions antarest/study/web/study_data_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from antarest.study.business.advanced_parameters_management import AdvancedParamsFormFields
from antarest.study.business.allocation_management import AllocationFormFields, AllocationMatrix
from antarest.study.business.area_management import AreaCreationDTO, AreaInfoDTO, AreaType, AreaUI, LayerInfoDTO
from antarest.study.business.areas.hydro_management import ManagementOptionsFormFields, InflowStructure
from antarest.study.business.areas.hydro_management import InflowStructure, ManagementOptionsFormFields
from antarest.study.business.areas.properties_management import PropertiesFormFields
from antarest.study.business.areas.renewable_management import (
RenewableClusterCreation,
Expand Down Expand Up @@ -424,7 +424,7 @@ def set_hydro_form_values(
study_service.hydro_manager.set_field_values(study, data, area_id)

@bp.get(
"/studies/{study_id}/areas/{area_id}/hydro/inflowstructure",
"/studies/{study_id}/areas/{area_id}/hydro/inflow-structure",
tags=[APITag.study_data],
summary="Get inflow structure form values",
response_model=InflowStructure,
Expand All @@ -443,7 +443,7 @@ def get_inflow_structure(
return study_service.hydro_manager.get_inflow_structure(study, area_id)

@bp.put(
"/studies/{study_id}/areas/{area_id}/hydro/inflowstructure",
"/studies/{study_id}/areas/{area_id}/hydro/inflow-structure",
tags=[APITag.study_data],
summary="Update inflow structure form values",
response_model=InflowStructure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface InflowStructureFields {
////////////////////////////////////////////////////////////////

function makeRequestURL(studyId: StudyMetadata["id"], areaId: string): string {
return `v1/studies/${studyId}/areas/${areaId}/hydro/inflowstructure`;
return `v1/studies/${studyId}/areas/${areaId}/hydro/inflow-structure`;
}

export async function getInflowStructureFields(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Hydro() {

return [
{ label: "Management options", path: `${basePath}/management` },
{ label: "Inflow structure", path: `${basePath}/inflowstructure` },
{ label: "Inflow structure", path: `${basePath}/inflow-structure` },
{ label: "Allocation", path: `${basePath}/allocation` },
{ label: "Correlation", path: `${basePath}/correlation` },
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface AreaCoefficientItem {

export const HYDRO_ROUTES: HydroRoute[] = [
{
path: "inflowstructure",
path: "inflow-structure",
type: HydroMatrixType.InflowPattern,
isSplitView: true,
splitConfig: {
Expand Down

0 comments on commit 4b83c32

Please sign in to comment.