Commit Graph
67 Commits
Author SHA1 Message Date
78aafaf9aa CB-3508 create events for session async tasks (#3036)
* CB-3508 create events for session async tasks

* CB-3508 remove redundant events

* CB-3508 update async web task event logic

* CB-6000 refactor: migrate AsyncTask code to core-root package

* CB-6000: fix

* CB-3508 use only update async task event

* CB-3508 add result info to async task event

* CB-6000 feat: change the way of updating task state

* CB-6000 refactor: rename type and property

* CB-6000 fix: use id from server

* CB-3508 do not have results in task info event

* CB-6000 changes after BE update

* CB-6000 fix: set only status on status update

* CB-3508 fixes after review

* CB-6000 refactor: task id

return back task id generation and saving on creation. Added second map filled on running and linking backend Id and frontend Id. Added helper method to get task

* CB-6000 refactor: handle race condition

add pending events map to save last status if it's came earlier than we saved the task

* CB-6000 refactor: AsyncTask creation

* CB-3508 fixes build

* CB-6000 fix: retry update task info later if locked

* CB-6000 refactor: add a comment about delayed update

---------

Co-authored-by: Andrey Sychev <nukemoore@gmail.com>
Co-authored-by: Sychev Andrey <44414066+SychevAndrey@users.noreply.github.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-24 13:45:16 +01:00
Alexey 6ad148850d refactor: migrate to pure esm CB-5684 (#2929)
* refactor: migrate to pure esm

* chore: revert `useDefineForClassFields` tsconf

* chore: remove patch.js
2024-09-21 07:06:37 +03:00
00c1cc81ac CB-4708 add localization to some data viewer tokens (#2388)
* CB-4708 add localization to some data viewer tokens

* Fix conflicts

* CB-4708 remove extra code

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-08-26 11:32:22 +03:00
b48684b65d CB-3823 refactor: introduce service provider (#2774)
* CB-3823 refactor: introduce service provider

* CB-3823 fix: tests

* CB-5361 api for db tools

* CB-3823 feat: table group

* CB-3823 feat: connection tools resource

* CB-3823 refactor: database result action

* CB-3823 feat: session manager

* CB-3823 fix: data viewer error tracking

* CB-5361 add tools for rm admin

* CB-3823 fix: review

* CB-5361 fixes after review

* CB-5361 add comment

* CB-5361 fix permissions

* CB-3823 fix: service provider

* CB-3823 fix: useController services fallback

---------

Co-authored-by: Ainur <ainur.iagudin@dbeaver.com>
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-07-16 17:38:00 +02:00
e259606422 CB-4885 feat: components registry (#2745)
* CB-4885 feat: components registry

* CB-4885 fix: table data loading behaviour

* CB-4885 chore: remove unused comments

* CB-4885 fix: dispose tables correctly

* CB-4885 fix: cache invalidation

* CB-4885 fix: nav tree state persistence

* CB-4885 fix: database disconnect detection

* CB-4885 fix: auto refresh on error

* CB-4885 fix: auto refresh behaviour

* CB-4885 fix: auto refresh behaviour

* CB-4885 fix: top menu bar styles

* CB-4885 fix: auto refresh error handling

* CB-4885 chore: add comment about implementation

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
2024-07-02 20:00:39 +02:00
AlexeyandEvgenia Bezborodova 674627ebea CB-4090 fix: catch throttle errors (#2651)
* CB-4090 fix: catch throttle errors

* CB-4090 fix: catch throttle errors

* CB-4090 fix: detect closed contexts

* CB-4090 fix: close results properly

---------

Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-05-24 15:52:50 +03:00
51ef899922 Cb 4270 row counter add cancel button for big tables (#2545)
* CB-4270 adds cancel option for load total count of rows in table

* CB-4270 adds ui for load total count of rows in table

* CB-4270 fix: task cancels in a true way

* CB-4270 cleanup

* CB-4270 cancel load total count on close table tab

* CB-4270 cancel load total count on close sql editor tab

* CB-4270 fix: cancel close only task if it is not already cancelled

* CB-4270 chore: tasks -> cancelLoadTotalCountTasks

* CB-4270 stops counting rows when tab closes

* CB-4270 reverts incorrect calls of cancelLoadTotalCount

* CB-4270 reverts ToolsActions unneeded props

* CB-4270 pr fixes

* СB-4270 cancel load total count for refresh action

* CB-4270 fix: place cancelLoadTotalCount to DatabaseDataSource

* CB-4270 fix: cancel load rows in refresh data in data source

* CB-4270 cancels load on close result set tab

* CB-4270 refactor: move cancelLoadTotalCount to resultsetdatasource

* CB-4270 cancel load total count execute only for resultsetdatasource

* CB-4270 adds constraint for TableFooterRowCount

* CB-4270 fix: do not load new value if cancelled rows loading

* CB-4270 cleanup

* Revert "CB-4270 cleanup"

This reverts commit f8bffa253a.

* CB-4270 pr fixes

* CB-4270 pr fixes

* CB-4270 deletes cross icon icon

* CB-4270 DataSources has correct tree of calls for cancel and dispose functions

* CB-4270 cleanup

* chore: add experimental cancellable promise implementation

* CB-4270 pr fixes: remove unneeded disposes + close results in close result tab flow

* CB-4270 removes closeResults abstraction leak in ResultSetDataSource extended classes

* CB-4270 removes unused context in data sources

* CB-4270 adds loader for CancelTotalCountAction on cancel task action

* CB-4270 cancel row count job fix

* CB-4270 cancel row counter with notification

* CB-4270 pr fixes

* CB-4270 pr fixes

---------

Co-authored-by: Aleksei Potsetsuev <wrouds@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Ainur <ainur.iagudin@dbeaver.com>
2024-04-23 08:59:58 +03:00
Ainurandkseniaguzeeva 8b5aac0093 CB-4829 connection cache same ids fix (#2491)
* CB-4829 connection cache same ids fix

* CB-4829 find connection info with project id fix

* CB-4829 add project id to gql functions

---------

Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
2024-04-02 16:47:48 +00:00
cb897343bd Cb 4457 subcollections firestore (#2338)
* CB-4457. Add api for read subcollections firestore

* CB-4457. Move firestore to ee module

* CB-4457. Move firestore to ee module

* CB-4457. Added annotations for firestore

* CB-4457. Added metaData

* CB-4457. Fixed build

* CB-4457 add hasChildrenCollection flag

* CB-4457. Add new resultsRow

* CB-4457. Renamed SQLResultRowMetaData parameters

* CB-4457 add rows with metadata to schema

* CB-4457. Fix gql

* CB-4457. Added logic to get Firestore subcollection

* CB-4457. Refactor result, rename gql, added new type to return gql

* CB-4457. Revert list to map

* CB-4457. Get Subcollections info

* CB-4457. Refactor code

* Added sceleton for insert subcollection

* CB-4457. Added isSupportsDataFilter flag for subcollection

* CB-4457 add locales

* CB-4457. Added isSupportsDataFilter flag for subcollection

* CB-4457. Added update/insert logic for subcollection

* CB-4457 support collection editing

* CB-4457. Refactor after review, moved hierarchical model to ee.

* CB-4457 add SerializableKey

* CB-4457 keep only new rowsWithMetaData api

* CB-4457 review fixes

* CB-4457 review fixes

* CB-4457. Refactor after review. Added logic for delete

* CB-4457 pass metadata in deleted rows

* CB-4457 check row for undefined

* CB-4457 pass metadata when editing json

* CB-4457. Refactor edit, fix icons

* CB-4457. Refactor makeDocumentInputValue, created new method for locator

* CB-4457 try to get the current metadata for row

* CB-4457 clear cache on result update

* CB-4457 remove extra check

* CB-4457. Fixed npe

---------

Co-authored-by: DenisSinelnikov <denis.sinelnikov@dbaever.com>
Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: Aleksei Potsetsuev <wrouds@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-02-13 18:29:22 +01:00
serge-rider 904375aa66 dbeaver/pro#2341 Copyright update 2024-01-10 10:31:38 +03:00
7de1d8ce66 CB-3777 api for getting row count (#2100)
* CB-3777 api for getting row count

* CB-4176 add rows total count

* CB-4177 count rows from sql queries

* CB-4176 review fixes

* CB-3777 refactor: use active task instead of currentTask in database datasource

* CB-3777 fix: don't use private params

* CB-4176 revert currentTask

* CB-4176 add error message

* CB-4176 add tooltip

* CB-4176 change locales

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: Aleksei Potsetsuev <wrouds@gmail.com>
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
2023-11-14 17:28:27 +03:00
ab985673b0 CB-3704 feat(plugin-data-viewer): blob uploading (#2027)
* CB-3704 feat(plugin-data-viewer): blob uploading

* CB-3704 fix: check  truncated value correctly

* CB-4051. Added upload big files

* CB-4051. remove unusable files

* CB-3704 feat: upload blobs

* CB-4051. Refactor after discussion with front-end

* CB-4051. Merge develop

* CB-4051. Fixed imports

* CB-3704 fix: upload blobs for new rows

* CB-4051. Fixed added new row with file

* fix: reset editing state

* CB-4051. Fixed after review

* CB-4051. revert

* CB-4051. Fixed doc, imports, style

* CB-4051. Fixed checkstyle

* revert

* CB-4051. Refactor after review, added handler for delete temp folder

* CB-3704 chore: update ts project references

* CB-3704 fix: rename file upload name

* CB-3704. delete comments

* CB-3704. Refactor after review

* CB-3074. Rename job

* CB-3704. Fix save for json

* CB-3704 fix: boolean value representation

* CB-3704 fix: downloadable data detection

* CB-3704 fix: downloadable data detection

* CB-3704. Fixed boolean null value

* CB-3704 fix: truncate long strings for display data

* CB-3704 fix: transform complex values

* CB-3704. Fixed json update

* CB-3704 fix: display value

* CB-3704 fix: data set

* CB-3704 fix: keep content type when editing content values

* CB-3704 feat: add download button for

* CB-3704. Rename event

---------

Co-authored-by: Denis Sinelnikov <denis.sinelnikov@dbeaver.com>
Co-authored-by: DenisSinelnikov <142215442+DenisSinelnikov@users.noreply.github.com>
Co-authored-by: EvgeniaBzzz <139753579+EvgeniaBzzz@users.noreply.github.com>
2023-10-16 16:47:11 +03:00
8a685ef47e Cb 1036 server output log sql editor (#1999)
* CB-2551. Fixed additional auth for disabled user

* CB-3923. Added output reader logs

* CB-3923. Added output reader logs

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3923. Refactor after review

* CB-3924: add show output button

* CB-3924: add output event handler and resource

* CB-3924: add server output logs panel

* CB-3924: fix bugs

* CB-3923. Fixed checkstyle

* CB-3924: fixes after review

* CB-3923. Refactor after review

* CB-3924: fixes after review

* CB-3924: add line wrapper extension for editor

* CB-3923. Refactor after review

* CB-3924: show output logs for current context

* CB-3924: fixes after review

* CB-3924: add output logs icon

* CB-3924: fixes after review

* CB-3924: fixes after review

* CB-3924: fixes after review

* CB-3924: fix bug with not updated menus

* CB-3924. Fix boolean type

---------

Co-authored-by: Dmitry Osipov <teunlao@gmail.com>
Co-authored-by: EvgeniaBzzz <139753579+EvgeniaBzzz@users.noreply.github.com>
2023-09-20 13:02:29 +03:00
AlexeyandDaria Marutkina 11507c362d CB-895 feat: columns rearrangement (#1903)
* CB-895 feat: columns rearrangement

* CB-895 chore: remove unused vars

* CB-895 chore: pr review fixed

* CB-895 fix: rearranged columns size calculation

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-08-16 12:17:22 +03:00
Alexey 2b25b3ac8e Chore/prettier (#1706)
* chore: add prettier

* chore: format code
2023-05-28 02:42:14 +03:00
alex 52c171f4dc CB-3185 stop executing on cancel (#1696) 2023-05-26 15:20:54 +02:00
dfb8f1a5ad CB-3302 api for group by query (#1600)
* CB-3302 api for group by query

* CB-3302 rename grouping function

* CB-3302 feat: grouping panel

* CB-3393 fix: grouping errors handling

* CB-3327 fix: enable constraints for simple mode tables

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-04-19 16:23:47 +03:00
Alexey e1f9f1858b chore: update copyright year to 2023 (#1579) 2023-03-31 16:54:30 +03:00
25f859a043 CB-2867 support dataset in UI (#1436)
* CB-2867 dataset plugin

* CB-2867 - add original sql query to resultset

* CB-2867 move originalQuery to execute info

* CB-2867 feat: read originalQuery for query results

* CB-2867 refactor: rename scripts plugin & resources tree type filter

* CB-2867 fix: import

* CB-2867 fix: file extensions type

* CB-2867 fix: file extensions type

* CB-2867 refactor: data tools bar styles

* CB-2867 send query with all filters to gql

* CB-2867 chore: implement getKeyRef for CachedMapResource

* CB-2867 refactor: ProjectNavNodeService

* CB-2867 chore: update go-split

* CB-2867 refactor: rename originalQuery to fullQuery

* CB-2867 refactor: add resource onUse data

* CB-2867 refactor: add sql data source script feature

* CB-2867 refactor: add metadata to sql datasource

* CB-2867 refactor: add datasource outdate

* CB-2867 feat: provided database models for SqlDataSource

* CB-2867 fix invalid resource parent node

* CB-2867 fix: styles

* CB-2867 do not return extra nodes in root navigator model

* CB-2867 fix: nav tree project hide for TE single project

* CB-2867 fix: pass schema & catalog info to data source

* CB-2867 chore: code review

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: Wroud <wroud@yandex.ru>
2023-02-08 17:46:17 +03:00
Konstantin Vasilev ccd864470c feat: CB-2212 add resultIndex parameter to isReadonly method 2022-08-15 15:20:15 +03:00
Konstantin Vasilev 92478b680b feat(plugin-data-viewer, plugin-sql-editor): CB-2212 fix review 2022-08-15 13:26:58 +03:00
Konstantin Vasilev 848823f312 feat(plugin-data-viewer, plugin-sql-editor): CB-2212 Readonly data without unique row identifier 2022-08-12 12:26:18 +03:00
Wroud f0aaf924fb refactor: CB-2372 projects API 2022-08-02 14:31:38 +03:00
Naumov Alexey 0f6c67bdcf fix(plugin-data-viewer): CB-2141 hide save option if there is no primary key 2022-06-07 21:09:41 +02:00
Wroud 8838671327 chore: remove unused code 2022-04-22 21:08:17 +03:00
Naumov Alexey 382e50186b feat(plugin-data-viewer): CB-1914 add quotas service 2022-04-18 12:04:42 +02:00
Naumov Alexey de5ae3e025 feat(plugin-data-viewer): CB-1914 add quotas to the value panel 2022-04-15 13:51:50 +02:00
Naumov Alexey 57f7d0b4ae feat(plugin-data-viewer): CB-1500 possibility to save and see large lobs 2022-04-13 13:55:12 +02:00
Wroud 19bd8fe42b build: update dependencies 2022-03-22 00:38:45 +03:00
Wroud d23cd7e958 refactor: CB-1645 CB-1711 CB-1131 rendering perfomance 2022-02-22 19:30:55 +03:00
Nikita Akilov fac1d3954d dbeaver/dbeaver-ee#1372 update copyright for year 2022 2022-01-18 19:47:55 +03:00
Wroud 0b0134a860 refactor: CB-1407 split sql edtitor plugin 2021-11-12 14:35:00 +03:00
Wroud 72aa99a3fc refactor: CB-1407 add AsyncTaskInfoService 2021-11-12 12:43:47 +03:00
Wroud a43f074edb fix(plugin-data-viewer): CB-1243 focus and selection behavior 2021-10-06 19:56:23 +03:00
Wroud 7f9f549484 fix(plugin-sql-editor): CB-1299 query information 2021-10-04 16:49:57 +03:00
Wroud cdb6555d02 fix: CB-1291 empty resultSet 2021-10-03 19:04:19 +03:00
Wroud eba325f002 fix(plugin-data-viewer): CB-1250 actions update 2021-10-03 14:41:16 +03:00
Wroud 4d63e3135b fix: CB-1291 close results and pass previous result id to requests 2021-09-28 18:34:40 +03:00
Wroud 9cd2e3fb22 fix: CB-1132 constraints behavior 2021-09-08 18:43:36 +03:00
Wroud c2c40360ca fix(plugin-sql-editor): CB-1151 changes save behavior 2021-08-18 12:15:38 +03:00
Wroud e5f0df50e8 refactor: CB-1151 database data edition api 2021-08-17 20:27:31 +03:00
Wroud efac147ee1 chore(core-sdk): CB-1151 update sdk 2021-08-10 15:44:28 +03:00
Wroud f3b2b0f868 fix(plugin-sql-editor): CB-945 script cancellation 2021-08-04 23:59:35 +03:00
Wroud 060703cfda feat: CB-945 sql script execution 2021-08-04 17:49:23 +03:00
Wroud 96d45facf8 refactor: CB-1093execution contexts 2021-07-16 22:44:16 +03:00
Naumov Alexey 48f225dfd9 fix(plugin-data-viewer): CB-1108 don't update requestFilter on save 2021-07-09 19:12:02 +03:00
Wroud 5d30b65a5f refactor(plugin-sql-editor): CB-1059 editor state 2021-06-16 12:13:29 +03:00
Naumov Alexey e72f2c8883 feat(plugin-data-spreadsheet-new): CB-666 grid context filter 2021-05-25 22:21:22 +03:00
Wroud 5d9294409a fix: CB-936 allow reload after an error in data request 2021-04-13 21:42:45 +03:00
Wroud 544698810a fix: CB-754 query execution status 2021-04-06 01:43:11 +03:00