From 4019473d73bc39f6e680bc0cf057e05c1e37d98f Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 19:44:32 +0200 Subject: [PATCH] [Claude PR] Add skip_email option to user creation endpoint (#5824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add skip_email option to user creation endpoint - Added optional skip_email field to NewUser struct in users.rs - Added send_email_if_possible_with_skip function in users_ee.rs - Updated user creation flow to support conditionally skipping email notifications - Addresses issue #5823 requested by @alpetric 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: rubenfiszel * feat: add skip_email parameter to user creation endpoint OpenAPI spec Add optional skip_email boolean parameter to the /users/create endpoint schema to match the backend implementation that was added for skipping email notifications during user creation. Co-authored-by: alpetric * revert users_ee * ee repo ref --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: rubenfiszel Co-authored-by: alpetric Co-authored-by: Alex Petric --- backend/ee-repo-ref.txt | 2 +- backend/windmill-api/openapi.yaml | 3 +++ backend/windmill-api/src/users.rs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index be1e897bcd..573a5f20a9 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -32039f675060b5996951708368bdefe14278d5cd \ No newline at end of file +4e43a2569abd9b80c8fdf98b75aeca7ba52d2caa diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index d1b0a39de5..8055b2654b 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -377,6 +377,9 @@ paths: type: string company: type: string + skip_email: + type: boolean + description: Skip sending email notifications to the user required: - email - password diff --git a/backend/windmill-api/src/users.rs b/backend/windmill-api/src/users.rs index 1f8529fe6a..5bc7ce9c4d 100644 --- a/backend/windmill-api/src/users.rs +++ b/backend/windmill-api/src/users.rs @@ -334,6 +334,7 @@ pub struct NewUser { pub super_admin: bool, pub name: Option, pub company: Option, + pub skip_email: Option, } #[derive(Deserialize)]