Commit graph

21 commits

Author SHA1 Message Date
Akshay
823833b12e
Feature: Versioning data sources & queries (#1620)
* add migrations for versioning datasources and dataqueries

* eslint migrations folder

* update ormconfig to use app context in migrations

* make app to make use versioned data sources and queries in editor

* app import should honor data source and query versioning

* register ts-node path on running migrations

* load data queries when finding versions

* update e2e tests

* handle for invalid oauth2 datasources

* update e2e tests

* introduce db migrations access lock to handle concurrent backfill

* scope migrations by missing version id

* fix import export without data source/query versions

* fix import

* fix spec

* handle invalid data on migration

* fix import

* remove console logs

* handle new app imports

* fix version check

* fix async creation

* explicitly add timestamps on version import
2022-01-04 13:34:12 +05:30
Akshay
577e7b82b9
introduce db migrations access lock to handle concurrent backfill (#1628) 2021-12-27 17:11:35 +05:30
Akshay
b26a23176c
Chore: Update user e2e tests (#1556)
* Update tests

* remove console log

* remove explicit db connection close

* remove reload usage
2021-12-14 16:32:03 +05:30
Akshay
5b30aa2007
Chore: Setup pipeline (#1539)
* github actions for PR and push to develop branch

* test workflow

* move to workflows folder

* add setup node action

* modify build

* specify npm version

* config unit test

* specify host postgres

* specify container to run on

* add postgresql dependency

* add specify ws adapter for test

* add e2e test

* fix linting

* only log errors on tests

* update eslint config

* fix linting

* run e2e test in silent mode

* fix library app spec

* dont send email on test env

* fix org scope

* mock env vars

* remove reset modules

* force colors

* explicitly close db connection

* add eslint rule for floating promises

* update workflow

* fix floating promise

* fix lint

* update workflow

* run on all push and pulls

* update lint check files

* simplify workflow

* increase js heap size on env

* separate lint and build

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-12-10 08:43:05 +05:30
Navaneeth Pk
20cccd1df7
Responsive canvas (#1363)
* Better canvas

* Better canvas

* Better canvas

* Fix for resize

* Fix for drag

* Fix for drag

* Fix for drag

* Adjust width of components by # of grid lines

* Adjust components to comply with gridline based width

* Fix the width of rigth sidebar

* Fix for subcontainer resize issue

* Fix for dropped widget width (sc)

* Fix subcontainer drag width

* Fix grid for sub container

* Fix viewer

* Fix

* Fix

* Use RnD for dragging within canvas

* bounds for subcontainers

* fix for subcontainers

* Fix for mouseover issue

* Fix

* Fix widget widths

* Fixes chart

* Fixes qr scanner and divider

* Remove scaleValue

* Mmerge fix

* Mmerge fix

* Fix for ormconfig

* Fixes for comments

* Add comment where the user clicked

* Disable dragging on viewer

* Max width for canvas

* Fix for widget click events

* Fix for radio button

* Rebase widget width and left offset for responsive canvas

* Fix

* Fix the width of file picker

* Fix for calendar widget

* Disable zoom selector

* Fixes comment positions

* css fixes

* Fix

* Recompute width and offset of subcontainer widgets based on its parent's width

* Calculate container width separately for modal children while migrating to responsive

* Refactor migration to responsive canvas whereinwhich all mutations are done only after all required changes are computed

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-16 17:14:09 +05:30
Akshay
acdef10b05
change orm migration transaction mode to each (#1379) 2021-11-05 18:04:39 +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
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
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
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
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
Akshay
c92437b820
Fixes docker dev setup (#507)
* update docker-compose and docs for docker dev setup

* specify test environment explicitly on npm scripts

* fix migrations to be picked up from either root or dist folder

* fix default slug update
2021-08-13 10:13:22 +05:30
Akshay
07f0cfab84
Run migrations on heroku deployments (#431) 2021-08-02 13:51:48 +05:30
navaneeth
4d9596d751 switch between connection url and connection params 2021-07-30 09:44:20 +05:30
navaneeth
8b778cc1aa Heroku stuffs 2021-07-30 09:21:18 +05:30
navaneeth
b302029bba Dockerize nest server 2021-07-23 19:46:01 +05:30
Akshay Sasidharan
4c868259d0 setup connection options using ormconfig.ts 2021-07-21 18:49:32 +05:30
navaneeth
0041201f8a Improvements for migrations 2021-07-09 16:22:03 +05:30
navaneeth
1a6e53fcf1 Migration for users table 2021-07-09 14:35:56 +05:30