Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Oct 3, 2024
1 parent 955d087 commit e515201
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 167 deletions.
16 changes: 8 additions & 8 deletions src/libs/actions/data-lake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ export const setCockpitActionParameterData = (id: string, data: string | number
cockpitActionParametersData[id] = data
}

const placeholderParameterOneInfo = new CockpitActionParameter(
'placeholderParameterOne',
const fakeRovNameInfo = new CockpitActionParameter(
'fakeRovName',
'Placeholder Parameter One',
'string',
true,
'This is a placeholder parameter for the first parameter'
)

const placeholderParameterTwoInfo = new CockpitActionParameter(
'placeholderParameterTwo',
const fakeRovAgeInitialDivesInfo = new CockpitActionParameter(
'fakeRovAgeInitialDives',
'Placeholder Parameter Two',
'number',
true,
Expand All @@ -98,10 +98,10 @@ const placeholderParameterThreeInfo = new CockpitActionParameter(
'This is a placeholder parameter for the third parameter'
)

setCockpitActionParameterInfo(placeholderParameterOneInfo.id, placeholderParameterOneInfo)
setCockpitActionParameterInfo(placeholderParameterTwoInfo.id, placeholderParameterTwoInfo)
setCockpitActionParameterInfo(fakeRovNameInfo.id, fakeRovNameInfo)
setCockpitActionParameterInfo(fakeRovAgeInitialDivesInfo.id, fakeRovAgeInitialDivesInfo)
setCockpitActionParameterInfo(placeholderParameterThreeInfo.id, placeholderParameterThreeInfo)

setCockpitActionParameterData(placeholderParameterOneInfo.id, 'John Doe')
setCockpitActionParameterData(placeholderParameterTwoInfo.id, 5)
setCockpitActionParameterData(fakeRovNameInfo.id, 'John Doe')
setCockpitActionParameterData(fakeRovAgeInitialDivesInfo.id, 5)
setCockpitActionParameterData(placeholderParameterThreeInfo.id, true)
1 change: 0 additions & 1 deletion src/libs/actions/http-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export const getHttpRequestActionCallback = (id: string): HttpRequestActionCallb
}
}

console.log('parsedUrlParams', parsedUrlParams)
const cockpitInputsInUrlParams = Object.entries(action.urlParams).filter(
([, value]) => typeof value === 'string' && value.startsWith('{{') && value.endsWith('}}')
)
Expand Down
Loading

0 comments on commit e515201

Please sign in to comment.