Commit graph

30 commits

Author SHA1 Message Date
Ajith KV
bb28eb9f40
Add test cases for constants on editor (#7285) 2023-08-18 14:53:53 +05:30
Ajith KV
114755a1db
Add cypress test cases for workspace constants (#7254) 2023-08-14 14:46:16 +05:30
Johnson Cherian
55cdc7a0b5
Query manager revamp (#6680)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Query manager refactor init

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Moved query manager to functional component

* Fixed conflict issues

* Fixed infinite loop on tooljetDB

* Set the store name and updated devtools logic

* Fixed issue on displaying draft query from data sources

* Updated comments on the store

* Fixed bug on changing data source and creating query from data source

* Fixed bug on showing unsaved changes popup

* Fixed issue on showing confirmation modal everytime without any changes

* feat: autosave data query functionality

* feat: show publish button only when the status in draft state

* Fixed issues on query renaming

* feat: removed discard popup for data query create/edit widget

* stye: reduced autosave api call timeout and added draft tag

* feat: added minor style changes

* feat: fixed issues with restapi plugin, removed unused api calls

* fix: fixed issue that breaks restapi creation

* fix: reload selected query details after update query

* perf: reduced debounce time for data query update apis

* feat: removed full reloading of query list on query renaming

* feat: duplicate data query feature added

* Fixed issue on creating restAPI query

* fix: fixed issue in transforming response from update queyr api

* fix: refresh selected query details when the selected query is updated

* fix: rename query on click enter

* fix: full refresh of query list on update

* fix: style changes

* fix: subscribing to state to autsave

* feat: updated the query manager styles to new design

* feat: revamped the querypane header buttons

* fix: fixed the padding for query panel maximize button

* feat: updated search box style

* refactor: moved function to render data source icon to its own component

* fix: fixed querymanager widget breaking issue

* merged with feat/query-manager-autosave

* refactor: removed unused consoles

* refactor: removed unused consoles

* refactor: removed unused consoles

* fix: removed commented code

* fix: removed unused code

* refactor: removed unused comments

* fix: show change datasource select only if valid ds available

* Update frontend/src/Editor/Inspector/EventManager.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* feat: modify behaviour of search icon in query panel

* fix: fixed theme color mismatch in query manager

* refactor: remove dead code

* refactor: updated theme for data source listner

* fix: theming in filter and sort popup

* refactor: remove unused variables

* fix: removed draftQuery logic from query manager

* refactor: removed unused varibales

* Update frontend/src/Editor/QueryManager/QueryEditors/Restapi/TabParams.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Update frontend/src/Editor/QueryPanel/QueryCard.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* feat: diable preview for draft queries

* fix: added tooltip for query panel button

* fix: fixed issues in saving query manager events

* fix: moved query save subscriber to QuerPanel component

* feat: converted query run api to save and run

* fix: made varibale an optional param in updateDataQuery dto

* refactor: cleanup update dataquery status api response

* refactor: moved query status to constants file

* feat: prompt for queryname when creating new query

* fix: store new queryname in state on create query pageload

* fix: fixed alignment of Tooljet db component form

* fix: correct translation and format file

* refactor: removed consoles

* merge: merge appbuilder-1.2

* style: updated rename input/button UX

* style: revamped dataquery create widget styles

* style: revamped data source selector styles

* fix: removed code added for debugging

* style: updated data query filter design

* style: Add prop to control visibility of clear button in search box

* style: implement new style for query filter

* merge appbuilder-1.2 to feat/query-manager-sort-filter

* refactor: remove unintended file change

* fix: set default value for method in respapi

* style: updated copilot info popup style

* style: updated quer panel header icons

* style: updated button styles

* style: fixed query manager button styles

* style: smoothened query preview modal view

* fix: correct import for some funs

* fix: fixed minor UX bugs

* style: fixed styling of REST api GDS

* style: fixed styleing of sort and filter popup

* style: improved data queries sort filter UI/UX

* fix: remove click listner when overlay is closed

* fix: moved component declaration out of parent component

* fix: set selected datasource for default sources

* fix: filter DS based on saerch in create dropdown

* fix: restrict draft query running to preview mode

* fix: query renamed on input change in create screen

* fix: set name to state as soon as user renames query

* fix: make query notification message consistent

* style: correct s3 bucket plugin layout config

* fix: fixed issues with cloning of Static DS queries

* fix: made change so that newly created query is reflected immediatly

* style: updated spacing for query manager components

* fix: hide rename input when no query selected

* fix: check bothe selected query and DS before rendering query manager

* fix: set isSaving to true only for api calls in querymanager

* fix: added success message form in qm

* fix: filter out draft queries from viewer on running

* fix: fixed inconsistent gutter for runpy and runjs editors

* fix: reload dataqueris on LDS deletion

* fix: redesigned filter/sort popup

* fix: fixed issue that resets filter on search

* fix: fixed query manager breaking on plugin select

* fix: diable json preview for text output

* fix: reset to filter and sort main menu on close filter popup

* refactor: rename varibales

* stye: redesigned query create panel

* feat: revert data query status column from backend

* style: redesign query picker section

* refactor: removed dead code

* style: querypanel expand/collapse btn style

* style: add query select and query filter popup style redesign

* style: updated filter popup style

* feat: removed draft query checks everywhere

* style: empty dataqueries style changed

* style: updated query selector popup and rest options styles

* style: removed 100% height to query option remove btn

* feat: added the query runnable status check

* style: updated query manager footer style

* feat: changed DS filter from kind to DS ID

* style: minor ui tweaks in filter popup

* style: disable DS filter if no DQs created

* style: minor ui change

* fix: rerender filter popup post DS api call. fixed rest api copy feature

* fix: add local DS to filter popup

* refactor: removed dead code/comments

* add new row is crashing when no data is fed to table (#7102)

* fix: fixed condition that blocked GDS run on load

* fix: revert name back to og name if update fails in rename query

* feat: added tooltip for show query btn

* fix: added click interaction for pill btn as well

* fix: minor UI tweaks to make UX better

* style: fixed the styling of filter popup

* style: minor UI tweaks in query filter popup

* fix: fixed minor css issue in ds picker

* style: wrap overflowing text in queryname

* fix: update updated_at after query update api call success

* fix: update remove the caller query from event query dropdown

* style: minor ui spacing tweaks

* fix: fix issue that cuased app crash when tjdb opened

* fix: fixed update row styles

* fix: fixed info popup dark theme bg

* fix: fixed headers styling according to general QM styles

* style: fixed stripe QM UI

* fix: added tooltip for quernames

* feat: add tooltip for select ds options

* added consoles to debug debugger issue

* fix: fixed :active style of ds select dropdown in QM

* fix: fixed DS kind name in data source selector in QM

* fix: fixed border color mismatch for ds select dd

* fix: change tooltip msg for maximize/minize QM

* Fix automation for query manager revamp. (#7223)

* Add data-cy to support modified specs

* Fix event handler

* Fix RunPy and RunJS specs

* Fix event handler label

* Fix basic components spec

* Fix basic components failure

* Fix tabel spec failure.

* Fix runjs and runpy actions

* Fix table column options

* Add data-cy

* version: version updated to 2.13.0

* Version bump

---------

Co-authored-by: Kavin Venkatachalam <[email protected]>
Co-authored-by: Kavin Venkatachalam <[email protected]>
Co-authored-by: Manish Kushare <[email protected]>
Co-authored-by: Midhun Kumar E <[email protected]>
2023-08-09 18:01:48 +05:30
Ajith KV
9afb42b845
Fixed platform cypress test case for release v2.10.3 (#7104)
* Fix and modify platform test cases

* fix failing test cases

* Fix failing workspace test cases

* Add wait for failed test cases

* Remove query success toast

* skip the user onboarding via group
2023-07-24 21:00:14 +05:30
Ajith KV
b4d22578d1
Added cypress test for user onboarding with user groups (#7011)
* Add cypress test for user onboarding with user groups

* Update config

* Update intercept api for ee

* fix failing specs

* Fix add users funtion

* Fix GDS spec for action

* Update config
2023-07-17 10:50:42 +05:30
Ajith KV
bd69f0b9b1
Added cypress test for GDS user privileges (#6980)
* Add cypress test for GDS user priliavges

* Fix failing specs

* reslove conflicts

* fix conflicts and update cypress config file for GDS

* fix failing test cases

* Fix share app spec
2023-07-11 16:50:52 +05:30
Ajith KV
e416709ea4
Fix and modify cypress test cases for workspace sanitization changes (#6717) 2023-06-14 15:00:21 +05:30
Ajith KV
b581add526
Add cypress test for share app funcationality (#6459) 2023-05-18 12:59:14 +05:30
Ajith KV
5ab569bf1a
Fixed datasource connection cypress test cases (#6371)
* Fix and modify datasource connection

* Modify config files

* Fix snowflake test cases

* Data sourcce count

* fix postgres error message
2023-05-15 09:48:09 +05:30
Ajith KV
142d54bc50
Fixed failing profile cypress spec (#6245)
* Fix failed profile spec

* Modify data-cy of the dashboard section header

* Fix manage users spec

* Fix user permission spec

* Remove single workspace cypress test cases

* Add indentation changes

* Update self host signup spec

* Update cypress config file

* adding changes to capture downloads

* fix cypress tests for actions

* fecth invitation url from the database

* database test commit

* test commit

* test commit

* test commit

* test commit for pg host

* test commit

* commit for screenshot

* revert test commits

* Update sql task name

* Add changes for actions

* Fix manage groups spec

* Update folder structure

* Fix user permission spec

---------

Co-authored-by: Adish M <[email protected]>
2023-05-09 19:33:37 +05:30
Ajith KV
f02d8d4ca5
Modified failing manage users cypress spec (#6109)
* Fix and modify manage users cypress spec

* Fix signup cypress spec
2023-04-25 10:10:30 +05:30
Mekhla Asopa
f0597c98b2
Added automation for database (#5589)
* Added data-cy for table header and subheader

* added data-cy for table operations

* added data-cy for table and text

* Added selectors and texts for database

* Added method for table edit and delete operation

* Added data-cy for delete icon and fields

* Added method for table operation

* Add workaround to handle re-rendering of filter

* Updated and removed duplicate data-cy

* fix toast failure

* deleted unused files

* Updated data-cy for filter section

* updated spec

* Fix failure

* resolved conflicts

---------

Co-authored-by: emidhun <[email protected]>
2023-03-20 18:48:10 +05:30
Mekhla Asopa
cf25571783
Update cypress spec for export and import functionality (#5388)
* updated spec

* fix cypress failure

* delete file under download folder
2023-03-06 16:22:00 +05:30
Ajith KV
3dd844dc35
Add cypress spec for password reset functionality (#5609) 2023-02-23 08:43:35 +05:30
Ajith KV
f1c3079112
Added cypress test for user signup (#5564)
* Add cypress test for user signup

* Update invalid link it block

* resolve merge conflicts
2023-02-16 14:53:27 +05:30
Ajith KV
cf5e22932c
Add happy path cypress spec for self hosted onboarding (#5545) 2023-02-14 14:00:54 +05:30
Ajith KV
12daac6d92
Add and modify data-cy for v2 (#5458)
* Add data-cy for v2 elements

* Add and modify data-cy

* fix and modify multiworkspace spec

* Add data-cy for workspace variable

* Fix user permission spec

* Add selectors and text for workspace variable

* Fix changes

* Add test cases for workspace varaible user permissions

* Modify workspace variable data-cy

* Add and modify data-cy for manage groups

* Fix and modify Manage groups spec

* Fix and modify single workspace spec

* Add missing data-cy for single workspace

* Fix and modify dashboard spec

* Add and modify data-cy for dashboard elements

* Fix and modify profile spec

* Add data-cy for avatar

* Fix and modify SSO onboarding spec

* Add data-cy for workspace name

* fix failing specs

* Add data-cy work edit workspace button

---------

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2023-02-09 16:26:10 +05:30
Ajith KV
9c8cddebe9
Fix and modify login spec (#5345) 2023-01-17 17:47:53 +05:30
Midhun Kumar E
80e22acb4a
Fix failing components verification specs (#5317)
* Add constants for components (labels and selectors)

* Modify common methods according to v2 changes

* Modify components specs according to v2 changes

* Modify cypress config to fix cypress runner crashing.

* Remove hardcoded data-cy from specs
2023-01-17 14:37:08 +05:30
Kiran Ashok
44c66423ef
changed work email to email (#5126) 2023-01-02 12:42:37 +05:30
Ajith KV
495057372b
[Cypress] Modify manage sso spec in multi workspace (#4865)
* Modify manage sso spec and add cypress test to verify workspace login page

* Modify manage sso spec and add cypress test to verify login and sign up page

* Add user onboarding test using GitHub and Google SSO

* Modify the spec with new methods

* Update sso id
2022-12-09 18:42:31 +05:30
Ajith KV
299ff9f667
Fixed failing dashboard specs (#4667)
* Add and modify data-cy

* Fix failing manage users spec in multiworkspace

* Fix failing user permission spec in multi workspace

* Fix failing dashboard spec

* Fix failing manage group spec

* Fix failing manage users spec in single workspace

* Fix failing user permission spec in single workspace

* indentation changes

* Remove wait
2022-10-31 19:08:43 +05:30
Ajith KV
cd7926130e
Add happy path spec for number input widget (#4074)
* Add data-cy for number input widget

* Modify faker file

* Add spec and constants

* Modify spec with random number funtion

* Modify button widget spec

* Review changes
2022-10-04 13:08:21 +05:30
Ajith KV
7d89282776
Add happy path spec for Text Input widget (#4029)
* Add and modify data-cy for text input widget

* Add methods and utlis file for text input widget

* Add custom command for code mirror input clear function

* Modify common widget selectors

* Add and modify texts and labels

* Add spec file

* Add review changes
2022-09-23 18:03:05 +05:30
Midhun Kumar E
4d42efaa8f
Add cypress test for listview (#4070)
* Add data-cy

* Add utils

* Add spec and constants

* Fix commented lines.

* Added missing preview
2022-09-23 13:38:28 +05:30
Midhun Kumar E
bfe0fe9cad
Add preview for Multiselect and Datepicker happyPaths (#3854)
* Modify data-cy and update spec

* Add data-cy

* Add preview for multiSelect

* Add preview for datePicker

* Fix Text data-cy

* Modify selectors and texts

* Resolve conflicts and commented few lines of code.
2022-09-14 16:19:56 +05:30
Ajith KV
21e7162665
Cypress test for button widget happy path (#3776)
* Add and modify data-cy attribute for elements

* Modify faker file for random rgba hex code

* Add methods specific for button widget

* Add and modify common selector and text file

* Add and modify common widget methods

* Modify button text file

* Modify button widget happy path file

* Remove button selector file

* Modify multiselect widget happy with new methods

* Modify verify box shadow css method

* Add and modify common selector file

* Modify button text file

* add and modify specific methods for button widget

* Add and modify custom commands

* Add and modify common widget methods

* Add app preview and modify button widget happy path

* Add and modify data-cy attribute for elements

* Modify multiselect widget happy with new methods

* Modify data-cy attributes

* Add review changes

* Add data-cy attribute

* Add review changes

Co-authored-by: arpitnath <[email protected]>
2022-09-05 14:06:45 +05:30
Ajith KV
46abf0bdfe
Cypress test for dashboard, app and folder CRUD operations (#3677)
* Add and modify data-cy attribute for elements

* Add and modify common and dashboard selector and text

* Add task to delete download folder

* Modify faker file

* Add common methods

* Add methods specific for dashboard spec

* Modify dashboard spec

* Review changes

* Add and modify data-cy for elements

* Add custom command to verify elements

* Modify verify elements command

* Remove exported app file
2022-08-04 20:40:46 +05:30
Midhun Kumar E
272205cce5
Add happy path spec for Multiselect widget (#3731)
* Modify faker package

* Add data-cy

* Add Selectors

* Add texts and labels

* Add faker objects

* Add spec file

* Add methods and new utis file

* Minor fix

* Minor typo fix
2022-08-04 20:16:53 +05:30
Midhun Kumar E
cf31de35fc
Upgrade Cypres to V10.3.1 (#3651)
* Remove cypress and its dependencies from root dir

* Install cypress to cypress-tests  directory

* Move cypress specs and utils

* Remove older files

* Fix package.json
2022-07-25 10:15:28 +05:30
Renamed from cypress/constants/texts/common.js (Browse further)