ToolJet/server/data-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
..
1625814801430-UpdateDefinitionsForEvents.ts fix lint 2022-07-15 15:17:18 +05:30
1629971478272-UpdateDefinitionsForTableActionEvent.ts fix lint 2022-07-15 15:17:18 +05:30
1630003364070-TurnOnSSLForEveryPostgresDataSource.ts Feature - Multi Environment support (#4833) 2022-12-09 20:23:42 +05:30
1632468258787-PopulateUserGroupsFromOrganizationRoles.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1633370361564-SetShowBulkSelectorToTrue.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1633431766605-SetHighlightSelectedRowToFalseForExistingTables.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1634729050892-BackfillAppCreateAndAppDeletePermissionsAsTruthyForAdminGroup.ts fix lint 2022-07-15 15:17:18 +05:30
1634848932643-SetTableCellSpacingToCompact.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1636372753632-RebaseWidgetWidthAndLeftOffsetForResponsiveCanvas.ts fix lint 2022-07-15 15:17:18 +05:30
1636609569079-BackfillFolderCreatePermissionsAsTruthyForAdminGroup.ts fix lint 2022-07-15 15:17:18 +05:30
1638255797809-SetLoadingStateToFalseForExistingTables.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1638796825499-BackfillFolderCreatePermissionsAsTruthyForMissedAdminGroup.ts fix lint 2022-07-15 15:17:18 +05:30
1638941376844-SetMultiselectProperties.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1639038616546-UpdateDefinitionsForGlobalSettings.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1639734070615-BackfillDataSourcesAndQueriesForAppVersions.ts Feature - Multi Environment support (#4833) 2022-12-09 20:23:42 +05:30
1640683693031-BackfillCalendarWeekDateFormat.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1641446596775-SetImageBorderTypeToNone.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1644229722021-SetFxActiveToTrueForFxFieldsConvertedToUI.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1650485473528-PopulateSSOConfigs.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1651820577708-PopulateTextSize.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1653472569828-addedInstructionTextPropInFilePickerWidget.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1653474337657-BackfillFolderDeleteFolderUpdatePermissionsAsTruthyForAdminGroup.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1654150855780-BackfillAddOrgEnvironmentVariablesGroupPermissions.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1654596810662-ConvertAllUserEmailsToLowercaseAndDeleteDuplicateUsers.ts fix lint 2022-07-15 15:17:18 +05:30
1655279771926-listViewWidgetAddingBorderRadiusProperty.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1656061763136-modal-properties.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30
1656924847186-addingCssPropsToTextWidget.ts move data migration to respective folder (#3911) 2022-09-01 12:39:30 +05:30
1661331234770-RestructureTableColumnSizesAndActionsToHaveAValueKeyThatPointsToItsContents.ts Refactor table component (#3933) 2022-09-21 16:23:02 +05:30
1663581777527-ModalWidget-size.ts [improvement] Modal widget (#4045) 2022-09-26 15:46:21 +05:30
1666814745413-updateUserStatus.ts migration fix : set user status 2022-12-08 17:02:40 +05:30
1667076251897-BackfillDataSources.ts Hotfix - backfill for runpy quries v1 (#5577) 2023-02-17 11:14:30 +05:30
1668521091918-ChangeDefinitionStructureForMultiPage.ts Feature/multi page applications (Task ID - CU-2h1bfvw) (#4729) 2022-12-08 17:51:09 +05:30
1669054493160-moveDataSourceOptionsToEnvironment.ts Fix: database migration from v1 to latest develop (#5863) 2023-03-29 15:18:05 +05:30
1669055405494-removePluginFromDataQuery.ts fix for app preview error (#4994) 2022-12-15 16:01:10 +05:30
1669293520796-ConnectExistingCommentThreadsToPageIds.ts Feature/multi page applications (Task ID - CU-2h1bfvw) (#4729) 2022-12-08 17:51:09 +05:30
1669919175280-removeRepetitionInDataSourceAndQuery.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1675368628629-AddAppVersionIdColumnToDataQueries.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1675368628726-BackfillAppVersionToDataQueries.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1675844361117-CleanupDataSourceOptionData.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1675844361118-MigrateEnvironmentsUnderWorkspace.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1676545162064-BackfillRunpyDatasources.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1677822012965-AlterOrganizationIdInAppEnvironments.ts [Feature] :: Global datasources (#5504) 2023-03-24 21:41:21 +05:30
1684157120658-AddUniqueConstraintToAppName.ts [enhancement] Sanitising app name while creating or editing an app (#6423) 2023-06-06 14:12:36 +05:30
1686826460358-BackFillAppEnvironmentsPriorityColumn.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1686829426671-BackFillCurrentEnvironmentId.ts [Improvements] Environment changes (#6762) 2023-07-11 10:10:03 +05:30
1687188169091-UpdateOracleDbOptionsWithInstantClientVersion.ts Add support for oracle 9i db (#6637) 2023-06-21 11:39:30 +05:30
1687720044583-BackfillAddOrgEnvironmentConstantsGroupPermissions.ts Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
1688977149516-ListviewDefaultMode.ts Listview component with grid option (#6975) 2023-07-11 14:30:54 +05:30
LockMigrationsTable1.ts all: fix spelling (#4326) 2022-10-11 13:46:40 +05:30
LockMigrationsTable2.ts Hotfix: Split data and db migrations (#3610) 2022-07-14 14:03:21 +05:30