Commit Graph
1625 Commits
Author SHA1 Message Date
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
3bd2288564 CB-2773-TE-event-pulling-send-session-status-as-an-event (#1596)
* CB-3235-Send-event-about-session-expire (#1576)

* CB-3235 Send event about session expire

* CB-3235 Send event about session expire

Fixes WSSessionExpiredEvent description in comment

* CB-3235 Send event about session expire

Moves WSSocketConnectedEvent to session package

* CB-3235 Send event about session expire

Implements BaseWebSession#sendSystemEvent

* CB-3235 Send event about session expire

Implements a WSSessionStateEvent and a job to send it periodically

* CB-3235 Send event about session expire

Fixes code style issues

* CB-2997 jetty server bundle (#1587)

* CB-2997 jetty server bundle

* CB-2997 remove jetty dependencies

* CB-3235 review fixes

---------

Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>

* CB-2773 handle session expire and session state events

* CB-2773 fix

* CB-2773 subscribe to topic, handle session state event

---------

Co-authored-by: Yaroslav Emelyanov <iaroslav.emelianov@dbeaver.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
Co-authored-by: Tatiana Fokina <tatiana.fokina@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-04-19 14:15:27 +03:00
serge-rider d3a014cbb6 23.0.3 config 2023-04-16 07:59:19 +03:00
8f96e8375a CB-3215 event improvements (#1592)
* CB-3215 use generics in event handlers

* CB-3215 create default event handler

* CB-3215 get supported topic ids from event descriptor

---------

Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-04-13 16:42:22 +03:00
Ainur 5fc9a35579 CB-2997 jetty server bundle (#1587)
* CB-2997 jetty server bundle

* CB-2997 remove jetty dependencies
2023-04-06 19:26:48 +03:00
Alexander SkoblikovandAleksey Potsetsuev d03118490a CB-2533 azure cloud explorer (#1583)
* CB-3236 feat: support requesting a configuration authentication

* CB-3238 azure cloud

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-04-05 21:21:53 +03:00
Yaroslav Emelyanov 0a28421aaf CB-1577-H2-driver-update (#1538)
* CB-1577 H2 driver update

Implements migrator

* CB-1577 H2 driver update

Registers the h2_v2 driver

* CB-1577 H2 driver update

Reimplements migrator

* CB-1577 H2 driver update

Renames WorkPaths to WorkspacePaths

* CB-1577 H2 driver update

Updates default configs to use H2 v2

* CB-1577 H2 driver update

Implements config update

* CB-1577 H2 driver update

Fixes implementation

* CB-1577 H2 driver update

Updates h2 v2 driver version to latest

* CB-1577 H2 driver update

Fixes copyright

* CB-1577 H2 driver update

Changes logging level for cases where migration is not needed

* CB-1577 H2 driver update

Reverted 'driver' -> 'driverProvider' renaming

* CB-1577 H2 driver update

Changes the H2 v1 detection method to check files instead of a driver error.

* CB-1577 H2 driver update

Implements trace file backup;
Fixes url reload after migration

* CB-1577 H2 driver update

Updates the h2 filename in default configurations.

* CB-1577 H2 driver update

Fixes code style issues

* CB-1577 H2 driver update

Fixes constants naming

* CB-1577 H2 driver update

Fixes h2v2 url after migration

* CB-1577 H2 driver update

Fixes H2Migrator NPE
2023-04-04 14:44:39 +03:00
AinurandAlexander Skoblikov d474f76c3e CB-2388 split cb application (#1571)
* CB-2388 split cb application

* CB-2388 rename ce app

* CB-2388 fix conflicts

---------

Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
2023-04-04 14:33:12 +03:00
serge-rider 934dbe6154 23.0.2 config 2023-04-03 12:39:13 +03:00
0a5caea6b9 CB-2885-TE-web-session-state-synchronisation-between-several-nodes (#1556)
* CB-3209 Add instance ID to web session (#1532)

* CB-3209 Add instance ID to web session

* CB-3209 Add instance ID to web session

Moves applicationRunId to BaseWebApplication

* CB-3267 Send session expired event on socket create attempt

Implements session restore on socket creation

* CB-3267 Send session expired event on socket create attempt

Changes logging

* CB-3267 Add dialog and notification for node change

* CB-3154 save user creds to secrets in initConnection (#1502)

* CB-3154 save user creds to secrets in initConnection

* CB-3155 add tab 'change credentials'

* CB-2964 feat: lazy loaders

* CB-2964 add reconnect, display tab conditionally

* CB-2964 Init connection on dialog result

* CB-2964 fix logic

* CB-2964 Add logic

* CB-2964 Update ConnectionAuthService.ts

Co-authored-by: Alexey <wrouds@gmail.com>

---------

Co-authored-by: Tatiana Fokina <tatiana.fokina@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: Tatiana Fokina <123386439+tfokina@users.noreply.github.com>

* CB-3267 Send session expired event on socket create attempt

Implements session restoration on '/sessionState' request

* CB-3267 Send session expired event on socket create attempt

Fixes WebSocketTest.initClient test

* CB-3267 Send session expired event on socket create attempt

Fixes code style issues

* CB-3267 fix localization text

* CB-3267 Send session expired event on socket create attempt

Fixes code style issues

* CB-2885 TE: web session state synchronisation between several nodes

Reverts session restoration on '/sessionState' request

* CB-2885 PR fixes, stop opening websocket when node changes

* CB-2885 TE: web session state synchronisation between several nodes

Replaces Collections.synchronizedList by CopyOnWriteArrayList in CBJettyWebSocketManager#socketBySessionId

* CB-2885 TE: web session state synchronisation between several nodes

Fixes code style issues

* CB-2885 TE: web session state synchronisation between several nodes

Implements restoring old authentication information before creating a new WebSession instance.

* CB-2885 move restore logic to separate method

---------

Co-authored-by: Tatiana Fokina <tatiana.fokina@dbeaver.com>
Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: Tatiana Fokina <123386439+tfokina@users.noreply.github.com>
2023-03-30 19:20:43 +03:00
Alexander Skoblikov 2107f4f968 CB-3164 file based lock controller; lock project when we try update d… (#1564)
* CB-3164 file based lock controller; lock project when we try update datasources
2023-03-30 16:33:38 +03:00
Alexander Skoblikov 78e16f3ffc CB-3280 skip project node for extensions (#1573) 2023-03-30 14:16:55 +03:00
837d321b3f CB-2888 project sync (#1508)
* CB-3115 Add new create/delete project events

Implements new events

* CB-3115 Add new create/delete project events

Renames WSProjectLifeCycleEvent to WSProjectLifeCycleEvent
Adds BaseWebSession#addSessionEvent call in WsProjectLifeCycleEventHandler

* CB-3127 events for project permissions

* CB-2888 TE: Add synchronization for projects

Renames WSProjectUpdatedEventHandler to WSAbstractProjectEventHandler and
 WsProjectLifeCycleEventHandler to WSProjectUpdatedEventHandler

* CB-3127 code style fix

* CB-3127 rename parameters

* CB-3114 support project remove/add event

* CB-3127 event filter fix

* CB-2888 TE: Add synchronization for projects

Moves validateEvent call to WSAbstractProjectEventHandler;
Adds the use of an implementation class logger to the WSAbstractProjectEventHandler.

* CB-2888 TE: Add synchronization for projects

Fixes missed copyright

* CB-3127 filter event fix

* CB-2888 fix type naming

* CB-3127 project update event add remove connections from session

* CB-2888 TE: Add synchronization for projects

Adds dispatch of project creation/deletion events to WebServiceRM

* CB-3127 load connections when creating web project

* CB-3114 update active projects on active project remove

* CB-3114 update active projects via handler on project delete

* CB-2888 mark root tree as outdated on project add event

* CB-2888 move tree outdate logic to the useElementsTree hook

* CB-2888 fix conflict with devel

---------

Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
2023-03-23 16:42:08 +03:00
ba885fb7eb CB-3078 te secret events (#1535)
* CB-3078 te secret events

* CB-3078 use default message handler for secret messages

---------

Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
2023-03-23 05:31:06 +03:00
Alexander Skoblikovanddariamarutkina 2e16169509 CB-3261 validate empty project id (#1550)
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-23 00:56:07 +03:00
d744f7f22c CB-3048 [Bug]: Lots of small files that leads to out of inodes on fil… (#1515)
* CB-3048 [Bug]: Lots of small files that leads to out of inodes on filesystem

Sets the MaxInactiveInterval to the SessionHandler

* CB-3048 [Bug]: Lots of small files that leads to out of inodes on filesystem

Implements the use of the current CBApplication instead of CBPlatform in CBJettyServer

---------

Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-23 00:55:51 +03:00
e9011eb646 CB-3152 allow multiple ws connections in same session (#1534)
Co-authored-by: Serge Rider <serge@jkiss.org>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-23 00:54:12 +03:00
Ainur 1426c07af4 CB-3207 use separate qm client for session (#1531)
* CB-3207 use separate qm client for session

* CB-3207 code style fix
2023-03-21 22:52:08 +03:00
Serge Rider cc20fa74c7 CB-2549-virtual-workspace (#1546)
* CB-2549 Web workspace, model refactoring

* CB-2549 Web apps refactoring. QMDB init fix

* CB-2549 Anonymous user support
2023-03-21 14:59:52 +03:00
730a156434 CB-3154 save user creds to secrets in initConnection (#1502)
* CB-3154 save user creds to secrets in initConnection

* CB-3155 add tab 'change credentials'

* CB-2964 feat: lazy loaders

* CB-2964 add reconnect, display tab conditionally

* CB-2964 Init connection on dialog result

* CB-2964 fix logic

* CB-2964 Add logic

* CB-2964 Update ConnectionAuthService.ts

Co-authored-by: Alexey <wrouds@gmail.com>

---------

Co-authored-by: Tatiana Fokina <tatiana.fokina@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: Tatiana Fokina <123386439+tfokina@users.noreply.github.com>
2023-03-20 15:52:14 +03:00
Serge Rider bc3cf355bf dbeaver/pro#1443 Resource types and icons model refactoring (#1545) 2023-03-20 13:11:32 +03:00
serge-rider 51c75bf3ce 23.0.1 config 2023-03-19 15:29:06 +03:00
Ainuranddariamarutkina 710ba76841 CB-3192 session expired fix npe (#1523)
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-17 20:22:18 +03:00
Ainuranddariamarutkina e1f928ca1f CB-3157 rm folder creation fix (#1498)
* CB-3157 rm folder creation fix

* CB-3157 code style fix

---------

Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-17 20:21:56 +03:00
4b978b5f68 CB-3168 readonly server url (#1509)
* CB-3168 fix: readonly serverURL for distributed mode

* CB-3170 read server url from dc

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-03-17 20:20:29 +03:00
Yaroslav EmelyanovandIaroslav Emelianov 34f1797f9e CB-3247 logger in tests displays only INFO messages (#1540)
Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
2023-03-14 16:58:30 +03:00
Alexander Skoblikov fe9619c36a CB-3241 use correct method for change password (#1536) 2023-03-10 17:35:59 +03:00
92aab55aa3 CB-3097 add datasource info for sql parser (#1485)
* CB-3097 add datasource info for sql parser

* CB-3097 fix: remove sql query delimiter truncation

---------

Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-03-01 20:48:05 +03:00
Alexander Skoblikov 2e43267202 CB-3171 fix private project permission (#1511) 2023-02-28 23:10:17 +03:00
Yaroslav EmelyanovandIaroslav Emelianov eb0186e243 CB-3008 TE: limit access to private project (#1467)
* CB-3008 TE: limit access to private project

Creates an "isPrivateProjectsAccessible" flag in the RM config with default == false, which excludes private projects from the getProjects request on the TE-only backend.

* CB-3008 TE: limit access to private project

Implements same behavior in all products

* CB-3092
Run CB product in Idea without Eclipse manual configuration

Fixes user permissions check

* CB-3008 TE: limit access to private project

Code style fixes

---------

Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
2023-02-28 22:26:12 +03:00
Ainur fcc8d2cacd CB-3026 dynamodb auth properties fix (#1494) 2023-02-28 21:49:38 +03:00
Yaroslav EmelyanovandIaroslav Emelianov 17c08e7e51 CB-3103 Avoid database corruption (#1471)
* CB-3103 Avoid database corruption

Adds savepoints before each update script

* CB-3103 Avoid database corruption

Fixes code style issues

* CB-3103 Avoid database corruption

Removes SQLSchemaVersionManager#updateCurrentSchemaVersion implementation with actual version value by defdault.
Adds SQLSchemaVersionManager#getLatestSchemaVersion to use it in updateCurrentSchemaVersion#updateCurrentSchemaVersion(DBRProgressMonitor, Connection, String, int) when an actual version is needed

---------

Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
2023-02-28 14:25:41 +03:00
AlexeyandAleksandr Skoblikov b55b021f68 fix/cb-3159/root-uri (#1499)
* CB-3159 fix: root_uri

* CB-3159 fix: prefetch icons

* CB-3159 force add slashes for rootUri

---------

Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>
2023-02-27 17:43:37 +03:00
serge-rider efa077372c 23.0 config 2023-02-25 17:12:47 +03:00
Ainur 743f7f3e1d CB-3147 different icons for non-sql files (#1483)
* CB-3147 different icons for non-sql files

* CB-3147 add dataset icon
2023-02-23 14:34:21 +03:00
Ainur 812fb4e174 CB-3099 set project property rm api (#1463) 2023-02-23 14:33:34 +03:00
AinurandAleksey Potsetsuev aba746df24 CB-3116 gql check permissions fix (#1462)
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-02-22 17:53:07 +03:00
2e45dcbbc5 CB-3105 fix: websocket retry / repeat delay (#1457)
* CB-3105 fix: websocket retry / repeat delay

* CB-3105 chore: codestyle

* CB-3105 improve logs

* CB-3105 fix: stop reconnecting to websocket if session expired

---------

Co-authored-by: Alexander Skoblikov <aleksandr.skoblikov@dbeaver.com>
Co-authored-by: Serge Rider <serge@jkiss.org>
2023-02-22 16:39:50 +03:00
AinurandMarinaVorobeva21 25d6537369 CB-2975 datasource send event fix (#1424)
* CB-2975 datasource send event fix

* CB-2975 resolve secrets when updating the connection

---------

Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
2023-02-22 14:37:00 +03:00
Ainurandnaumov d97f645945 CB-3062 extra fields for events (#1429)
* CB-3062 extra fields for events

* CB-3062 code style fixes

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
2023-02-17 14:55:19 +03:00
Alexander Skoblikov b1908ccbbc CB-3080 reconnect ws client (#1472) 2023-02-15 17:44:38 +03:00
3f687ac419 CB-3100 rm event for creating project (#1453)
* CB-3100 rm event for creating project

* CB-3100 fix: display projects in multiproject mode

---------

Co-authored-by: Wroud <wroud@yandex.ru>
Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-02-15 11:09:59 +03:00
662bad583e CB-2570 support passing args to auth (#1439)
* CB-2570 support passing args to auth

* CB-2570 add private param to auth provider

* CB-2606 hide private provider

* CB-2606 revert AuthenticationProvider code

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
Co-authored-by: Ainur <yagudin10@yandex.ru>
2023-02-15 11:08:11 +03:00
Serge Rider e2c6091627 dbeaver/pro#1387 Fix SQL completion tests (#1461) 2023-02-14 18:36:28 +03:00
Alexander SkoblikovandAleksey Potsetsuev 06e7a26a88 CB-2899 add redirect param to servlets (#1446)
* CB-2899 add redirect param to servlets

* CB-2899 fix redirect with enabled anonymous mode

* CB-2899 fix invalid parameter name

* CB-2899 fix: close login form on federate auth finish

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-02-14 16:47:24 +03:00
5df1fada92 CB-3087 hide private project for special roles (#1433)
* CB-3087 hide private project for special roles

* CB-3087 add new permission for private project access

* CB-2808 feat: add lm roles list

* CB-3070 feat: settings resolver API

* CB-3085 add plugins settings

* CB-3086 hide scripts for the viewer and editor

* CB-3085 hide tools panel

* CB-2808 resolve conflict

* CB-3085 fix splitter disabled mode

* CB-3085 add disabled state to the log viewer settings

* CB-3085 mark disabled as computed

* CB-2808 hide menu if all sub items are hidden

* CB-2808 hide connection's selector if connections are disabled

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
2023-02-13 14:07:38 +03:00
serge-rider 31865132c4 22.3.5 config 2023-02-11 10:21:57 +03:00
b58a7bb63b CB-3072-RM-metadata-for-removed-script-still-exists (#1430)
* CB-3072 RM: metadata for removed script still exists

Implements recursive resource properties removing

* CB-3072 RM: metadata for removed script still exists

Fixes code style issues

* CB-3072 RM: metadata for removed script still exists

Fixes code style issues

---------

Co-authored-by: Iaroslav Emelianov <iaroslav.emelianov@dbeaver.com>
Co-authored-by: MarinaVorobeva21 <98399603+MarinaVorobeva21@users.noreply.github.com>
2023-02-10 17:24:05 +03:00
Ainur 38b76b7d8a CB-3079 access to user rm projects for admin (#1450) 2023-02-10 14:16:12 +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