Commit graph

1337 commits

Author SHA1 Message Date
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
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
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
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
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
Akshay Sasidharan
8fca46f7cb feat: Workflows import export support 2025-07-02 16:15:24 +05:30
Akshay Sasidharan
1cfdec70d7 fix: Async workflow in runjs 2025-07-02 13:21:18 +05:30
Akshay Sasidharan
131ff6a288 feat: Setup async workflow query execution with SSE
Overview
This PR implements real-time workflow execution monitoring using Server-Sent Events (SSE) as part of our LTS feature support. The implementation allows for tracking long-running workflows without requiring deployment changes.

Technical Changes
1. Server Components
Added WorkflowStreamService to manage persistent SSE streams with automatic cleanup
Implemented @sse endpoint in WorkflowExecutionsController for streaming status updates
Created WorkflowTriggersListener to emit workflow execution events with EventEmitter2
Added workflow execution status constants to identify different states in the execution lifecycle
2. Client-side Components
Implemented AsyncQueryHandler to manage SSE connections and parse event streams
Enhanced queryPanelSlice with methods to create async handlers and trigger workflows
Added support for non-blocking workflow execution with real-time status updates
3. Workflow Integration
Modified workflow triggering to use the SSE-based monitoring approach
Maintained same-server architecture to avoid deployment changes
Added automatic reconnection handling and error recovery for client connections
Architecture Decisions
Selected Same Server Approach: Chose to implement workflows within the same HTTP server to maintain the existing deployment setup for LTS users
Real-time Updates with SSE: Leveraged Server-Sent Events for their simplicity, efficiency, and compatibility with existing infrastructure
Future Extension Path: Implementation can be extended to Worker Threads or Microservice architecture later if needed
2025-07-01 19:17:07 +05:30
Akshay Sasidharan
80c67c4f09 feat: trigger workflows with their name or id
- Fixes webhook trigger failing on license check
- Add backward compatible changes to trigger workflows with their name or id
2025-07-01 13:02:15 +05:30
Midhun G S
9e470a5076
Fix for modules not loading issues (#13108) 2025-06-27 15:39:50 +05:30
platform-ops123
36cee365ad
Secure PAT for AppEmbeddings (#12899)
* Secure PAT for AppEmbeddings

* added instruction comments

* updates

* update

* enum update

* remove comments

* remove comments

* updates

* updates

* handle expiry of pat

* fixes

* update

* updates

* remove log

* remove log

* move EmbedApp to appBuilder

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2025-06-27 12:18:25 +05:30
Rohan Lahori
95b1c9237d
smtp env variable support (#13058)
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2025-06-26 22:08:00 +05:30
Rudhra Deep Biswas
ae946f2713
Prevent Stringify Query Resolved Value (#12788)
* lts to pre prelease query

* Add test cases for query options resolution

* string and undefined

* comments

* fixes brackets

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2025-06-25 18:40:13 +05:30
Devanshu Gupta
1d1c7858cd
Feat/audit logs 2.0 (#13012)
* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* fix: merge conflict

* fix: ee commit

* fix: removed logs

* feat: added migration for resource_data

* fix: updated action names

* frontend ee commit

* feat: added /user/instance route

* fix: user instance update

* fix: updated feature name

* user ee commit

* feat: added instance level archive

* fix: user details update instance

* feat: added self signup audit

* ee audit commit

* ee commit

* metadata workspace field

* fix: instace user unarchive data

* feat: added grou permission default properties

* fix: review fixes

* feat: granular app

* fix: moved user name logic to service

* remove log

* ee commit

* feat: separate routes for app, data-source

* feat: added some actions

* ee commit

* ee commit

* feat: added audits

* ee commit

* fix pasword

* Update the new granular permission api end points in cypress test cases

* feat: batch-3 actions

* removed log

* remove import

* feat: added app audit logs

* feat: public app update route

* feat: added resource route

* fix: json clone

* feat: added feature audit

* revert INSTANCE_UPDATE

* feature key update

* fix: filter resource guard

* ee commit

* fe ee commit

* script for resolving submodule conflicts

* changing docs url to .ai

---------

Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
2025-06-25 12:40:07 +05:30
Rohan Lahori
e6dcc241e0
Feature edit git pulled apps/pre release (#13003)
* init

* ee git-sync

* dependancies

* added octokit depedencies to server directory

* module fixes

* fixes

* fixes

* pull app changes fix

* ability factory fixes

* code restructuring changes

* added gitlab backend changes

* app git module fixes

* module file changes

* added logo images

* migration

* migration

* migration changes

* added migration to remove enabledflag from parent table

* provider and migration fixes

* removed comments

* revert appimport export changes

* Revert "revert appimport export changes"

This reverts commit b139db811e.

* fixed version rename api calls

* app/version rename commit fixes

* added builder permissions

* review comment changes

* module file and service fixes

* module fixes

* fixes

* fixed module file changes

* added git-sync repository

* fixed app-git imports

* removed injected ssh,https, gitlab repositories

* added app git sync repository (dev testing pending)

* removed more modules

* removed type orm completley (dev testing pending)

* fixed module file

* removed unused dto's

* working

* fixes

* removed comments

* migration changes

* removed node git package

* changed default branch to main

* ssh

* removed apps ability factory dependencies

* minor changes

* migration fixes

* fixes

* added events for app and version rename

* removed comments

* added license checks

* listener fixes

* removed unused files

* fixed db:reset and server issues

* fixed ce and ee migration

* submoudle commits

* migration and entity changes

* module changes

* backend changes for edit app functionality

* ui changes

* added app canvas banner

* api-fix for freeze-editor apis

* header changes

* fix for delete version failing

* minor ui fix

* minor changes

* reverts

* reverts

* fixes

* fixed imports

* removed consoles

* added separate data migration for migrating provider column values

* fix

* fixes

* fixed ui breaking

* fix

* added app canvas banner in ce

---------

Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
Co-authored-by: rohan <rohan@gmail.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2025-06-25 12:06:04 +05:30
Midhun G S
1fbb148f16
Deprecated static local data sources (#12687)
* deprecated static local data sources

* changes

* transactions wrapped under dbTransaction wrap

* removed entity manager from app import export service

* Update export app cypress test case.

* update app export test case

* type error fix for loader

* fix for listing of tooljetdb for app import export

* postgrest configs

* added readme

* cleanup

* fix for app import export version order

* Update app export spec

* fix

---------

Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
2025-06-22 12:59:13 +05:30
kriks7iitk
1606852abe
Feature/workflow permission 2 (#12869)
* Added worklfow permsiions

* Fixed bugs in workflow permission

* fix bugs in server for worklfow permsiion

* fix bugs for workflow permissions

* reverted not required files

* reverted package lock json

* revert back .gitmodules url

* revered package lock

* plugins import fix

* fix

* Update groups test cases

---------

Co-authored-by: Adish M <adish.madhu@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
2025-06-21 13:10:05 +05:30
johnsoncherian
11d58c4a89 Merge branch 'main' into appbuilder/sprint-13 2025-06-19 16:42:49 +05:30
Muhsin Shah C P
2d3f05ef39
Instance level OIDC common file changes (#12925)
* Working on data-migration

* Added entity file

* Changing login-configs service functions

* Changed some column names

* Fixed updating and creating sso-configs

* Changed the configs update and get apis & Worked on designs

* Added frontend & server files

* Working on oidc service

* Fixed instance signup case

* Fixed extra botton border  issue

* Fixed table updation issues

* Added frontend and backend files

* Added frontend commit file

* Refactor role assignment condition in AuthUtilService

* Update subproject commit reference in server/ee

* Update subproject commit reference in server/ee

* Fixed: no-permissioned group sync issues

* Fixed: migrations

* Fixed: editing the entity file

* Fixed: migration null check

* Updated subproject commit reference in server/ee

* Updated subproject commit reference in server/ee
2025-06-19 14:37:45 +05:30
johnsoncherian
1b56df6a7b Merge branch 'main' into appbuilder/sprint-13 2025-06-19 08:03:25 +05:30
Muhsin Shah C P
957b1513af
refactor: update signIn method signature in ISamlService interface (#13036) 2025-06-18 13:09:06 +05:30
Midhun G S
175345479a
Node upgrade 18->22 (#12836)
* node upgrade initial commit

* Removed node-saas and added saas. Fixed the CSS warnings from saas

* add node version 22 to dockerfile and AMI setup script

* change the base image to debian 12

* Update the node version (#12860)

* correction in builder image

* Update ce-production.Dockerfile

* upgrade node to 22.15.1

* server package lock

* package upgrade

* package upgrade

* base directory package upgrade

* revert sentry package upgrade

* fix

* added copy files

* fix dockerfile for copywrite package issue

* removed copy files package

* fix dockerfile for copywrite package issue

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Adish M <adish.madhu@gmail.com>
Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2025-06-17 13:01:46 +05:30
johnsoncherian
7eb1446a98 fix: added missing dependancies in modules module 2025-06-17 10:52:32 +05:30
johnsoncherian
beb224eb1d Merge branch 'main' into appbuilder/sprint-13 2025-06-17 10:10:05 +05:30
Rudhra Deep Biswas
b426993253
Moving Git Module to Pre-Release (#12852)
* init

* ee git-sync

* dependancies

* added octokit depedencies to server directory

* module fixes

* fixes

* fixes

* pull app changes fix

* ability factory fixes

* code restructuring changes

* added gitlab backend changes

* app git module fixes

* module file changes

* added logo images

* migration

* migration

* migration changes

* added migration to remove enabledflag from parent table

* provider and migration fixes

* removed comments

* revert appimport export changes

* Revert "revert appimport export changes"

This reverts commit b139db811e.

* fixed version rename api calls

* app/version rename commit fixes

* added builder permissions

* review comment changes

* module file and service fixes

* module fixes

* fixes

* fixed module file changes

* added git-sync repository

* fixed app-git imports

* removed injected ssh,https, gitlab repositories

* added app git sync repository (dev testing pending)

* removed more modules

* removed type orm completley (dev testing pending)

* fixed module file

* removed unused dto's

* working

* fixes

* removed comments

* migration changes

* removed node git package

* changed default branch to main

* ssh

* removed apps ability factory dependencies

* minor changes

* migration fixes

* fixes

* added events for app and version rename

* removed comments

* added license checks

* listener fixes

* removed unused files

* fixed db:reset and server issues

* fixed ce and ee migration

* submoudle commits

* minor changes

* reverts

* reverts

* fixes

* fixed imports

---------

Co-authored-by: rohanlahori <rohanlahori99@gmail.com>
Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com>
Co-authored-by: rohan <rohan@gmail.com>
2025-06-11 17:03:58 +05:30
johnsoncherian
e3d1a7b4b5 Merge branch 'main' into feature/modules 2025-06-04 10:36:08 +05:30
Devanshu Gupta
ed234aa553
Feat/audit logs user (#12803)
* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* fix: merge conflict

* fix: ee commit

* fix: removed logs

* feat: added migration for resource_data

* fix: updated action names

* frontend ee commit

* feat: added /user/instance route

* fix: user instance update

* fix: updated feature name

* user ee commit

* feat: added instance level archive

* fix: user details update instance

* feat: added self signup audit

* ee audit commit

* ee commit

* metadata workspace field

* fix: instace user unarchive data

* fix: review fixes

* fix: moved user name logic to service

* remove log

* ee commit

* fix: user update password
2025-06-02 18:25:47 +05:30
johnsoncherian
425710f513 Merge branch 'feature/modules' into page-permission-fixes 2025-05-29 11:46:57 +05:30
johnsoncherian
ad62add247 Merge branch 'main' into feature/modules 2025-05-28 14:11:55 +05:30
Parth
afb27b8673
Feature: Add Clickup plugin (#12703)
* initialize clickup plugin, add getConnection and testConnection

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* including the openapi yaml

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* trying to attach the openapi spec

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* Fix key casing mismatch

* Update copywriting

* Fix clickup logic

* Filter limited operation request

* Add error standardisation

* Fix asterik symbol position

* Fix copywriting

* Fix wrong URL

* Fix asterisk gapping

* Handle array types

* Update marketplace package-lock.json

* Add the same package-lock as release branch

* chore: update package-lock.json

---------

Signed-off-by: thesynthax <kushagra1403@gmail.com>
Co-authored-by: thesynthax <kushagra1403@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2025-05-27 21:03:15 +05:30
Kushagra Srivastava
86d60336a8
Unique constraint on plugins to prevent plugin to be installed multiple times in a workspace (#12798)
* fixed plugin duplication bug

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* changed it on DB level

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* changed id to name in error dialog

Signed-off-by: thesynthax <kushagra1403@gmail.com>

* migrations run

Signed-off-by: thesynthax <kushagra1403@gmail.com>

---------

Signed-off-by: thesynthax <kushagra1403@gmail.com>
2025-05-27 12:13:16 +05:30
Ganesh Kumar
64c8e8af9c
Feat: Restrict data source deletion if queries are present in any app within a instance (#12824)
* datasource or marketplace plugin deletion should not delete queries so have a dependency check

* removed a api from controller to check if marketplace plugins has dependent queries

* info message updated

* restrict uninstalling marketplace plugin when queries are used feature

* submodule commit hash updated

* dependent queries info modal title updated
2025-05-23 15:26:21 +05:30
Ganesh Kumar
5e53d6dd7e
Merge branch 'main' into release/marketplace-sprint-11 2025-05-21 11:08:14 +05:30
Vijaykant Yadav
3f201e9a28 merge base 2025-05-19 10:53:23 +05:30
Johnson Cherian
09bc300466
Merge pull request #12605 from ToolJet/appbuilder/sprint-11-edit
container size
2025-05-16 18:06:20 +05:30
johnsoncherian
d084360650 Merge branch 'appbuilder/sprint-12' into appbuilder/sprint-11-edit 2025-05-16 18:06:06 +05:30
johnsoncherian
1581552a71 Merge branch 'appbuilder/sprint-12' into fix/custom-themes-ui 2025-05-16 18:02:11 +05:30
Johnson Cherian
31552242a2
Merge pull request #12591 from ToolJet/feat/steps-v2-alignment-style-improvement
feat: dynamic steps length based on steps text size
2025-05-15 15:28:29 +05:30
Johnson Cherian
51dbe8bee9
Merge branch 'main' into fix/query-duplicate-failure 2025-05-15 15:03:50 +05:30
gsmithun4
81f039b481 Merge branch 'main' into fix/external-epi 2025-05-14 21:41:27 +05:30
Muhsin Shah C P
958cbd1d02
[improvement] Default workspace (#12834)
* Added set-default API

* Setting default workspace for super-admin onboarding

* Seperated the migrations

* Added nestjs init

* removed nestjs init

* Added: default workspace case to signup

* Fixed: instance signup

* Fixed: existed non-active user instance signup

* Added: SSO default workspace support

* Added: Default workspace chooser

* Moved some scss changes to ee folder

* Added: disable workspace default organization check

* updated the migration

* Fixing .env issue

* Removed the logs

* Remove personal workspace check from enable signup

* Fixing sign-in cases

* Fixing workspace invited user's instance signup cases

* Fixing sso workspace invited user's instance signup cases

* fixing the workspace signup issue

* Adding ee server and frontend file

* Adding ee server and frontend file

* Adding active check

* Added query fix for the migration

* Added migration logic fix

* Removed/Commented the ENABLE_ONBOARDING_QUESTIONS_FOR_ALL_SIGN_UPS env support from EE and CE

* Adding server and frontend files

* Added frontend file

* Bump version
2025-05-14 16:06:52 +05:30
Rudra deep Biswas
dba41a8739 cleanup 2025-05-13 22:04:31 +05:30
Rudra deep Biswas
01d73bd3f9 remove orgId 2025-05-13 19:12:34 +05:30
Rudra deep Biswas
29202a8e40 pass ws admin 2025-05-13 18:10:29 +05:30
Rudra deep Biswas
6e6b721fca user-role 2025-05-13 17:08:09 +05:30
Rudra deep Biswas
592447dc83 util-service 2025-05-13 16:19:57 +05:30
Rudra deep Biswas
7af3812f5f fix 2025-05-12 15:26:40 +05:30
devanshu052000
65539ddbb1 Updated the color names 2025-05-12 14:12:17 +05:30
devanshu052000
e41ce8a5ab Remove repositories from module imports 2025-05-12 13:43:26 +05:30
devanshu052000
317f18b4fa Revert "Added useful indexes to the entities for query optimization"
This reverts commit 962b7dc8b1.
2025-05-12 13:43:10 +05:30