-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
feat(api,cli,api-client,schema): Make get secret and get variable response to be consistent with their getAll #625
Conversation
Fix implementation for get all workpace invitation client. Fixes keyshade-xyz#553
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Build is failing as of now, so comment out this step
}) | ||
) | ||
}) | ||
|
||
export const CreateSecretRequestSchema = z.object({ | ||
projectSlug: z.string(), | ||
name: SecretSchema.shape.name, | ||
name: z.string(), |
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.
I'm dropping this comment for just Create Secret, but this wouldd be applicable to all the name
fields of create and update schemas of all the entities.
We would need to check for this:
- For secrets and variables, charset can only contain
A-Z,a-z.0-9,-,_
- For others, charset will ALSO contain a whtespace character
- The name must be atleast one character long
- The name must have atleast one character from
A-Z
ora-z
should I start working on the changes? @rajdip-b |
Hey, no you can drop this PR. I have merged the changes into develop in another branch. |
User description
Description
Created methods under common directory to parse the prisma response to required ones.
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement, Bug fix, Tests
Description
Refactored
Secret
andVariable
schemas to include nested structures for consistency.Updated API and CLI logic to align with new schema structure.
Enhanced test cases to validate updated schema and API responses.
Fixed workspace invitation client implementation and pagination issues.
Changes walkthrough 📝
9 files
Updated tests for Variable schema structure changes.
Updated tests for Secret schema structure changes.
Adjusted project controller tests for schema updates.
Updated Secret controller tests for schema changes.
Updated Variable controller tests for schema changes.
Updated Event controller tests for schema changes.
Updated API client Variable tests for schema changes.
Updated API client Secret tests for schema changes.
Updated API client Event tests for schema changes.
9 files
Refactored Secret schema to include nested structures.
Refactored Variable schema to include nested structures.
Refactored Variable service to use new schema structure.
Refactored Secret service to use new schema structure.
Added helper for Secret response transformation.
Added helper for Variable response transformation.
Updated CLI Secret creation to use new schema.
Updated CLI Variable creation to use new schema.
Updated Event schema to align with new Secret and Variable structures.
2 files
Fixed workspace invitation tests for pagination issues.
Fixed workspace invitation client pagination logic.
2 files