ToolJet/server
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
..
data-migrations Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
ee [hotfix] Invitation URLs and SSO redirection URLs are not subpath compatible (#7155) 2023-08-08 19:26:55 +05:30
lib fixes: able to import olders apps with no components (#5016) 2022-12-20 12:35:43 +05:30
migrations Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
scripts Fix for entrypoint.sh file to take default port value 5432 in database_url (#5824) 2023-03-24 20:54:40 +05:30
src Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
templates Templates revamp (#6629) 2023-06-05 15:40:47 +05:30
test Feature - Workspace environment constants (#6810) 2023-08-14 14:28:51 +05:30
.eslintignore Fix linting errors across the app (#785) 2021-09-21 19:18:28 +05:30
.eslintrc.js Chore: eslint checkup (#5887) 2023-04-10 11:26:23 +05:30
.gitignore Initial commit for nestjs 2021-07-08 11:10:27 +05:30
.node-version Revise node and npm version (#408) 2021-07-19 12:38:44 +05:30
.npmrc specify node and npm version for server (#405) 2021-07-19 08:48:59 +05:30
.version bump version 2023-08-14 13:54:29 +05:30
data-migration-config.ts lint fixes and sso configs save bug fix (#5425) 2023-01-25 12:50:22 +05:30
entrypoint.sh Fix for entrypoint.sh file to take default port value 5432 in database_url (#5824) 2023-03-24 20:54:40 +05:30
jest.config.ts Feature: Add data transfer object layer to validate and sanitize user inputs (#2694) 2022-04-20 14:46:57 +05:30
nest-cli.json [Feature] Make plugins installable (#3069) 2022-10-27 16:59:43 +05:30
ormconfig.ts fix for database url (#5756) 2023-03-20 11:45:00 +05:30
package-lock.json updated npm module version (#5679) 2023-07-24 16:05:45 +05:30
package.json updated npm module version (#5679) 2023-07-24 16:05:45 +05:30
README.md Initial commit for nestjs 2021-07-08 11:10:27 +05:30
tsconfig.build.json Initial commit for nestjs 2021-07-08 11:10:27 +05:30
tsconfig.json Chore: Docker compose plugins dev (#1953) 2022-01-27 15:08:32 +05:30

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.