ToolJet/server/migrations
Arpit ee79b2015a
Feature - Workspace environment constants (#6810)
* init--

* org constants: controllers, services, module and api for creating new constants

* read operation: all constants from all envs and all constants from a env

* update and delete operation

* updated delete msg

* encrypt constant value before saving and decrypt before sending back to controller

* adds group permission for org constants and required migrations

* adds ability to create constant

* adds group permissions and fixes migrations

* adds workspace constant permission to workspace settings UI

* ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee

* Org constants UI

* UI updates: display constant value as per enviroment

* Added client side pagination

* groups without create/edit/delete permission can only view the the constants

* group permission: Create and Edit - UI updates

* create/update/date flow - UI

* extending api support to create constant in multiple environments

* UI - add constant for multiple envs

* disable name input for update operation

* UI fixes and updates

* adds deprecating banner to variables dashboard

* removes update/create from UI --variables

* adding depricating soon alert in codehinter when workspace vars are used

* extra check to display the banner in preview of cdehinter

* resolves constants for admin in client-side

* resolves constants client-side and server side for queries

* include grp permission for create/delete for org constants

* resolves org constants in runJS and runPY

* cleanup

* updated the tab UI

* fixed: constant pagination footer

* fixes client side pagination bug

* adds docs link

* ui updates and fixes ui flickering on closing the drawer

* refactor updating table data

* adds error state to constant forms

* remove the alert from runJS and runPY after 5s

* added max length constraint for constant value

* refactor: component form

* delete only constant as per environment

* remove unwanted logs

* resolves constants in gds connection forms

* resolve gds source options for testConnections, preview and runQuery

* UI style fixes: banner

* remove alert banner for runJS and runPY

* input text color fixed

* style fixes for disabled inputs

* Edit constant- Until value is changed- CTA should be disabled

* adds tooltip for table name and value

* adds tooltip for disbaled input in edit drawer

* updated the tooltip position

* handle input height on type for large strings

* added empty state

* adds new badge for workspace constants

* substring should be different for viewers

* resolve constants in viewer

* add support to resolve constants for widgets and queires in public apps

* changed the api endpoint for org constant for env

* bugfix: handle org constants for encrypted value from source options

* add support to resolve app variables and constants in a single single

* fixes: multiple multiline and same line variables

* refactor

* cleanup

* remove encryption for ce

* remove group permission from permission dashboard

* text transform for badge

* added padding for each table row

* updated alert banner padding

* updated alert banner padding

* updates width for empty banner

* refactor

* adds tests for constant api

* added validations for constant name

* updates textare dynamic form

* updates the resolvers for constants

* removes decryptiong for source options in services

* refactor - frontend

* resolved conflicts

* fixes: typo-1 ~ workspace variables alert

* fixes: inconsistency in alert info icon

* fixes: naming convention consistency

* fixes: dark theme for confirm box

* disable create button for  add constant with same name,

* adds error state for updating constant with same value

* fixes: error message typo

* fixes: error message typo

* fixes position of tooltip

* fixes frontend lint issues

* update lock file

* UI updates and typos

* cleanup-refactor

* checking error state before creating

* should check all error states

* resolving multiple constants and app variables in a single line

* reafactore

* fixed: depricating icon : codehinter preview box

* remove log

* remove repeated logic for deleteOrgEnvironmentConstant

* only return status code for delete request for org constants

* Add data-cy for workspace constants elements (#7251)

* updates contants doc link

---------

Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 14:28:51 +05:30
..
1625814801415-MaybeCreateExtension.ts Merge main to develop (#4049) 2022-09-16 21:08:45 +05:30
1625814801416-CreateOrganizations.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801417-CreateUsers.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801419-CreateApps.ts Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
1625814801420-CreateAppVersions.ts Endpoint for fetching app versions 2021-07-23 20:21:24 +05:30
1625814801421-CreateCredentials.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801422-CreateFolders.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801423-CreateFolderApps.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801424-CreateMetadata.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801425-CreateOrganizationUsers.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801426-CreateAppUsers.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801427-CreateDataSources.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1625814801428-CreateDataQueries.ts Policies and tests for running queries 2021-07-24 11:43:21 +05:30
1625814801429-CreateDataSourceUserOauth2s.ts Porting rails migrations to typeORM 2021-07-22 23:42:06 +05:30
1632047749315-AddSsoIdToUser.ts Feature/merge google sso to community edition (#1420) 2021-11-17 16:51:50 +05:30
1632382322381-CreateGroupPermissions.ts Feature: User access management 🔥 (#918) 2021-10-11 20:45:58 +05:30
1632383798339-CreateUserGroupPermissions.ts Feature: User access management 🔥 (#918) 2021-10-11 20:45:58 +05:30
1632384954344-CreateAppGroupPermissions.ts Feature: User access management 🔥 (#918) 2021-10-11 20:45:58 +05:30
1632740447353-CreateThreadMigration.ts Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
1634626774513-CreateCommentMigration.ts Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
1634724636255-AddAppCreateAndAppDeleteToGroupPermissions.ts Feature: Group level permissions and related fixes (#1204) 2021-10-25 14:05:32 +05:30
1636607624055-AddFolderCreatePermissionToGroupPermissions.ts Chore: Revise and add specs for folders (#1391) 2021-11-15 11:43:48 +05:30
1639645231497-AddAppVersionIdColumnToDataSources.ts Feature: Versioning data sources & queries (#1620) 2022-01-04 13:34:12 +05:30
1639645243080-AddAppVersionIdColumnToDataQueries.ts Feature: Versioning data sources & queries (#1620) 2022-01-04 13:34:12 +05:30
1639734070614-AddApplicationIconColumn.ts Hotfix/fix for missing query reassociations (#2471) 2022-03-09 16:56:03 +05:30
1642432246029-CreateSSOField.ts Github OAuth integration (#1837) 2022-01-27 15:21:17 +05:30
1643117336290-AddRoleToUser.ts Added an organization 'role' field to the page that redirects after the email confirmation (#1944) 2022-01-27 20:56:35 +05:30
1645864719155-MultiOrganization.ts Support for multiple workspaces 🚀 (#2778) 2022-05-05 12:38:42 +05:30
1646823984673-OrganizationConfigs.ts Support for multiple workspaces 🚀 (#2778) 2022-05-05 12:38:42 +05:30
1649860649643-AddIsMaintenanceOnToApp.ts [Feature] Added a feature to show maintenance state of an app (#2820) 2022-04-21 22:08:54 +05:30
1650455299630-OrganizationEnableSignup.ts Support for multiple workspaces 🚀 (#2778) 2022-05-05 12:38:42 +05:30
1651048832554-AddAvatarIdToUser.ts feat: add user avatar (#2920) 2022-06-02 12:19:49 +05:30
1651056032050-CreateFiles.ts feat: add user avatar (#2920) 2022-06-02 12:19:49 +05:30
1651056032052-CreatePlugins.ts [Feature] Make plugins installable (#3069) 2022-10-27 16:59:43 +05:30
1652541462886-CreateOrgEnvironmentVariablesTable.ts [Feature] Organisation level environment variables 🚀 (#3068) 2022-07-01 16:20:37 +05:30
1652768881087-AddPluginToDataSource.ts [Feature] Make plugins installable (#3069) 2022-10-27 16:59:43 +05:30
1652768887877-AddPluginToDataQuery.ts [Feature] Make plugins installable (#3069) 2022-10-27 16:59:43 +05:30
1653391166172-AddFolderUpdateAndDeletePermissionsToGroupPermissions.ts [Feature] Added ability to update and delete app folders (#3132) 2022-06-16 19:41:38 +05:30
1654150623035-AddOrgEnvironmentVariablesGroupPermissions.ts [Feature] Organisation level environment variables 🚀 (#3068) 2022-07-01 16:20:37 +05:30
1655320273619-PasswordPolicyRetryCount.ts Password retry limit (#3300) 2022-06-30 00:49:45 +05:30
1655726247638-AddUniqueConstraintToVersionName.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1656083459220-tabsWidth.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1656268228782-OrganizationsInheritSSO.ts Instance level SSO for Multi-Workpsace (#3441) 2022-07-18 11:40:52 +05:30
1656312830147-CreateCommentUsers.ts feat: trigger mail when user is mentioned in comment (#3443) 2022-07-25 11:14:59 +05:30
1661342016413-AddOrganizationIdToDataSources.ts Feature: Tooljet Database (#4951) 2022-12-23 02:09:57 +05:30
1661448846469-AddReadOnDashboardToAppGroupPermissions.ts [feature] Hide apps in dashboard (#3888) 2022-09-08 15:03:03 +05:30
1664352379065-AddFieldsToUser.ts Feature :: Onboarding revamp (#4044) 2022-12-08 13:24:31 +05:30
1664535394458-addForeignKeyForCommentUsers.ts [Fix] Delete app not working if any user mentioned in comments (#4161) 2022-10-17 23:04:06 +05:30
1664535394459-addForeignKeyForPlugin.ts fix: query manager loading when marketplace plugin is uninstalled (#4709) 2022-11-04 13:21:29 +05:30
1666763190092-addUserStatusAndSource.ts Feature :: Onboarding revamp (#4044) 2022-12-08 13:24:31 +05:30
1667070216520-createEnvironments.ts Feature - Multi Environment support (#4833) 2022-12-09 20:23:42 +05:30
1667075911289-createDatasourceOptions.ts Feature - Multi Environment support (#4833) 2022-12-09 20:23:42 +05:30
1667364798950-CreateInternalTables.ts Feature: Tooljet Database (#4951) 2022-12-23 02:09:57 +05:30
1669280005881-AddPageIdToThreads.ts Feature/multi page applications (Task ID - CU-2h1bfvw) (#4729) 2022-12-08 17:51:09 +05:30
1671815159504-addDataSourceType.ts [v2-beta] migration improvement (#5047) 2022-12-27 16:16:13 +05:30
1673424772525-ChangeReadOnDashboardColumnName.ts [improvement] Renamed the column read_on_dashboard to hide_from_dashboard (#5291) 2023-02-14 15:41:55 +05:30
1675179628075-AddScopeColumnToDataSources.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1675842611112-AddOrganizationIdInAppEnvironments.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1677820920004-DropAppVersionIdInAppEnvironments.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1678261179234-addUserSession.ts [Improvement] URLs scoped with workspace id (#5487) 2023-04-06 16:42:58 +05:30
1678790363938-AddPhoneNumberToUsers.ts Feature/onboarding phonenumber (#5773) 2023-03-24 21:47:41 +05:30
1683136077244-AddUniqueConstraintToWorkspaceName.ts Workspace name sanitisation (#6299) 2023-06-01 19:21:38 +05:30
1684145489093-AddUniqueConstraintToFolderName.ts Sanitising workspace folder name while creating or editing a folder (#6396) 2023-06-07 15:03:54 +05:30
1686818129241-AddPriorityAndEnabledColumnsToAppEnvironments.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1686829292855-AddCurrentEnvironmentIdToAppVersions.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1687363681284-CreateOrgEnvironmentConstantsTable.ts Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
1687383173997-AddOrgEnvironmentConstantGroupPermission.ts Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
LockMigrationsTable1.ts all: fix spelling (#4326) 2022-10-11 13:46:40 +05:30
LockMigrationsTable2.ts introduce db migrations access lock to handle concurrent backfill (#1628) 2021-12-27 17:11:35 +05:30