Skip to content

Commit

Permalink
Merge branch 'devel' into CB-5559-root-uri-oidc-single-sign-on
Browse files Browse the repository at this point in the history
  • Loading branch information
dariamarutkina authored Oct 1, 2024
2 parents 1d2cd95 + bb9a62d commit fb3b051
Show file tree
Hide file tree
Showing 78 changed files with 738 additions and 873 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions config/sample-databases/README.md

This file was deleted.

This file was deleted.

This file was deleted.

99 changes: 0 additions & 99 deletions config/sample-databases/SQLiteConfiguration/cloudbeaver.conf

This file was deleted.

Binary file removed config/sample-databases/db/Chinook.sqlitedb
Binary file not shown.
6 changes: 0 additions & 6 deletions config/sample-databases/db/README

This file was deleted.

20 changes: 1 addition & 19 deletions deploy/build-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
set -Eeo pipefail
set +u

# #command line arguments
# CONFIGURATION_PATH=${1-"../config/sample-databases/DefaultConfiguration"}
# SAMPLE_DATABASE_PATH=${2-""}

# echo $CONFIGURATION_PATH
# echo $SAMPLE_DATABASE_PATH
echo "Clone and build Cloudbeaver"

rm -rf ./drivers
Expand Down Expand Up @@ -43,20 +37,8 @@ cp -rp ../server/product/web-server/target/products/io.cloudbeaver.product/all/a
cp -p ./scripts/* ./cloudbeaver
mkdir cloudbeaver/samples

if [[ -z $SAMPLE_DATABASE_PATH ]]; then
SAMPLE_DATABASE_PATH=""
else
mkdir cloudbeaver/samples/db
cp -rp "${SAMPLE_DATABASE_PATH}" cloudbeaver/samples/
fi

if [[ -z "$CONFIGURATION_PATH" ]]; then
CONFIGURATION_PATH="../config/sample-databases/DefaultConfiguration"
fi

cp -rp ../config/core/* cloudbeaver/conf
cp -rp "${CONFIGURATION_PATH}"/GlobalConfiguration/.dbeaver/data-sources.json cloudbeaver/conf/initial-data-sources.conf
cp -p "${CONFIGURATION_PATH}"/*.conf cloudbeaver/conf/
cp -rp ../config/GlobalConfiguration/.dbeaver/data-sources.json cloudbeaver/conf/initial-data-sources.conf
mv drivers cloudbeaver

echo "End of backend build"
1 change: 0 additions & 1 deletion deploy/build-sqlite.bat

This file was deleted.

9 changes: 0 additions & 9 deletions deploy/build-sqlite.sh

This file was deleted.

13 changes: 2 additions & 11 deletions deploy/build.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
@echo off

rem command line arguments
SET CONFIGURATION_PATH=%1
SET SAMPLE_DATABASE_PATH=%2

IF "%CONFIGURATION_PATH%"=="" SET CONFIGURATION_PATH="..\config\sample-databases\DefaultConfiguration"
echo "Configuration path=%CONFIGURATION_PATH%"

echo Clone and build Cloudbeaver

Expand Down Expand Up @@ -40,13 +35,9 @@ xcopy /E /Q ..\server\product\web-server\target\products\io.cloudbeaver.product\
copy scripts\* cloudbeaver >NUL
mkdir cloudbeaver\samples

IF NOT "%SAMPLE_DATABASE_PATH%"=="" (
mkdir cloudbeaver\samples\db
xcopy /E /Q %SAMPLE_DATABASE_PATH% cloudbeaver\samples\db >NUL
)

copy ..\config\core\* cloudbeaver\conf >NUL
copy %CONFIGURATION_PATH%\GlobalConfiguration\.dbeaver\data-sources.json cloudbeaver\conf\initial-data-sources.conf >NUL
copy %CONFIGURATION_PATH%\*.conf cloudbeaver\conf >NUL
copy ..\config\DefaultConfiguration\GlobalConfiguration\.dbeaver\data-sources.json cloudbeaver\conf\initial-data-sources.conf >NUL

move drivers cloudbeaver >NUL

Expand Down
4 changes: 0 additions & 4 deletions deploy/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash
set -Eeuo pipefail

#command line arguments
CONFIGURATION_PATH="../config/sample-databases/DefaultConfiguration"
SAMPLE_DATABASE_PATH=""

source build-backend.sh
source build-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,18 @@ public abstract class BaseWebProjectImpl extends BaseProjectImpl implements RMCo
@NotNull
private final Path path;
@NotNull
protected final DataSourceFilter dataSourceFilter;
private final RMController resourceController;

public BaseWebProjectImpl(
@NotNull DBPWorkspace workspace,
@NotNull RMController resourceController,
@NotNull SMSessionContext sessionContext,
@NotNull RMProject project,
@NotNull DataSourceFilter dataSourceFilter
@NotNull RMProject project
) {
super(workspace, sessionContext);
this.resourceController = resourceController;
this.path = RMUtils.getProjectPath(project);
this.project = project;
this.dataSourceFilter = dataSourceFilter;
}

@NotNull
Expand Down Expand Up @@ -104,11 +101,6 @@ public boolean isUseSecretStorage() {
return false;
}

@NotNull
public RMProject getRmProject() {
return this.project;
}

/**
* Method for Bulk Update of resources properties paths
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@
public abstract class WebProjectImpl extends BaseWebProjectImpl {
private static final Log log = Log.getLog(WebProjectImpl.class);
@NotNull
private final DBPPreferenceStore preferenceStore;
protected final DBPPreferenceStore preferenceStore;
public WebProjectImpl(
@NotNull DBPWorkspace workspace,
@NotNull RMController resourceController,
@NotNull SMSessionContext sessionContext,
@NotNull RMProject project,
@NotNull DataSourceFilter dataSourceFilter,
@NotNull DBPPreferenceStore preferenceStore
) {
super(workspace, resourceController, sessionContext, project, dataSourceFilter);
super(workspace, resourceController, sessionContext, project);
this.preferenceStore = preferenceStore;
}

Expand Down Expand Up @@ -82,8 +81,13 @@ public DBTTaskManager getTaskManager() {
protected DBPDataSourceRegistry createDataSourceRegistry() {
return new WebDataSourceRegistryProxy(
new DataSourceRegistryRM(this, getResourceController(), preferenceStore),
dataSourceFilter
getDataSourceFilter()
);
}

@NotNull
public DataSourceFilter getDataSourceFilter() {
return (ds) -> true;
}

}
Loading

0 comments on commit fb3b051

Please sign in to comment.