removing a field from the tenzir modal that is not needed
This commit is contained in:
@@ -1362,7 +1362,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
const topic = document.getElementById('topic')?.value;
|
const topic = document.getElementById('topic')?.value;
|
||||||
const bootstrapServers = document.getElementById('bootstrap_servers')?.value;
|
const bootstrapServers = document.getElementById('bootstrap_servers')?.value;
|
||||||
const groupId = document.getElementById('group_id')?.value;
|
const groupId = document.getElementById('group_id')?.value;
|
||||||
const autoOffsetReset = document.getElementById('auto_offset_reset')?.value;
|
//const autoOffsetReset = document.getElementById('auto_offset_reset')?.value;
|
||||||
|
|
||||||
if(topic) {
|
if(topic) {
|
||||||
trigger.parameters.push({
|
trigger.parameters.push({
|
||||||
@@ -1391,12 +1391,12 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (autoOffsetReset) {
|
// if (autoOffsetReset) {
|
||||||
trigger.parameters.push({
|
// trigger.parameters.push({
|
||||||
name: "auto_offset_reset",
|
// name: "auto_offset_reset",
|
||||||
value: autoOffsetReset
|
// value: autoOffsetReset
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
setTenzirConfigModalOpen(false);
|
setTenzirConfigModalOpen(false);
|
||||||
};
|
};
|
||||||
@@ -7488,12 +7488,6 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
const data = usecase;
|
const data = usecase;
|
||||||
data.start_node = mappedStartnode
|
data.start_node = mappedStartnode
|
||||||
|
|
||||||
if (data.type === "create") {
|
|
||||||
toast("Creating pipeline");
|
|
||||||
} else if (data.type === "stop") {
|
|
||||||
toast("stopping pipeline");
|
|
||||||
}
|
|
||||||
|
|
||||||
const url = `${globalUrl}/api/v1/triggers/pipeline`;
|
const url = `${globalUrl}/api/v1/triggers/pipeline`;
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@@ -7512,12 +7506,8 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then((responseJson) => {
|
.then((responseJson) => {
|
||||||
if (!responseJson.success) {
|
if (!responseJson.success && data.type !== "delete") {
|
||||||
if (responseJson.reason !== undefined) {
|
toast("Failed to set pipeline: " + responseJson.reason);
|
||||||
toast("Failed to set pipeline: " + responseJson.reason);
|
|
||||||
} else {
|
|
||||||
toast.error("Failed to stop pipeline")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (data.type === "create") {
|
if (data.type === "create") {
|
||||||
toast("Pipeline will be created!");
|
toast("Pipeline will be created!");
|
||||||
@@ -8026,7 +8016,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
/*
|
/*
|
||||||
if (trigger.trigger_type === "PIPELINE") {
|
if (trigger.trigger_type === "PIPELINE") {
|
||||||
if (userdata.support !== true) {
|
if (userdata.support !== true) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
@@ -9059,7 +9049,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (app.trigger_type === "PIPELINE" && userdata.support !== true) {
|
if (globalUrl.includes("shuffler.io") && app.trigger_type === "PIPELINE" && userdata.support !== true) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14183,7 +14173,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const PipelineSidebar = Object.getOwnPropertyNames(selectedTrigger).length === 0 || workflow.triggers[selectedTriggerIndex] === undefined && selectedTrigger.trigger_type !== "SCHEDULE" ? null : !userdata.support === true ? null :
|
const PipelineSidebar = Object.getOwnPropertyNames(selectedTrigger).length === 0 || workflow.triggers[selectedTriggerIndex] === undefined && selectedTrigger.trigger_type !== "SCHEDULE" ? null : !userdata.support === true && globalUrl.includes("shuffler.io") ? null :
|
||||||
<div style={appApiViewStyle}>
|
<div style={appApiViewStyle}>
|
||||||
<h3 style={{ marginBottom: "5px" }}>
|
<h3 style={{ marginBottom: "5px" }}>
|
||||||
{selectedTrigger.app_name}: {selectedTrigger.status}
|
{selectedTrigger.app_name}: {selectedTrigger.status}
|
||||||
@@ -14381,7 +14371,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
const topic = (selectedTrigger?.parameters?.find(param => param.name === "topic")?.value) || ''
|
const topic = (selectedTrigger?.parameters?.find(param => param.name === "topic")?.value) || ''
|
||||||
const bootstrapServers = (selectedTrigger?.parameters?.find(param => param.name === "bootstrap_servers")?.value) || ''
|
const bootstrapServers = (selectedTrigger?.parameters?.find(param => param.name === "bootstrap_servers")?.value) || ''
|
||||||
const groupId = (selectedTrigger?.parameters?.find(param => param.name === "group_id")?.value) || ''
|
const groupId = (selectedTrigger?.parameters?.find(param => param.name === "group_id")?.value) || ''
|
||||||
const autoOffsetReset = (selectedTrigger?.parameters?.find(param => param.name === "auto_offset_reset")?.value) || ''
|
// const autoOffsetReset = (selectedTrigger?.parameters?.find(param => param.name === "auto_offset_reset")?.value) || ''
|
||||||
let command = "from kafka"
|
let command = "from kafka"
|
||||||
|
|
||||||
if(topic) {
|
if(topic) {
|
||||||
@@ -14402,11 +14392,13 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
} else {
|
} else {
|
||||||
command = `${command},group.id=${selectedTrigger.id}`
|
command = `${command},group.id=${selectedTrigger.id}`
|
||||||
}
|
}
|
||||||
if(autoOffsetReset) {
|
// if(autoOffsetReset) {
|
||||||
command = `${command},auto.offset.reset=${autoOffsetReset}`
|
// command = `${command},auto.offset.reset=${autoOffsetReset}`
|
||||||
} else {
|
// } else {
|
||||||
command = `${command},auto.offset.reset=earliest`
|
// command = `${command},auto.offset.reset=earliest`
|
||||||
}
|
|
||||||
|
// }
|
||||||
|
command = `${command},auto.offset.reset=earliest`
|
||||||
command = `${command},client.id=${selectedTrigger.id},enable.auto.commit=true,auto.commit.interval.ms=1`
|
command = `${command},client.id=${selectedTrigger.id},enable.auto.commit=true,auto.commit.interval.ms=1`
|
||||||
command = `${command} read json | to ${globalUrl}/api/v1/pipelines/pipeline_${selectedTrigger.id}`
|
command = `${command} read json | to ${globalUrl}/api/v1/pipelines/pipeline_${selectedTrigger.id}`
|
||||||
|
|
||||||
@@ -19462,8 +19454,8 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
pointerEvents: "auto",
|
pointerEvents: "auto",
|
||||||
color: "white",
|
color: "white",
|
||||||
minWidth: 600,
|
minWidth: 600,
|
||||||
minHeight: 500,
|
minHeight: 450,
|
||||||
maxHeight: 500,
|
maxHeight: 450,
|
||||||
padding: 15,
|
padding: 15,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
zIndex: 10012,
|
zIndex: 10012,
|
||||||
@@ -19532,7 +19524,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
placeholder={"tenzir"}
|
placeholder={"tenzir"}
|
||||||
defaultValue={(selectedTrigger?.parameters?.find(param => param.name === "group_id")?.value) || ''}
|
defaultValue={(selectedTrigger?.parameters?.find(param => param.name === "group_id")?.value) || ''}
|
||||||
/>
|
/>
|
||||||
<b>auto.offest.reset</b>
|
{/* <b>auto.offest.reset</b>
|
||||||
<TextField
|
<TextField
|
||||||
id="auto_offset_reset"
|
id="auto_offset_reset"
|
||||||
style={{
|
style={{
|
||||||
@@ -19546,7 +19538,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
color="primary"
|
color="primary"
|
||||||
placeholder={"earliest"}
|
placeholder={"earliest"}
|
||||||
defaultValue={(selectedTrigger?.parameters?.find(param => param.name === "auto_offset_reset")?.value) || ''}
|
defaultValue={(selectedTrigger?.parameters?.find(param => param.name === "auto_offset_reset")?.value) || ''}
|
||||||
/>
|
/> */}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user