Commit graph

10247 commits

Author SHA1 Message Date
Devanshu Rastogi
07ba7acdc6
Fix: Workflow LTS migration UI issues (#13245)
* Fix: Rest API UI Alignment

* Update submodule reference

* Update frontend submodule ref

* update submodule ref

* Update frontend submodule ref
2025-07-08 18:53:36 +05:30
Muhsin Shah C P
1285779eca
fix: Handle params in trigger function to support non-array input (#13257) 2025-07-08 16:09:34 +05:30
Muhsin Shah C P
563c354248
fix: Simplify license information logging in handleLicensingInit function (#13253) 2025-07-08 14:30:21 +05:30
Akshay
9316b763fc
Refactor: Workflows feature is configurable (#13235)
* refactor: Disable workflows for cloud edition

* chore: update submodule to latest commit
2025-07-08 14:07:42 +05:30
Akshay Sasidharan
abcbea75c0 fix: isWorkflowsFeatureEnabled method added 2025-07-08 13:51:37 +05:30
Akshay Sasidharan
8ee2a50247 Merge branch 'release/workflows-lts-migration' of github.com:ToolJet/ToolJet into release/workflows-lts-migration 2025-07-08 13:24:34 +05:30
Akshay Sasidharan
72adb1afae Merge branch 'main' into release/workflows-lts-migration 2025-07-08 13:20:59 +05:30
Manish Kushare
3dc45ff9d3
[ Fix]: Remove runpy from node list (#13246)
* Remove runpy from node list

* Removed console
2025-07-08 12:16:53 +05:30
Muhsin Shah C P
17932d571e
feat: add workflow store to manage workflow ID state (#13239) 2025-07-08 10:56:05 +05:30
Muhsin Shah C P
8824a26110
[pre-release] Webhook trigger isn't working & changed the workflow-node(query) creation API endpoint [dependency PR] (#13237)
* fix: update workflow query endpoint to use correct URL

* chore: update subproject commits for frontend and server

* fix: add request parameter to triggerWorkflow method in controller and interface
2025-07-07 18:41:28 +05:30
Adish M
ed571cafe3
feat: Update Packer workflow to checkout lts-3.6 branch and add Neo4j setup with APOC plugin (#13225)
* feat: Update Packer workflow to checkout lts-3.6 branch and add Neo4j setup with APOC plugin

* refactor: remove deprecated EC2 ce deployment files and scripts

* fix: ensure newline at end of file in setup_app and setup_machine scripts
2025-07-07 18:14:18 +05:30
Muhsin Shah C P
5599a8caa2
[workflow-migration] Fixed the Loop node not saving issue. (#13229)
* feat: implement workflow query validation guard and add static data source retrieval method

* chore: update subproject commits for frontend and server

* refactor: remove ValidateWorkflowQuerySourceGuard as part of code cleanup

* fix: correct data_source_id property assignment in createWorkflowQuery function

* fix: update endpoint for createWorkflowQuery to use correct URL for workflow nodes
2025-07-07 18:11:17 +05:30
adishM98 Bot
9faf886d16 🔄 chore: update submodules to latest main after auto-merge 2025-07-07 06:59:32 +00:00
Adish M
348127afd7
Enhance submodule checkout process to handle branch existence and fallback to main (#13218)
* Enhance submodule checkout process to handle branch existence and fallback to main

* Improve submodule checkout process to handle branch validation and fallback to main

* chore: Comment out Node.js setup, dependency installation, and build steps in cloud frontend workflow

* refactor: Enhance submodule checkout process to include submodule name in logs

* Update submodule checkout process to use the correct submodule name extraction method

* fix: Update submodule checkout script to use correct submodule path variable

* Improve submodule checkout process to correctly handle branch names and fallback to main

* chore: Uncomment Node.js setup, dependency installation, and build steps in cloud frontend workflow

* fix: Update branch checkout logic to use correct syntax and improve fallback handling

* fix: Update git checkout command to use -B flag for branch creation

* fix: Improve submodule checkout process to explicitly fetch branch ref before checkout

* fix: Enhance submodule checkout process with improved branch validation and error handling

* fix: Improve branch checkout logic by enhancing fetch command and validating branch existence

* fix: Enhance manual Git checkout process with improved fetch and error handling

* fix: Restore Node.js setup, dependency installation, and Netlify deployment steps in workflow
2025-07-07 12:28:45 +05:30
Devanshu Rastogi
2447a55e22
Fix: Workflow app crashes when user clicks on response node (#13217)
* Added controller and service for fetching logs and nodes seperately

* Add inifinte scroll pagination for workflow logs

* Fix "All Nodes" not renderd on Nodes column

* Fix reducer to append logs on Logs column

* Fix: incorrect code placement

* Fix reducer to append logs on Nodes column

* Prepend execution log on workflow run

* Fix node ordering

* Decouple logs panel from workflow editor

* Update execution nodes when log panel is opened

* Reset log selection on workflow run

* Added 'updatePreviewState' function

* Update ee-server submodule reference
2025-07-07 10:37:46 +05:30
Adish M
b1afdd4efc
refactor: Improve cloud frontend deployment workflow with manual Git checkout and enhanced user authorization (#13213) 2025-07-06 15:29:17 +05:30
adishM98 Bot
584aa7a7ee 🔄 chore: update submodules to latest main after auto-merge 2025-07-04 12:17:17 +00:00
Adish M
c99e7dd856
fix: Restore authorization check in cloud frontend deployment workflow (#13195)
* fix: Restore authorization check in cloud frontend deployment workflow

* fix: Reinstate branch prefix validation in cloud frontend deployment workflow

* fix: Enhance Netlify deployment step for cleaner output

* fix: Update cloud frontend deployment workflow for improved clarity and authorization checks

* Remove deployment completion message from cloud frontend workflow

* Remove branch prefix validation from cloud frontend deployment workflow
2025-07-04 17:46:30 +05:30
Muhsin Shah C P
4c67f5db8b
feat: add workflow default sources and clean source names in DataSourceSelect (#13201) 2025-07-04 16:33:05 +05:30
Muhsin Shah C P
f6ed13e550
fix: Added a fallback for module context (#13190)
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
2025-07-04 12:03:18 +05:30
Adish M
eae10cddeb
Update Docker image build references and add cloud edition workflow (#13191) 2025-07-04 12:00:20 +05:30
Johnson Cherian
1f00aaf3ff
Merge pull request #13181 from ToolJet/fix/appbuilder-01
Appbuilder prerelease bug fixes
2025-07-04 11:34:09 +05:30
Johnson Cherian
f5ad1f034e
Merge branch 'main' into fix/appbuilder-01 2025-07-04 00:10:12 +05:30
Adish M
6355d6d509
fix: Remove outdated API redirects from netlify.toml (#13188) 2025-07-03 23:02:06 +05:30
Adish M
441306a1de
Update netlify.toml (#13187) 2025-07-03 22:37:08 +05:30
adishM98 Bot
86151ee64d 🔄 chore: update submodules to latest main after auto-merge 2025-07-03 17:02:08 +00:00
Adish M
0e8ed516b8
fix: Correct typo in TOOLJET_EDITION and update redirects in netlify.toml (#13186) 2025-07-03 22:31:21 +05:30
Kavin Venkatachalam
9769c33c60
Merge branch 'main' into fix/appbuilder-01 2025-07-03 21:49:46 +05:30
Adish M
e051caca47
fix: Update environment variable secrets for cloud deployment (#13171)
* fix: Update environment variable secrets for cloud deployment

* Add submodule checkout step to cloud frontend deployment workflow

* fix: Update checkout step to use actions/checkout@v4 and streamline configuration

* fix: Add missing environment variables for cloud deployment

* Update Node.js and NPM versions in Netlify configuration
2025-07-03 21:47:25 +05:30
Johnson Cherian
a5b28e7299
Merge branch 'main' into fix/appbuilder-01 2025-07-03 21:03:07 +05:30
johnsoncherian
1c2b312b9e chore: update version for release 2025-07-03 21:02:31 +05:30
Adish M
317f1e913f
fix: Update path for server keys in Dockerfile (#13184) 2025-07-03 20:58:10 +05:30
Adish M
b8aceb2e7a
fix: Update server installation steps in Dockerfile for consistency (#13183) 2025-07-03 20:49:15 +05:30
johnsoncherian
f60784aecc chore: update version for release 2025-07-03 20:36:37 +05:30
Johnson Cherian
105b1a4b19
Merge pull request #13176 from ToolJet/fix/pages-disable-module
Fix: disable pages on modules
2025-07-03 20:30:55 +05:30
Akshay Sasidharan
cf3fbfc2cb fix(workflows): ensure organization ID is set for webhook executions
Resolves webhook failures due to missing organizationId assignment during
workflow executions. This hot-fix ensures proper organizational context
is maintained for webhook-triggered workflows, preventing user-specific
failures and ensuring consistent automation behavior across different accounts.

Changes:
- Set user.organizationId from appVersion.app.organizationId in workflow execution service
- Apply fix to both processQueryNode and processWorkflowNode execution paths
- Ensure webhook executions use app's organization context instead of user context

Migrated from: https://github.com/ToolJet/tj-ee/pull/3762

Co-authored-by: Muhsin <muhsin@tooljet.com>
2025-07-03 19:42:52 +05:30
Akshay Sasidharan
48afde3582 feat: migrate PR #3754 - Release: Workflows sprint 11
🌟 Enhancement:
- Response and If-condition block can be renamed

🛠️ Fixes:
- If Condition evaluated to true and false in the logs

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
2025-07-03 19:26:25 +05:30
Kavin Venkatachalam
841d660783 fix: modules are hidden if the query manager is expanded 2025-07-03 19:15:20 +05:30
Akshay Sasidharan
69a61051cf feat: migrate PR #3745 - Release: Workflow prioritised client issues (v3.5.62-ee-lts)
🚀 Features:
- Workflow node specific errors are thrown on App builder, Workflow builder and Webhook triggers
- Enhanced error handling with specific node error reporting

🌟 Enhancements:
- Node preview shows hints and errors
- Improved node preview functionality showing errors and hints

🛠️ Fixes:
- Loop node preview fix
- Fix query id shown for failed nodes
- Enhanced error visualization in workflow logs panel

Migration Details:
- Applied composition pattern for frontend workflow components
- Enhanced QueryNodeConfiguration with better error handling and node preview
- Updated LogsPanel with collapsible error details and new triangle icons
- Improved ResponseNodeConfiguration with updated preview state management
- Updated workflow reducer to handle new preview state structure
- Added workflow execution node handle utility function

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2025-07-03 18:44:40 +05:30
Kavin Venkatachalam
ace4fe754c fix: Added a fallback for module context 2025-07-03 17:49:20 +05:30
Kavin Venkatachalam
edf657b659 Revert "fix: add fallback for useModuleId hook in query panel"
This reverts commit 27ba7dec30.
2025-07-03 17:47:41 +05:30
Kavin Venkatachalam
d9b6efefad Updated submodules ref 2025-07-03 16:39:19 +05:30
johnsoncherian
27ba7dec30 fix: add fallback for useModuleId hook in query panel
Handle case where ModuleContext is not available by wrapping
useModuleId in try-catch with 'canvas' fallback
2025-07-03 16:39:05 +05:30
Kavin Venkatachalam
108aa42eea fix: show modules inside the editor 2025-07-03 16:38:40 +05:30
Akshay Sasidharan
f11ea30325 feat: migrate workflow-in-workflow capabilities and enhanced node preview (PR #3735)
Migrate hotfix for workflow blockers including:

- Feature: Ability to call workflow within a workflow
- Feature: Preview query node with other previewed node results
- Fix: startTrigger input accepts string values instead of code/JSON

Frontend changes:
- Add workflow-in-workflow support in FlowBuilder and QueryNodeConfiguration
- Enhance query node preview with upstream node state management
- Implement preview state cleanup with deleteNodePreviewState calls
- Replace TestParameter input with CodeHinter for better JSON editing
- Add workflow node type support and error styling
- Update WorkflowEditor components for nested workflow handling

Backend changes:
- Update workflow execution controller to handle state parameter
- Enhance PreviewWorkflowNodeDto with optional state field
- Modify workflow services for state-aware query execution
- Update triggers listener and webhooks service

Migration follows composition pattern for frontend EE modules and
inheritance pattern for backend services.

Co-authored-by: Akshay Sasidharan <akshaysasidrn@tooljet.com>
Co-authored-by: Shah <shah21@tooljet.com>
Co-authored-by: Devanshu <devanshu052000@tooljet.com>
2025-07-03 14:06:15 +05:30
Vijaykant Yadav
8388838703 fix: disable pages on modules 2025-07-03 12:41:36 +05:30
Akshay Sasidharan
d6bda6610a feat: migrate PR #3713 - Workflows Sprint 10
- Default workflow parameters feature (#3708)
- Console.log parameter fix for RunJS nodes (#3703)
- Node loop restriction with cycle detection (#3672)
- Logs panel responsive virtualization fixes (#3694)

Co-authored-by: Devanshu Rastogi <devanshu.rastogi05@gmail.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>"
2025-07-03 11:44:31 +05:30
Adish M
95866aed82
feat: Add GitHub Actions workflow for cloud frontend deployment (#13159)
* feat: Add GitHub Actions workflow for cloud frontend deployment

* chore: Comment out authorization checks and branch validation in deployment workflow for testing
2025-07-03 10:54:37 +05:30
Akshay Sasidharan
19730503ab release: Workflows sprint 9
What's changed?
🚀 Features
Feature: Configurable workflow execution in #3663 by @akshaysasidrn
Feature: Duplicate the workflow node in #3616 by @manishkushare
🛠️ Fixes
Fix: Resolve workspace constants and secrets in workflow context in #3659 by @akshaysasidrn
2025-07-02 19:38:12 +05:30
Midhun G S
f1d7fe4d90
fix (#13158) 2025-07-02 18:33:53 +05:30