-
- Use the job object to access data about the original job
-
-
- {
- if (!selected) return
- ;(options[selected.kind][selected.script_path] ??= {}).use_latest_version =
- e.detail as boolean
- }}
- size="sm"
- options={{
- right: 'Always use latest version',
- rightTooltip:
- selected.kind === 'flow'
- ? 'Flow jobs will always run on the latest version of the flow'
- : 'Run all jobs with the latest version of the script even if they originally ran an older version'
- }}
- />
+
+
+ {#if selected}
+
+
+ Use the job object to access data about the original job
+
+
+ {
+ if (!selected) return
+ ;(options[selected.kind][selected.script_path] ??= {}).use_latest_version =
+ e.detail as boolean
+ }}
+ size="sm"
+ options={{
+ right: 'Always use latest version',
+ rightTooltip:
+ selected.kind === 'flow'
+ ? 'Flow jobs will always run on the latest version of the flow'
+ : 'Run all jobs with the latest version of the script even if they originally ran an older version'
+ }}
+ />
-
-
- {@const displayedSchema = selectedUsesLatestSchema
- ? (selected.latest_schema as Schema | undefined)
- : mergeSchemasForBatchReruns(selected.schemas.map((s) => (s.schema as Schema) ?? {}))}
- {@const extraLib = buildExtraLibForBatchReruns({
- schemas: selected.schemas,
- script_path: selected.script_path
- })}
-
- {#key [selected, displayedSchema]}
- {#each Object.keys(displayedSchema?.properties ?? {}) as propertyName}
-
- {
- if (!selected) return
- const newArg = e.detail.arg as InputTransform
- ;((options[selected.kind][selected.script_path] ??= {}).input_transforms ??=
- {})[propertyName] = newArg
- }}
- argName={propertyName}
- schema={displayedSchema ?? {}}
- {extraLib}
- previousModuleId={undefined}
- pickableProperties={{
- hasResume: false,
- previousId: undefined,
- priorIds: {},
- flow_input: {}
- }}
- hideHelpButton
- {...propertyAlwaysExists(propertyName, selected)
- ? {}
- : {
- headerTooltip:
- 'This property does not exist on all versions of the script. You can handle different cases in the code below',
- HeaderTooltipIcon: TriangleAlert,
- headerTooltipIconClass: 'text-orange-500'
- }}
- {...propertyAlwaysHasSameType(propertyName, selected)
- ? {}
- : {
- headerTooltip:
- 'This property does not always have the same type depending on the version of the script. You can handle different cases in the code below',
- HeaderTooltipIcon: TriangleAlert,
- headerTooltipIconClass: 'text-orange-500'
- }}
- />
-
- {/each}
- {/key}
-