* Added priority, enabled, current_environment_id columns
- added data-migrations to backfill the priority and current environment id for each version
* working on multi environments improvement
- added checks for promoted env
- promote env feature
- released app & production env check
- promoted version definition check
* added import support
* working on migration issues
* fixed failing migration
* fixed failing migration once again
* Fixed possible bugs
- seed
- test case helpers
- app version release
* fixed migration bug
* working on migration progress
* working on migration progress class
* added migration progress
* fixed unit tests
* fixed e2e cases
* added default priority
* added PR changes
* changed import logic
* added global datasource design and api changes
* changed default env if the id is null
* added unique constraint and a bug fix
* changed app versions api
- added current environment id to the where conditions
* fixed failing test cases
* added new test cases
* added new api changes
* added back the enabled check
* fixed test case
* change: added environment to create versions dto
* typo: environmentId
* added new api for fetching versions
* added appVersions count changes to CE
* Changed app versions by environmentid logic
* added PR changes for EE
* fixed wrong promoted env id issue
* fix: can't switch to staging
* added import export changes
- update delete modal text
* added EE import export code, modal updated text
* added common migration code for CE and EE
* fixes
- enable run button for released version
- disable change datasource for queries
* changed released version popup design to new EE design
* add: hide delete icons for released version
* working on app name unique migrationworking on app name unique migration
* Added checks and conditions
* change: remove staring and ending spaces
* fix: error management
* fix: regex
* working on app name generation
* app name:fixing bugs
* app name: fixing and refactoring code
* app name: fixed test cases
* updated app name constraints and default name
* fix: apps.e2e tests case
* fix: added app name to the prompt
* added app input tooltip
* removed unwanted code
* added tooltip close code
* fixed auto generated name issue
* merging develop
* code refactoring
---------
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
* current version issue
* working on modal design
* Added released version popup and shake animation
* refactoring the code
* improved the experience
* extra changes
* css revert
* fix: disable components & properties
* fix: switched released version saving & create version modal input value retain issues
* fix: retained values issues
* fix: edit version modal current name issue
- disabled comment's icon
* override grayed out effect for preview
* fix: text overflow issue
* css fix: overflow
* added check for sub-containers
* fixed and added specs
* UI and UX fixes
* lint fix
* added clearInternal fn
* change:added clearInternal fn
* refactoring the code
* removed the comments
* added some code that were missing after the merge
* fixed merge issues
* fixed undo redo
* reverted the store changes
* add: columns and migrations for data queries and sources
* add: migrations for app environments
* fix: datasources and queries api
* fix: import apis
* add: radixui colors
* create: global datasource page
* fix: version creation not including global datasources queries
* fix: version deletion failure
* fix: ui and other bugs
* add: check for abilities on global ds
* fix: bugs
* fix: existing test cases
* fix: migration and bugs
* fix: rest api oauthorize bugs
* hide: add button for local ds
* fix: query bugs
* fix: new organization environment creation
* fix: local ds label showing for new apps
* fix: on page load queries for preview app and published app
* fix: import bugs from v1
* fix: merge conflicts
* fix: import apis
* fix: apss with mulit envs
* fix: ui bugs
* fix: environments not being created on db:seed
* fix: ui bugs
* fix: route settings for global datasources
* fix: customer dashboard template
* fix: local ds queries not being saved
* fix: runpy issues
* changes: ui
* fix: migration issues
* fix: ui
* hide datasources when no local datasources
* fix: test cases
* fix: unit test cases and global queries on app import/export
* cleanup
* add: package-lock file
* undo: migration rename
* cleanup
* fix: ui bugs
* migration fixes
* fix: dark mode issues
* fix: change datasource failing on query create mode
* fix: workspace selector issues
* fix: clickoutside for change scope option
* migration changes
* fix: open api issue
* reverting configs changes
* [Fix] Global datasources & Environment Id issue (#5830)
* fix: oauth env id issue
* code changes
---------
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
* Fixed Version name sanitization on editing versions
* Fixed linting errors
* Fixed definition type for version edit DTO
* Fixed e2e tests for version edit
---------
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
* add ability to export app versions
* remove console.log
* add spec
* [ Enhancement ]: Ability to export versioned apps ( frontend ) (#4271)
* added basic UI and functionality
* added functionality to export all versions or selected versions of app
* added UI
* refactored the code
* refactored code
* use custom hook for checking if component is mounted or not and accessing darkMode from props
* showing current version first
* added spacing between container and input tag and input tag and text
* added cursor pointer on the version container
* removed use mount to avoid extra re-rendering component
* fixed typo request
* update permissions
* fix permissions
Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
* fix version creation on empty/invalid version from id
* fix spec
* hotfix: Edited changes not shown when switching versions (#2386)
* fix edited changes not shown when switching versions
* fix version create from not picking editing version
* fix version switch not updated on editing version save
* add modal to create init version
* add init version and ability to auto save
* auto save only when editing version is set
* Feature: App version management ui revamp (#1873)
* add modal to create init version
* add init version and ability to auto save
* auto save only when editing version is set
* revamp version switching on editor
* skip save on app definition load
* handle click outside dropdown
* fix remove component and update styling
* fix auto save detail
* change wording of deployed to released
* remove console.log
* add spec for version creation from another version
* update version create model and hide save detail after shown
* 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
* add column app_create to group_permissions table
* add app create column to group permission entity
* backfill app_create permission as true for admin group
* add app delete permissions to group permissions
* update group permissions entity for app delete
* add ability to set group level permission for app creation
* refactor and fix app clone and imports
* fix created by user on homepage
* fix spinner on import
* update seeds service to set group level permission
* fix rollback query
* fix imported/cloned app timestamps
* honor logged in user permissions at UI
* remove console log
* fix data query id being replaced on import
* replace data query id within app versions on import
* add ability to import and export apps
* copy credentials on imports if it already exists
* authorize exports for public apps with only authenticated users
* remove app auth guard for export
* make import as a separate button
* update import button styling
* handle prexisting slug while import
* set file input as null when file has been read
* add fix for slug updation on import
* create migrations for group permissions setup
* define new entities and relationships
* revise migrations
* rename columns
* add migration to populate permission groups for existing users
* Feature: User access permission group usage (#883)
* create migrations for group permissions setup
* define new entities and relationships
* revise migrations
* rename columns
* add migration to populate permission groups for existing users
* revise migrations
* hide roles usage
* setup group permissions for apps and users
* fix defaultChecked
* fix update permission checkbox
* fix casl ability check to have params passed
* fix casl apps abilities to check with app specific permission
* add ability to delete groups
* conditionally render edit and delete options for all and admin users
* fix user role to group migration
* revise group management pages to disallow updating default group
* move manage users and groups to navbar dropdown
* show only addable apps and users on dropdowns
* rename header as profile settings
* scope addable apps and users by organization
* scope viewable apps on homepage
* hide manage groups link from non admins
* make permissions to be used with radio input
* add loading state for add apps/users buttons
* revise unit tests
* revise migrations
* fix e2e tests
* comment out dead code
* fix seeds script
* handle folder count
* captalize error toast
* hide manage users dropdown for non admins
* show fobidden error on blank homepage
* fix folder app count
* fix invalid state set
* make group name clickable for edit instead
* users with edit permission can deploy apps
* not show edit link on homepage if user dont have update permission
* remove unused entity from merge
* remove roles usage from manage org users page
* fix folder count and blank slate on homepage
* disable add buttons if there is no selections
* humanize default groups on view
* make app added onto groups have read permission by default
* not show app menu if user is not admin
* remove admin users from group user addition dropdown
* create default permissions for app cloned
* fix querying index page without page params
* fix admin scoped out from group add
* remove apps from header
* fix invitation url not shown
* scope admin deletion check by org
* scope public apps by organization
* add specs for group permissions e2e
* removed unused entity and add group permissions spec
* remove console logs
* remove unused permission
* scope public app count by org
* remove console log
* refactor manage group permission resources component
* update group permssion in org scope
* 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>
* Delete 'AppUser's before App is deleted
This commit ensures that all the corresponding entries of AppUser
are deleted before an App is deleted. This is done so to prevent
pre-existing foreign keys from halting the deletion.
* Delete all One-To-Many associated entities when app is deleted
This commit makes the App service's delete action delete all the
related entities of types: FolderApps, DataSources, DataQueries,
AppUsers and AppVersions, before deleting the app itself.
* Set currentVersionId to null before deleting app
* Add end-point that deletes an application
Deleting an application will also delete its corresponding
data sources, data queries and app versions.
* Add unit test for app deletion end-point
* Additional e2e test for delete app end-point
This test ensures that non-admin user cannot delete apps.