Commit graph

197 commits

Author SHA1 Message Date
Akshay
ac92845e60
increase postgres ds timeout (#819) 2021-09-22 18:51:00 +05:30
Sherfin Shamsudeen
3ca60c5b2d
Bugfix/firestore query conditions (#813)
* Add multiple fields for order and orderType in firestore query

* Add support for querying firestore with where, order and limit

* Minor refactoring updates for firestore query operations file

* Minor refactoring for firestore query operations

* Update package-lock.json with npm 7.20.0
2021-09-22 00:19:29 +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
40005146c4
Fix role change when only one admin is present (#766) 2021-09-21 17:36:21 +05:30
Arpit
4dc356cb36
Parameter to accept a specific range within a Googlesheet (#798)
* Parameter to accept a specific range within a googlesheet

* default range: A1:Z500
2021-09-21 17:20:29 +05:30
Akshay
bc193c081f
Fix: Only update credentials when data source is updated (#763)
* only update credentials when data source is updated

* fix spec
2021-09-21 10:20:02 +05:30
Akhil G Krishnan
88e08e50f9
BugFix: User Invitation URL in email is not clickable (#799) 2021-09-21 10:05:36 +05:30
navaneeth
f2d4361ed8 Bump ToolJet version 2021-09-20 15:53:18 +05:30
Navaneeth Pk
35e1ee29dc
Eager load app versions (#786)
* Testing relations

* better fix

* Testing relations
2021-09-20 12:08:49 +05:30
navaneeth
1086c2036e Use max in ormconfig 2021-09-19 10:18:57 +05:30
navaneeth
92d6291fdb Upgrade pg 2021-09-19 09:57:08 +05:30
navaneeth
b464ec5f03 Increase connection limit for orm 2021-09-19 08:58:06 +05:30
navaneeth
6dd30b616e Timeout for TypeORM 2021-09-19 08:51:57 +05:30
navaneeth
13d1f600a8 Add timeout for queries (pg) 2021-09-18 21:01:50 +05:30
navaneeth
77b92dd7ad Adds statement timeout for pg queries 2021-09-18 20:52:02 +05:30
Navaneeth Pk
f86f83c766
add pg datasource connection timeout (#781)
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-09-18 12:26:39 +05:30
Akshay
d166747276
add post health check endpoint (#768) 2021-09-16 21:45:33 +05:30
Akshay
52cbec3d4c
Add ability to clone from existing apps (#743)
* add ability to clone from existing apps

* make use of clone ability to authorize clone requests

* refactor to use seperate service for cloning apps
2021-09-15 21:17:44 +05:30
Akshay
762773770c
Fixes app creation authorization (#757) 2021-09-15 21:12:04 +05:30
navaneeth
fe1c00f2b7 Bump ToolJet version 2021-09-14 19:28:42 +05:30
Sherfin Shamsudeen
d27e500875
Add option for enabling/disabling SSL for MySQL (#754) 2021-09-14 18:37:41 +05:30
Akshay
f637a80fd6
Feature: data query deletion (#734)
* add feature for data query deletion

* fix after query deletion default query selection is not being done

* move delete option and hide option unless mouse is hovered on query

* show dialog box confirmation before query deletion
2021-09-13 22:54:47 +05:30
navaneeth
1e3d77004a Order queries on editor in alphabetical order 2021-09-13 09:37:18 +05:30
Arpit
04e7f8eaad
Fixes the path in query auth to run queries for public apps (#729) 2021-09-12 09:51:30 +05:30
Akshay
9d7b987e72
Fix csp headers to allow for google maps (#725) 2021-09-10 16:09:28 +05:30
Arpit
b0f0918571
Feature: Apps should only be edited by the admin or developer of the organisation. (#724)
* hide edit button for role:"user"

* probably one solution

* role=viewer cannot edit apps

* unused imports removed
2021-09-10 15:10:23 +05:30
Akshay
f4af291b6f
Chore: Application monitoring support with sentry (#702)
* setup sentry for server

* setup sentry for client

* update docs for sentry dns

* explicitly specify apm vendor

* add module for sentry

* revise directory struct and make sentry debuggable

* setup csp and trace headers for sentry

* whitelist csp for all sentry urls

* change senrty error sample rate to 50%

* make sentry send all errors from backend
2021-09-09 22:14:34 +05:30
Akshay
6bd08608ad
Feature: Client fetches public config from server (#713)
* add /api/config endpoint to serve public config

* client requests public config before app render

* update default public config for whitelist
2021-09-09 21:38:07 +05:30
navaneeth
d53c8fc53a Bump ToolJet version 2021-09-07 15:35:05 +05:30
Sherfin Shamsudeen
4306e47e36
Set request entity max limit to 50 megabytes (#697) 2021-09-06 21:28:02 +05:30
Akshay
7967e517be
Chore: Revise log setup (#687)
* ignore /health endpoints to be logged

* buffer logs till logs are flushed and throw exception on server exit
2021-09-06 20:08:09 +05:30
Akshay
24685a127f
fixes server error when inviting new user (#679) 2021-09-03 09:52:07 +05:30
navaneeth
eb1acd85a6 Bump ToolJet version 2021-08-31 18:37:16 +05:30
navaneeth
12d8c4af28 Fix for REST API query previews returning 403 2021-08-30 23:36:05 +05:30
navaneeth
d4127736d6 Move the logic for option serializing to server 2021-08-30 23:15:31 +05:30
Akshay
82f76e2799
Feature: app version preview & edit (#639)
* add ability to preview and edit versions

* add specs for get app versions

* create new app versions from prev definition

* fixes

* move default slug creation outside typeorm transaction

* set slug as app id when null

* fix app creation response

* fix entities not loading on test env

* add e2e test for version creation scenarios

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-08-30 17:13:27 +05:30
Sherfin Shamsudeen
48750bb8a9
Support Enabling/Disabling SSL for postgres connection (#619)
* Add option to enable and disable SSL in Postgres configuration UI

* Connect to postgres with/without SSL based on user's choice

* Add migration to set SSL enabled for every postgres data source

* Fix data source kind name in migration

* Fetch only postgres datasources in migration for turning on SSL
2021-08-28 09:12:12 +05:30
Sherfin Shamsudeen
91b32adaed
Multi-events for action buttons, query params option for Go-to-app action (#560)
* Add query params option to Go-to-app action

This commit adds support for setting query params for the
go-to-app action. When the new app is launched, the passed in
object will be sent as search query params.

* Allow user to enter URL params in multiple input boxes

* Abstract goto-app action logic to a separate container

* Supply necessary newline

* Set 'type' of 'app' property of go-to-app action to 'text'

* List only those apps that has proper slugs for goto-app action

* Modify goto-app action config panel to support Event Manager

* Use EventManager instead of EventSelector for table action config

* Add data migration to make old apps support multiple event handlers

* Fix UpdateDefinitionsForTableActionEvent migration

This commit ensures that the migration recreates onClick event properly

* Fix bug that caused an 'onBulkUpdate' event to be created during migration

* Remove EventSelector

* Add margin above `remove handler` button on Table actions inspector panel
2021-08-26 20:33:59 +05:30
Akshay
e4bcf80af2
Application logger using pino (#600)
* setup application logger with pino

* remove console.log
2021-08-25 22:13:18 +05:30
navaneeth
607f474e67 Merge branch 'hotfix/fix-pg-queries' into develop 2021-08-25 21:12:17 +05:30
navaneeth
98da31df3f Fix for bulk pg queries 2021-08-25 21:10:44 +05:30
Navaneeth Pk
eec59e597c
Feature: Multiple handlers for events (#571)
* Multiple handlers for each events

* Fixes

* Migration

* ormconfig to use entities in migrations

* use connection object to build queries

* fixes for bulk update

* Fix for table action button

* use query runner to wrap migration in same transaction

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-08-24 12:21:09 +05:30
navaneeth
a343719e13 Bump ToolJet version 2021-08-24 11:29:06 +05:30
Akshay
960bacd0c6
fixes pagination on home page (#589) 2021-08-24 11:14:16 +05:30
Akshay
45841259b3
handle multiple columns on bulk query (#562) 2021-08-20 19:56:43 +05:30
Akshay
5909aaacff
Feature: bulk update capability for mysql plugin (#561) 2021-08-20 19:26:47 +05:30
Sherfin Shamsudeen
1f0ff9ecf8
Add functionality to decide whether front-end should be served from server (#547)
* Add functionality to decide whether front-end should be served from server

This commit makes the server allow flag `--serve-frontend`, providing
which, will make the server serve the front-end at route '/'. Otherwise
it won't serve the front-end.

* Use env variable to enable serving client from a server end-point

* Add documentation for SERVE_CLIENT env var
2021-08-20 09:25:34 +05:30
Sherfin Shamsudeen
a53cac24b2
Feature: QR scanner widget (#519)
* Add QR code scanner widget

This commit adds QR code scanner widget which
  * Displays a viewfinder that can be activated or deactivated
  * Exposes a variable named lastDetectedValue which holds the
    data contained in the last QR code it was able to scan
  * Defines an event onDetect which is fired whenever a QR code
    is successfully scanned

* Add documentation for QR scanner widget

* Supply missing newline

* Supply missing newline for qrscanner.svg

* Supply missing newlines and semicolons

* Update error modal content

* Remove `active` property from QrScanner

* Add blob: to content security policy

* Disable content security policy

* Add content security policy that allows self, unsafe-eval and blob
2021-08-18 22:15:43 +05:30
Sherfin Shamsudeen
a9d7b6ed7b
Make postgres connection SSL encrypted (#539) 2021-08-18 13:15:19 +05:30
Vimox Shah
0284fbd45c
Enable pgcrypto extension (#516)
* [ADD] enable pgcrypto extension

* [ADD] pg_crypto migration

* [REM] additional line breaks

* [REM] additional line breaks

Co-authored-by: vimox-shah-genea <vshah@getgenea.com>
2021-08-17 11:32:53 +05:30