build cont ....

This commit is contained in:
artrejo 2022-01-20 18:07:42 -08:00
parent 0ffebc14ca
commit 0fc5f070cc
3 changed files with 7401 additions and 7887 deletions

15251
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -339,7 +339,10 @@ export function createMongoCollectionWithProxy(
export function getFeatureEndpointOrDefault(feature: string): string {
const endpoint =
hasFlag(userContext.features.mongoProxyAPIs, feature) &&
validateEndpoint(userContext.features.mongoProxyEndpoint, allowedMongoProxyEndpoints)
validateEndpoint(
userContext.features.mongoProxyEndpoint,
allowedMongoProxyEndpoints.map((endpoint) => endpoint)
)
? userContext.features.mongoProxyEndpoint
: configContext.MONGO_BACKEND_ENDPOINT || configContext.BACKEND_ENDPOINT;

View File

@ -181,7 +181,10 @@ export default class Explorer {
// Override notebook server parameters from URL parameters
if (
userContext.features.notebookServerUrl &&
validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) &&
validateEndpoint(
userContext.features.notebookServerUrl,
allowedNotebookServerUrls.map((endpoint) => endpoint)
) &&
userContext.features.notebookServerToken
) {
useNotebook.getState().setNotebookServerInfo({
@ -415,7 +418,10 @@ export default class Explorer {
useNotebook.getState().setConnectionInfo(connectionStatus);
useNotebook.getState().setNotebookServerInfo({
notebookServerEndpoint:
(validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) &&
(validateEndpoint(
userContext.features.notebookServerUrl,
allowedNotebookServerUrls.map((endpoint) => endpoint)
) &&
userContext.features.notebookServerUrl) ||
connectionInfo.data.notebookServerUrl,
authToken: userContext.features.notebookServerToken || connectionInfo.data.notebookAuthToken,