Commit graph

46 commits

Author SHA1 Message Date
Akshay
9b2787cc76
Chore: Render preview with supervisord (#5048)
* run postgrest and tooljet with supervisord for preview apps

* update render.yaml for pgrest values

* update env vars

* revise db name
2022-12-26 13:45:21 +05:30
Akshay
602b1b4ad3
Feature: Tooljet Database (#4951)
* wip

* internal db per workspace

* fix async query

* feat: add storage layer route

* feat: add drawer component

* feat: add react-table to load data

* feat: add columns form

* feat: add create column form, create row form

* feat: add postgrest js

* add tooljet db controller to proxy requests to postgrest

* util: add postgrest filter builder helper utility

* feat: add filter popover

* use helper utility for building query

* add sortable filters

* add box shadow for filter popup

* use overlay trigger

* use react select

* add new column addition

* add dropdown for table header, table list

* Move filter.jsx

* feat: add sort popover

* feat: add postgrest js .order fn

* setup tooljetdb with restricted grants for users

* make db schemas added loaded dynamically on postgrest server

* fix query

* sign jwt token to auth user at postgrest

* update db schema user with workspace

* chore: add table listing

* update data and columns from api

* feat: add context api for sharing data

* add ability to create table, view tables and add columns

* use columns for sort from context api

* fix ormconfig

* feat: add table listing integration

* feat: add create table integration

* fix for rds deployment

* add internal table translation instead of schema

* remove tooljetdb as a datasource

* wrap placeholder on proxy query

* add active workspace guard

* scope tooljetdb by workspace

* update active workspace guard

* seperate proxy related concerns to different service

* make use of org id param

* rename storage layer to tooljet databse

* update specs

* feat: Update list when new table added

* feat: add create column

* chore: add orgId to url + misc changes

* chore: move popover to separate file

* remove unused var

* rename files

* feat: add multiple columns

* feat: add new row

* removes postgrest-js from pkg lock

* feat: add row data

* feat: add sorting

* feat: allow row deletion

* feat: add search

* feat: add filtering

* feat: add edit mode

* feat: add columns while edit table

* add view table action

* update setup for column constraint

* fix query

* integrate view_table, primary key field

* render toogle for boolean data type

* update view table query for primary key

* fetch metadata refactor

* add capability to set default values

* feat: allow deletion of record based on primary key

* feat: add default value while creating column

* send query from sort & filter component

* css changes

* allow empty data

* add requested changes

* add err message

* add common fn

* allow sort + filter

* remove unwanted defaults key

* css changes

* add more operators

* dark mode fixes

* add drawer footer

* add loader for list tables

* add dashboard design changes

* design changes

* add capability to drop table and delete column

* add breadcrumbs

* design changes

* add profile

* refactor tooljetdb controller

* update routes

* add empty page changes

* delete column fix

* fix delete column

* design changes

* fetch tables post delete

* homepage changes

* hide ellipsis on hover

* add org settings page

* add edit + create org

* add notification center

* fix: group permissions switch issue

* add logo

* remove anchor tag

* fix merge conflicts

* css changes

* add err boundary

* setup query editor

* css changes

* fix: merge conflicts

* add menuPortal prop to filterform and sort form

* fix seed

* fix: build

* design changes

* design changes + refactor code

* fix imports

* fix: drawer issue on delete table

* add search box changes

* fix: tablename max-length 255

* fix: set newly created table as selected item

* remove edit column option

* added badges to enterprise only features

* disable edit column

* table styles

* fix: popover position, placeholder default

* fix: display boolean values in table

* fix: tooljet database default type values

* css changes

* add query manager for tooljet db with create and list row

* dark mode fixes

* remove Header component

* add ability to delete tooljetdb rows from query manager

* add ability to update tooljetdb rows

* dark mode fixes

* css changes

* display actions icon on hover

* folder onclick change

* add empty page styles

* fix proxy requests

* feat: randomize icon creation

* add max items per page prop for pagination

* removes unwanted position attr

* add table name validation + disable submit btn while api fetch

* [Bugfix] internal storage toast  | trigger toasts for running preview db queries (#5019)

* resolves: no toasts are fired when preview query is run for db queries

* fire success toast for created and no content status text for query success

* remove invalid migration

* skip migration if tooljet db already created

* fix: app clone icon param

* fix: show confirmation box if filter options are empty in query (#5021)

* for now: show native confirmation box of the brower to confirm the delete all query

* typo

* Revert "typo"

This reverts commit b5ce5ed889.

* cleaned

* cleaned

* show confirmation box if filter options are empty in query

* [Refactor/Bugfix] database query (#5028)

* refactored list rows operations

* remove unwanted cls

* refactor create row

* reafactored update rows

* refactored delete rows

* padding fix for tj-query

* add static templates

* review changes

* remove unused file

* Chore: tooljetdb render setup (#5033)

* add postgrest for render preview deploy

* pin version

* add healthCheckPath

* remove health check

* handle database url parsing db params

* add defaults for tooljetdb env

* fix hostname

* handle env in migration files

* refactor dbconfig build

* fix pg db usage

* add parsed env context

* add tooljetdb env

* refactor db config utils

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-12-23 02:09:57 +05:30
Francesco Frassinelli
769e56dce6
fix: change client.Dockerfile.dev node_modules path (#4824) 2022-11-28 10:59:31 +05:30
Akshay
9d38c2955e
chore: Setup github action for render deploy (#4750) 2022-11-15 17:02:23 +05:30
Akshay
561db28a39
Chore: Setup preview apps with Render (#4520)
* add dockerfile for preview apps
* add render.yaml
2022-10-19 13:54:34 +05:30
Midhun G S
61158d8122
Merge main to develop (#4049)
* Fix: User group permissions error on Openshift platform (#4041)

* update dockerfile for file permissions on root group

* add permissions from the user group on dockerfile

* bump to v1.24.4

* bump to v1.25.0

* [feature] Added pagination and filtering features to users page (#3921)

* added pagination and filtering in backend

* added pagination
    - created a seperate component for users table
    - added pagination

* Added filter UI

* temporary css fix for pagination footer

* fixed pagination width issue

* now result will also clear when user clicks on clear icon

* Added seperate api for comment mentions

* Now we can search mentions by email, first and last names

* Fixed a bug
- email didn't send for comment mentions

* refactoring the code

* resolved PR changes

* Added isAdmin guard

* adding some checks

* fixed lint errors

* added wild card search

* Added no result found text

* fixed failing test case

* Working on PR changes

* Now users table avatars will load image too

* replaced skeleton classes with skeleton library component

* Completed PR changes

* added orderby

* Fixed some issues

* fixed failed test case

* have fixed some css issues

* replaced query with quersrting package

* fixed minor width issue

* Fixed some css issues

* fixed darkMode issue

* implemented on enter press search

* Refactored the code

* fixed white space issue

* refactored the code

* fixed overlapping issue

* refactored the code

* fixing some issues

* fixes

* removed guard

* code cleanup

* comments notification fix

* fixed conflict issues

* fixed css height issue

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>

* Remove signup guard from set-password-from-token API (#4050)

* Remove sign up guard set-password-from-token API

* test cases fix

* Bump to v1.25.1

* Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055)

* add PG_DB_OWNER env var to disable db and extension creation

* update docs

* bump to v1.25.2

Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 21:08:45 +05:30
Akshay
0d482f8161
Revise docker setup (#3954)
* fixes separate client build

* update docs

* add SERVE_CLIENT flag for dev docker step for uniformity

* Doc changes

* Doc changes

* Doc changes

* update readme

* add separate docker compose setups

* Doc changes

* rename compose files

* remove unused dependency

* rename service name to server for uniformity

Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-09-05 21:06:11 +05:30
Akshay
14fc14c90c
Chore: Fix docker image build (#3934)
* make webpack-cli non dev dependency

* update dockerfiles

* Revert "make webpack-cli non dev dependency"

This reverts commit d2eb5cf701.

* update dockerfile
2022-09-01 22:40:02 +05:30
Akshay Sasidharan
c422546e18 fix try tooljet setup 2022-08-29 23:44:17 +05:30
Akshay Sasidharan
df23272af2 hotfix: add server scripts to dockerfile 2022-08-18 12:59:49 +05:30
Akshay
f3f9baeab2
Fix: Only add distributable files for server on docker image (#3729)
* only add build server files on docker images

* copy .version file

* remove DO clean up script

* add dotenv and joi
2022-08-03 17:06:11 +05:30
Akshay
94efa97270
Update digital ocean setup (#3644)
* add placeholder values for digital ocean secrets

* revise dockerfile with security updates

* update postbuild script to use transpiled code

* add cloud-init dependency

* move cloud-init to digitalocean postbuild script

* update digitalocean postbuild script
2022-07-19 22:07:54 +05:30
Akshay
a13a2d4d63
Chore: ToolJet setup to try locally (#3158)
* add dockerfile for try tooljet setup

* update npm scripts and logged messages

* refactor npm scripts for dist folder scripts

* update usages of db setup and seed

* setup script to init db and boot app

* fix dockerfile

* update dockerfile

* user production.Dockerfile as base image

* fix script

* fix script exit

* fix lint
2022-05-31 18:42:36 +05:30
Midhun G S
c7d164c1c8
Added configuration to select plugins (#3024)
* Added configs to select plugins

* moving the configs to

* removing private from common

* fix

* removed if-env

* Fix

* docker compose changes

* review comments

* remove plugin build file

* revert docker file changes

* netlify changes

* netlify configs

* build script changes

* build script changes

* dockerfile changes

* add prebuild script
2022-05-20 19:32:46 +05:30
Akshay
16c9e2355e
Chore: Update docker files to use buster to be used with oracledb (#2624)
* update docker files to use buster to be used with oracledb

* revert oracledb extractable dependency

* update dockerfile

* add libaio1 dependency

* make use of oracledb releases directly as dependency
2022-03-24 17:30:14 +05:30
Muhsin Shah C P
eaf93616ae
Feature/oracledb plugin (#2388)
* oracledb initial commit
- Added oracledb package

* Implemented connection and operations

* Working on oracle db integration

* Implemented query & bulk operations

* Fixed initial client reintialization problem

* Added custom client library path option

* Added oracle client library installation steps to dev docker file

* Testing changed docker setup on cloud

* Testing heroku app.json

* Removed unwanted scripts from dockerfiles

* Updated field label

* update oracledb client lib for ec2

* update package-lock

* refactoring code

* Updated docs

* Resolved some lint errors

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-03-15 08:00:02 +05:30
Navaneeth Pk
aac178eb55
Add command to copy package.json of root to server.Dockerfile (#2148) 2022-02-07 00:34:48 +05:30
Gandharv
a22de0b358
Remove react scripts (#1928)
* remove react-scripts

* pkg lock

* add babel runtime

* add loaders

* add babel-eslint
2022-01-27 20:59:07 +05:30
Akshay
e3317aa5b7
Chore: Docker compose plugins dev (#1953)
* add plugins to docker compose

* build common

* change cmd

* build:pkgs

* fix'

* temp: add named vol

* update docker-compose for plugins dev

* update seed script to transpile only

* fix ci

* fix ci

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
2022-01-27 15:08:32 +05:30
Gandharv
2f3b441c0a
Move plugins to root (#1728)
* feat: move plugins to root

* modify tsconfig

* add .gitignore

* delete old plugins file

* add parcel

* docker compose volume mount

* add gcs

* add typescript to plugins folder

* gcs to ts

* add dynamodb

* add elastic search

* add firestore

* add gsheets

* add graphql

* add mongodb

* mssql

* add mysql

* add postgresql

* add redis

* add s3

* add slack

* add stripe

* remove plugin related packages from pkgjson

* add lib folder

* add gitignore

* remove typescript generated files

* remove generated file

* remove generated files

* add twilio

* add dist to docker compose cache binding

* add dist prefix

* cleanup - 1

* delete dist

* rename to index.ts + add jest config

* add it.todo in tests

* test fixes

* test file changes

* fix type checks

* add @tooljet/plugins to server package json

* esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0

* docker file npm package version fix

* add typesense

* cleaup - 2

* add sendgrid

* add lerna build and clean script for all packages + tsconfig

* cleanup -3

* add plugins build step

* add missing plugins build step in npm run build

* add mssql, mysql & postgres as singleton classes

* add db connection to cache only if datasourceId is available

* client: add data source schema/manifest files

* add query operations files

* logic for wrapping form with schema

* add script to create index file

* add @tooljet/plugins to frontend folder

* cleanup 1 -frontend

* cleanup - 2 // frontend // data queries

* add client and index to gitignore

* update gitignore

* fix lint & test

* update ci

* fix unit, e2e

* cleanup -3

* fix test

* fix tests

* fix indent

* try npm ci

* fix tests

* fix typo

* fix

* rename file for server entry

* heroku fix

* add main and types entry points in pkg json

* move common to root

* cleanup - 4: remove redundant $ sign prefix

* cleanup - 4: remove redundant $ sign prefix

* update options in-sync before DOM is painted

* change type cloud to cloud storage

* update readme

* update ci.yml

* update ci yml

* add pkg-lock.json

* rename index.ts to server.ts

* update lock files

* add server package.lock

* remove unused import

* revert commit: add minio

* add root dep

* import server.ts

* remove plugins build step

* add npm shrinkwrap

* update version - plugins

* add new version - 0.0.8

* upgrade version

* move to symlinked package

* add lock file

* feat: add icon inside package

* add plugin creation docs

* Remove seed

* move icons to plugins folder

* install pg dep

* add react to packages

* add seed cmd

* revert change

* add plugins build in lint, e2e, unit

* e2e, lint use npm ci

* update dockerfile for plugins

* try combining release with web

* limit memory on release

* try executing seed script post transpile

* try executing seed from server directory

* update seed execution

* add minio

* add correct type

* add minio to pkg json

* remove old file

* fix provider key

* add python installable + npm ^7.2.0 (#1752)

* add python installable + npm ^7.2.0

* add py to prod file

* pin npm version to 7.20.0

* pin npm version to 7.20.0

* split into multi stage build and remove python for buildx

* copy plugins from buider stage

* update dependencies

* add freetds dependency

* update server dockerfile

* update client dockerfile

* update dev dockerfile and compose file

* fix entrypoint

* fix server dev dockerfile

* update docker-compose

* remove npm install on root dir on docker build

* fix heroku script

* make lerna prod dependency to enable prod builds

* remove redundant env setup

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 12:38:17 +05:30
Akshay
5312573c85
increase node heap memory (#1432) 2021-11-20 06:55:54 +05:30
navaneeth
8bfdd7ec3d Minor correction for production dockerfile 2021-10-04 17:37:46 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
Akshay
a625f7f9bf
Fix npm scripts to be able to run from project root (#717)
* fix npm scripts to be able to run from project root

* copy package.json from root for prod dockerfile

* fix k8s deployment manifest template
2021-09-09 17:15:59 +05:30
Akshay
cb2d8bd5ed
fix server entrypoint (#714) 2021-09-08 23:43:17 +05:30
Akshay
c128d94b1d
Dev and deploy setup revision (#604)
* revise dockerfiles

* make nginx to proxy requests when static files are absent
2021-08-26 20:34:30 +05:30
Akshay
915d66107e
[docs] Update docs for testing (#479)
* copy .env.test file for docker dev

* update docs for testing
2021-08-09 17:41:01 +05:30
Akshay
11df74b3a4
Docker deploy setup for Nestjs (#474)
* make nginx config generic

* fixes env substituted

* remove npm script dependencies from dev

* match all nginx location to server

* revert git clone dev branch
2021-08-09 10:02:25 +05:30
navaneeth
558ac75a28 Dependencies for ts scripts 2021-08-06 17:06:37 +05:30
navaneeth
f5ceec8c54 [Docs] Deploying to k8s & Heroku 2021-08-01 14:58:48 +05:30
navaneeth
1f8fe20264 Merge branch 'develop' into feature/nest-server 2021-07-31 20:28:32 +05:30
navaneeth
d3ecd25e9a Dockerize for production 2021-07-31 14:18:56 +05:30
navaneeth
62d8b3e646 Dockerfile for production server 2021-07-31 10:10:19 +05:30
navaneeth
c2b51ed044 Dev dockerfile for server 2021-07-23 19:50:50 +05:30
navaneeth
b302029bba Dockerize nest server 2021-07-23 19:46:01 +05:30
Ashish
2c59616b70
Feature: docker-compose deployment (#388)
* separate dockerfile for tooljet client in development mode

* production dockerfile for tooljet client

* reference the tooljet clients dev dockerfile in the docker-compose file

* use a fallback url for API_URL in cases where TOOLJET_SERVER_URL is not defined

* nginx config file for the front-end

* docker-compose file for production deploys

* dont run postgres inside docker-compose

* use an entrypoint script for setting the server host for nginx

* separate volume for fallback certs

* add docs for docker-compose deployment

* add required database keys in the .env.example file

* address review comments
2021-07-12 14:45:42 +05:30
Ashish
6346e78820
Chore: fix server dockerfile (#307)
* fix typo in entrypoint script invocation from the server dockerfile

* use sh in the entrypoint shebang instead of bash

* make entrypoint script executable
2021-06-24 16:40:26 +05:30
Ashish
939e26fc6a
Chore: reference the entrypoint file in the dockerfile (#292) 2021-06-22 22:48:55 +05:30
Ashish
dfd0d93852
Chore: Remove server.pid file if its already present from docker entrypoint (#256) 2021-06-14 16:39:00 +05:30
Ashish
7256490450
conditionally run bundle install from the entrypoint script (#254) 2021-06-14 16:29:57 +05:30
Ashish
2329311416
Bugfix: Separate docker file for development (#250)
* new dockerfile for development

* reference the development dockerfile in docker-compose

* remove explicit RAILS_ENV=production in development dockerfile
2021-06-14 15:27:19 +05:30
Akshay
134e2f51ca
Feature: SQL Server integration 🎉 (#244)
* MS SQL server integration

* enable mssql service to test, create and process connection

* return 400 when query fails

* [Docker] Install freetds on buster

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-06-14 07:33:13 +05:30
Navaneeth Pk
69ca4159e0
[Docker] Pending migrations should be executed before starting server (#213) 2021-06-09 18:10:46 +05:30
navaneeth
9fa57932ad Fixed JS heap issue on docker-compose 2021-05-26 07:41:12 +05:30
navaneeth
065d724732 Changed base docker image to buster, bumped ruby version 2021-05-25 13:53:11 +05:30
navaneeth
3c20814763 Setup docker-compose for local development 2021-04-29 15:29:25 +05:30