Skip to content
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

Pay load updated #234

Closed
wants to merge 23 commits into from
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cf26329
"Added generatePipelineId function to blockUtils and updated Drawflow…
TeerthaDeb Aug 15, 2024
72cd9a9
Refactor generateId function in blockUtils.js and update usage in pip…
TeerthaDeb Aug 16, 2024
bf65743
Simplified `generateId` function and updated its usage in `pipelineAt…
TeerthaDeb Aug 16, 2024
c4cd3c5
Update generateId function and fix DrawflowWrapper to use pipeline.id…
TeerthaDeb Aug 19, 2024
8f2e792
Remove import of "customAlphabet" from "nanoid" in pipelineAtom.js
TeerthaDeb Aug 16, 2024
7ff3516
Zooming to pointer issue: 185
TeerthaDeb Aug 22, 2024
515e6c9
Simplified `generateId` function and updated its usage in `pipelineAt…
TeerthaDeb Aug 27, 2024
4e0e5c0
Merge branch 'Zooming-to-pointer-issue--185' of github.com:TeerthaDeb…
TeerthaDeb Aug 27, 2024
167fbb6
Simplified `generateId` function and updated its usage in `pipelineAt…
TeerthaDeb Aug 27, 2024
0216cb0
Remove import of "customAlphabet" from "nanoid" in pipelineAtom.js
TeerthaDeb Aug 27, 2024
a5ccb5b
Merge branch 'Zooming-to-pointer-issue--185' of github.com:TeerthaDeb…
TeerthaDeb Aug 27, 2024
380c95b
Merge pull request #1 from TeerthaDeb/Zooming-to-pointer-issue--185
TeerthaDeb Aug 29, 2024
0488ea4
Merge branch 'zetane:main' into main
TeerthaDeb Aug 29, 2024
daf8d70
Merge branch 'zetane:main' into main
TeerthaDeb Sep 20, 2024
4c8650c
Merge branch 'zetane:main' into main
TeerthaDeb Oct 8, 2024
0a3f6dc
Merge branch 'zetane:main' into main
TeerthaDeb Oct 21, 2024
51915f1
update code generation and add tabbed code snippets for JS and Python
TeerthaDeb Oct 21, 2024
036b089
added Tabs and TabPanels from @carbon/react
TeerthaDeb Oct 23, 2024
d0d15f1
Merge branch 'main' into payLoad-updated
TeerthaDeb Oct 23, 2024
272d88e
Updated Python code snippet for Zetaforge API call
TeerthaDeb Oct 25, 2024
2d18736
Merge branch 'payLoad-updated' of github.com:TeerthaDeb/ZetaForge int…
TeerthaDeb Oct 25, 2024
8d1eab9
Merge branch 'main' into payLoad-updated
TeerthaDeb Oct 25, 2024
3ad9764
Merge branch 'zetane:main' into payLoad-updated
TeerthaDeb Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions frontend/src/components/ui/DeployedPipelineActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
import { getScheme } from "@/client/anvil";

export const DeployedPipelineActions = ({
name,

Check failure on line 15 in frontend/src/components/ui/DeployedPipelineActions.jsx

View workflow job for this annotation

GitHub Actions / lint (20.x)

'name' is defined but never used
uuid,
hash,
configuration,
pipelineData,
}) => {
const [isModalOpen, setIsModalOpen] = useState(false);
const [activeTab, setActiveTab] = useState("js");

Check failure on line 22 in frontend/src/components/ui/DeployedPipelineActions.jsx

View workflow job for this annotation

GitHub Actions / lint (20.x)

'activeTab' is assigned a value but never used

Check failure on line 22 in frontend/src/components/ui/DeployedPipelineActions.jsx

View workflow job for this annotation

GitHub Actions / lint (20.x)

'setActiveTab' is assigned a value but never used
const [codePayload, setCodePayload] = useState({
jsCode: "",
pythonCode: "",
Expand All @@ -27,7 +27,7 @@

const generatePostPayload = () => {
const inputs = {};
Object.entries(pipelineData.pipeline).forEach(([nodeId, node]) => {

Check failure on line 30 in frontend/src/components/ui/DeployedPipelineActions.jsx

View workflow job for this annotation

GitHub Actions / lint (20.x)

'nodeId' is defined but never used
if (node.inputs) {
Object.entries(node.inputs).forEach(([inputName, input]) => {
if (input.connections && input.connections.length > 0) {
Expand All @@ -50,10 +50,19 @@

const pythonCode = `from zetaforge import Zetaforge

zetaforge = Zetaforge(address='${getScheme(configuration.anvil.host)}://${configuration.anvil.host}:${configuration.anvil.port}', token='${configuration.anvil.token}')
# Create an instance of the Zetaforge class
zetaforge = Zetaforge(base_url='${getScheme(configuration.anvil.host)}://${configuration.anvil.host}:${configuration.anvil.port}', token='${configuration.anvil.token}')

result = zetaforge.run('${name}:${hash.substring(0, 8)}', input=${JSON.stringify(inputs, null, 2)})
print('Pipeline execution result:', result)
pipelineUuid = "${uuid}"
pipelineHash = "${hash}"
inputs = ${JSON.stringify(inputs, null, 2)}

try:
execute_response = zetaforge.run(pipelineUuid, pipelineHash, inputs)
print('Pipeline execution result:', execute_response)

except Exception as error:
print('Failed to execute pipeline:', str(error))
`;

const jsCode = `import Zetaforge from "zetaforge";
Expand Down Expand Up @@ -84,7 +93,7 @@

const handleClose = () => setIsModalOpen(false);

const handleUndeploy = () => {

Check failure on line 96 in frontend/src/components/ui/DeployedPipelineActions.jsx

View workflow job for this annotation

GitHub Actions / lint (20.x)

'handleUndeploy' is assigned a value but never used
console.log("Undeploying pipeline:", uuid);
};

Expand Down
Loading