diff --git a/apiserver/plane/settings/common.py b/apiserver/plane/settings/common.py index 853478c75..40128f9ad 100644 --- a/apiserver/plane/settings/common.py +++ b/apiserver/plane/settings/common.py @@ -225,6 +225,9 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" # Storage Settings +# Use Minio settings +USE_MINIO = int(os.environ.get("USE_MINIO", 0)) == 1 + STORAGES = { "staticfiles": { "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", @@ -243,7 +246,7 @@ AWS_S3_FILE_OVERWRITE = False AWS_S3_ENDPOINT_URL = os.environ.get( "AWS_S3_ENDPOINT_URL", None ) or os.environ.get("MINIO_ENDPOINT_URL", None) -if AWS_S3_ENDPOINT_URL: +if AWS_S3_ENDPOINT_URL and USE_MINIO: parsed_url = urlparse(os.environ.get("WEB_URL", "http://localhost")) AWS_S3_CUSTOM_DOMAIN = f"{parsed_url.netloc}/{AWS_STORAGE_BUCKET_NAME}" AWS_S3_URL_PROTOCOL = f"{parsed_url.scheme}:" @@ -307,8 +310,6 @@ GITHUB_ACCESS_TOKEN = os.environ.get("GITHUB_ACCESS_TOKEN", False) ANALYTICS_SECRET_KEY = os.environ.get("ANALYTICS_SECRET_KEY", False) ANALYTICS_BASE_API = os.environ.get("ANALYTICS_BASE_API", False) -# Use Minio settings -USE_MINIO = int(os.environ.get("USE_MINIO", 0)) == 1 # Posthog settings POSTHOG_API_KEY = os.environ.get("POSTHOG_API_KEY", False) @@ -350,4 +351,4 @@ CSRF_FAILURE_VIEW = "plane.authentication.views.common.csrf_failure" # Base URLs ADMIN_BASE_URL = os.environ.get("ADMIN_BASE_URL", None) SPACE_BASE_URL = os.environ.get("SPACE_BASE_URL", None) -APP_BASE_URL = os.environ.get("APP_BASE_URL") or os.environ.get("WEB_URL") +APP_BASE_URL = os.environ.get("APP_BASE_URL") diff --git a/packages/editor/rich-text-editor/src/ui/extensions/index.tsx b/packages/editor/rich-text-editor/src/ui/extensions/index.tsx index b52361f6e..4face2cb7 100644 --- a/packages/editor/rich-text-editor/src/ui/extensions/index.tsx +++ b/packages/editor/rich-text-editor/src/ui/extensions/index.tsx @@ -17,5 +17,6 @@ export const RichTextEditorExtensions = ({ }: TArguments) => [ SlashCommand(uploadFile), dragDropEnabled === true && DragAndDrop(setHideDragHandle), - EnterKeyExtension(onEnterKeyPress), + // TODO; add the extension conditionally for forms that don't require it + // EnterKeyExtension(onEnterKeyPress), ]; diff --git a/web/store/user/index.ts b/web/store/user/index.ts index f22507a12..82839805e 100644 --- a/web/store/user/index.ts +++ b/web/store/user/index.ts @@ -97,9 +97,11 @@ export class UserStore implements IUserStore { }); const user = await this.userService.currentUser(); if (user && user?.id) { - await this.userProfile.fetchUserProfile(); - await this.userSettings.fetchCurrentUserSettings(); - await this.store.workspaceRoot.fetchWorkspaces(); + await Promise.all([ + this.userProfile.fetchUserProfile(), + this.userSettings.fetchCurrentUserSettings(), + this.store.workspaceRoot.fetchWorkspaces(), + ]); runInAction(() => { this.data = user; this.isLoading = false; diff --git a/web/store/user/profile.store.ts b/web/store/user/profile.store.ts index 606cbe6bf..b5bdb8912 100644 --- a/web/store/user/profile.store.ts +++ b/web/store/user/profile.store.ts @@ -104,6 +104,7 @@ export class ProfileStore implements IUserProfileStore { message: "Failed to fetch user profile", }; }); + throw error; } }; diff --git a/web/store/user/settings.store.ts b/web/store/user/settings.store.ts index 2a2675c9f..970c2faf8 100644 --- a/web/store/user/settings.store.ts +++ b/web/store/user/settings.store.ts @@ -73,6 +73,7 @@ export class UserSettingsStore implements IUserSettingsStore { message: "Failed to fetch user settings", }; }); + throw error; } }; }