Commit Graph
1660 Commits
Author SHA1 Message Date
Ainur 13286c3cb1 CB-3040 filter nodes with duplicate ids (#1685) 2023-05-29 15:46:58 +02:00
Ainur 27f929ae56 CB-3200 create special folders in a project by default (#1693)
* CB-3200 create special folders in a project by default

* CB-3200 create folders in the new project fix
2023-05-29 15:26:25 +02:00
Ainur 520a0e2778 CB-2977 manual connection show all auth properties (#1702) 2023-05-29 15:09:37 +02:00
AinurandAleksey Potsetsuev 1985df12e2 Fix/cb 3507/check use (#1692)
* CB-3507 fix: check use id in useResource for re-subscribe

* CB-3507 use thread safe utc datetime in graphql dates

* CB-3507 use thread safe utc datetime in graphql dates

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-05-27 17:51:56 +03:00
Serge Rider 7f81977e5e 23.1.0 config 2023-05-26 10:23:45 +02:00
Alexander SkoblikovandAleksey Potsetsuev 0fb82dc6e1 CB-3511 display correct user's origin info (#1691)
* CB-3511 display correct user's origin info

* CB-3511 fix: remove origin auth request for users form

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
2023-05-24 23:34:30 +03:00
Alexander Skoblikov a2c18f78a7 CB-2973 reset all password properties on save (#1681)
* CB-2973 reset all password properties on save

* CB-2973 copy auth props in test connection
2023-05-24 23:34:05 +03:00
Alexander Skoblikov 6227e00467 CB-3418 fix incorrect session lifetime on easy config (#1686) 2023-05-24 14:03:10 +03:00
Ainur d888549bec CB-3071 easy config send event fix (#1683) 2023-05-23 14:10:04 +03:00
Alexander Skoblikov 86302cfdde CB-3483 return original error text if authentication failed (#1688) 2023-05-23 14:09:07 +03:00
Alexander Skoblikov 8940f07e4e CB-3501 do not store database settings in distributed mode (#1676) 2023-05-18 20:58:44 +03:00
Alexander Skoblikov 8f363f0cbe update logs pattern (#1674) 2023-05-18 16:23:57 +03:00
Ainur b1fa2c7a40 CB-3493 hostname api fix (#1672) 2023-05-18 14:51:04 +03:00
AlexeyandAleksandr Skoblikov b90f7f7e65 CB-3491 fix: restrict projects list loading (#1667)
* CB-3491 fix: restrict projects list loading

* CB-3491 allow listUserProfileProperties without license

---------

Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>
2023-05-18 14:33:23 +03:00
33e132172d CB-3258 try to get container id for aws product (#1655)
* CB-3258 try to get container id for aws product

* CB-3258 rename hostName -> containerId

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-05-17 20:20:27 +03:00
Alexander Skoblikov 268fc0deef CB-3419 te use new database deployment model (#1658)
* CB-3419 create internal db schema on start
2023-05-17 18:37:09 +03:00
a219593e1d CB-3303-edit-driver-settings (#1607)
* CB-3305 api for driver editing

* CB-3305 gql api for driver provider list

* CB-3303 feat: file uploading API

* CB-3303 feat: support gql request in file upload API

* CB-3303 code style fix

* CB-3376 file uploading mechanism

* CB-3303 feat: gql sdk extension API

* CB-3303 feat: gql sdk extensions API rename

* CB-3303 add driver mutations, update drivers resource

* CB-3303 move driver gql functions to another service

* CB-3305 web driver config fix

* CB-3305 driver config use same fields as in driver info

* CB-3437 add driver service to the codegen.yml

* CB-3437 add driver providers

* CB-3376 delete used driver library after restart server

* CB-3376 driver library add fix

* CB-3306 include driver libraries

* CB-3303 return empty driver properties array if there is the error

* CB-3303 fix conflicts

* CB-3437 reuse defaults

* CB-3303 feat: add sub-secondary color

* CB-3303 fix: use sub-secondary color in tables

* CB-3305 delete driver libraries fix

* CB-3376 driver libraries save delete fix

* CB-3437 naming

* CB-3376 do not delete jar library file from the server

* CB-3376 create file controller fix

* CB-3305 move drivers api to ee

* CB-3305 move drivers api to ee

* CB-3376 file controller use same path

* CB-3305 move driver provider list to ee

* CB-3303 move mutations to the EE

---------

Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com>
Co-authored-by: Tatiana Fokina <tatiana.fokina@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-05-17 13:42:55 +03:00
Alexander Skoblikov 9d83c67ae8 CB-3472 enable RMLockTest (#1663)
* CB-3472 enable RMLockTest
2023-05-16 18:27:10 +03:00
Ainur 37c9ab5edb CB-3341 qmdb migrate embedded h2 db to version 2 (#1635)
* CB-3341 qmdb migrate embedded h2 db to version 2

* CB-3341 move h2 migration files to the storage package

* CB-3341 h2 migrator changes

* CB-3341 check db for creating h2 migrator
2023-05-15 18:53:12 +03:00
Alexander Skoblikov cf63163150 disable test (#1656) 2023-05-12 19:28:21 +03:00
Alexander Skoblikov d2f62d7027 CB-3458 update sqlite driver to 3.41.2.0 (#1653) 2023-05-12 13:27:03 +03:00
Alexander Skoblikov 727e5bb2ca improve rm test timeouts (#1654) 2023-05-11 17:46:17 +03:00
Serge Rider fab5a33ff7 23.0.5 config 2023-05-11 10:57:50 +02:00
Ainurandnaumov 64a2251f8a CB-3313 add supported configuration types for dynamic driver properties (#1637)
* CB-3313 add supported configuration types for dynamic driver properties

* CB-3312 support supported configuration types

* CB-3260 naming

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
2023-05-10 18:56:27 +03:00
Ainur 6c8208028f CB-3198 auth roles sort fix (#1644)
* CB-3198 auth roles sort fix

* CB-3198 remove default auth role from sm config
2023-05-10 16:38:53 +03:00
Alexander Skoblikov 70b6d96c70 CB-3290 fix product name (#1647) 2023-05-10 13:39:18 +03:00
Alexander Skoblikov 5f0ec138d3 update test (#1648) 2023-05-09 19:11:45 +03:00
Ainur 67b9c327fb CB-3262 try to find custom config folder when starting the server (#1632)
* CB-3262 try to find custom config folder when starting the server

* CB-3262 load configuration from file path
2023-04-29 01:54:04 +03:00
Ainur fc48f2071d CB-2176 clear auth attempt info from sm factory (#1603)
* CB-2176 clear auth attempt info from sm factory

* CB-2176 remove auth info when token is expired

* CB-2176 remove auth info when refresh token is expired
2023-04-28 16:49:02 +03:00
Ainur 5c2a3a77ed CB-3400 mysql script with semicolon execution fix (#1624) 2023-04-28 16:38:01 +03:00
Ainur 947e70c2fe CB-3316 sqlTextPreviewMaxLength limit for string values fix (#1631) 2023-04-28 16:37:33 +03:00
Alexander Skoblikov 6d7b5e4e4b CB-3378 tm run task api (#1623)
* CB-3378 tm run task api

* CB-3379 TM: schedule task api
2023-04-25 20:43:50 +03:00
serge-rider 778a1ae08a 23.0.4 config 2023-04-25 17:55:06 +02:00
Serge Rider 3bf522706e dbeaver/pro#1490 Application interface refactoring (#1584) 2023-04-19 21:43:56 +03:00
Ainuranddariamarutkina 0f422f8156 CB-3188 reload server configuration fix (#1601)
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-04-19 19:49:04 +03: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
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