Skip to content

[comp] Production Deploy#2374

Merged
Marfuen merged 5 commits intoreleasefrom
main
Mar 25, 2026
Merged

[comp] Production Deploy#2374
Marfuen merged 5 commits intoreleasefrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.

github-actions bot and others added 5 commits March 25, 2026 18:57
PartialType(CreateVendorDto) preserves @isnotempty() from the create
DTO. Combined with @IsOptional() added by PartialType, this means:
- null/undefined → @IsOptional() skips validators → OK
- "" (empty string) → @IsOptional() does NOT skip → @isnotempty() fails → 400

Vendors created during onboarding can have empty descriptions, causing
all subsequent PATCH updates to fail with 400 Bad Request.

Replace PartialType with an explicit DTO that drops @isnotempty() on
description (empty strings are valid for updates) while keeping it on
name (a vendor must always have a non-empty name).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tests cover the PATCH validation fix:
- Empty description accepted (the bug: onboarding vendors have "")
- Empty name still rejected
- assigneeId: null accepted (unassigned vendors)
- Empty website transformed to undefined
- Invalid URLs, enums, and unknown properties rejected

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
[dev] [Marfuen] mariano/fix-vendor-patch-400
@cursor
Copy link
Copy Markdown

cursor bot commented Mar 25, 2026

PR Summary

Medium Risk
Changes request validation for PATCH /vendors/:id by replacing PartialType(CreateVendorDto) with a hand-rolled DTO, which could subtly change what update payloads are accepted/rejected in production.

Overview
Fixes vendor update validation by replacing UpdateVendorDto’s PartialType(CreateVendorDto) with an explicit DTO so PATCH requests can include description: "" without being rejected while still enforcing name is non-empty.

Adds unit tests covering valid/minimal/empty updates, empty description, assigneeId: null, URL validation/empty-website transform behavior, enum validation, and rejection of unknown properties.

Written by Cursor Bugbot for commit 8324c51. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Mar 25, 2026 8:35pm
comp-framework-editor Ready Ready Preview, Comment Mar 25, 2026 8:35pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal (staging) Skipped Skipped Mar 25, 2026 8:35pm

Request Review

@Marfuen Marfuen merged commit 736bfcf into release Mar 25, 2026
13 checks passed
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.11.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants