-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Cleanup all feature schemas #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
devcycle-mcp-server | f4df05d | Sep 16 2025, 07:51 PM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR consolidates schema definitions into a single source of truth by migrating from zodClientV2.ts to zodSchemas.ts. The primary purpose is to cleanup feature schema organization and eliminate duplicate definitions.
Key changes include:
- Rename
zodClientV2.tstozodSchemas.tsfor better organization - Update imports across the codebase to use the new schema file
- Remove duplicate
UpdateFeatureStatusDtodefinition fromschemas.ts - Add new feature status update endpoint to the API client
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/mcp/types.ts | Updates import path and adds minimum length validation for feature keys |
| src/mcp/tools/featureTools.ts | Removes commented out variation and targeting handler functions |
| src/commands/projects/get.ts | Updates import path from zodClient to zodClientAPI |
| src/commands/features/update.test.ts | Simplifies test expectations by removing extra properties from request bodies |
| src/api/zodSchemas.ts | New file containing consolidated schema definitions |
| src/api/zodClientAPI.ts | Updates imports and adds new feature status endpoint |
| src/api/schemas.ts | Removes duplicate UpdateFeatureStatusDto and updates imports |
| src/api/apiClient.ts | Updates import path to use zodClientAPI |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
a4a94fb to
b7b93c4
Compare
0299115 to
1ece414
Compare
- Add /v2/projects/:project/features/:feature/status PATCH endpoint to zodClient.ts - Export UpdateFeatureStatusDto schema from zodClientV2.ts - Remove duplicate UpdateFeatureStatusDto from schemas.ts and import from zodClientV2.ts - Maintain single source of truth for UpdateFeatureStatusDto schema
- Remove extra properties (headless, whichFields, listPromptOption) from HTTP mock expectations - These properties were filtered out by Zod validation in the actual command - All tests now pass with correct request body matching
1ece414 to
f4df05d
Compare
/v2/projects/:project/features/:feature/statusPATCH endpoint to zodClient.tsUpdateFeatureStatusDtoschemazodClientV2.ts->zodSchemas.ts, going to havezodClientAPI.tsfile for the API, andzodSchemas.tsfor the schema definitions.