-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #4
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
- Introduced new endpoints for managing categories and discounts in the API. - Added GET, POST, PUT, and DELETE methods for categories, allowing for listing, creating, updating, and deleting categories. - Implemented similar functionality for discounts, including listing and managing discount details. - Updated Swagger documentation to reflect these changes, ensuring accurate API specifications and response schemas.
- Introduced payment status field in the Enrollment entity to track payment states. - Implemented methods for setting and validating payment status in the EnrollmentCreate and EnrollmentUpdate builders. - Added a new Payment repository for managing payment-related data. - Enhanced the Payment service to handle payment attempts and status updates. - Updated the payment gateway integration to support creating payment orders and processing webhooks. - Documented the payment system implementation in the relevant guides.
…tion casing - Changed the base path from `/api/v1` to `/v1` in multiple documentation files. - Updated the description casing for the `internships` field in the Swagger documentation to maintain consistency. - Ensured that all relevant files, including JSON, YAML, and Go files, are synchronized with the new API structure.
…port - Introduced a comprehensive enrollment system with support for initializing, finalizing, and canceling enrollments. - Implemented idempotency key handling to prevent duplicate enrollment requests. - Added detailed API documentation for enrollment processes, including pricing calculations and discount validations. - Enhanced the service layer to manage enrollment status and payment interactions effectively. - Updated the database schema to include the idempotency key in the enrollment entity. - Created new DTOs for enrollment requests and responses, ensuring proper validation and error handling.
- Introduced InternshipBatch and InternshipEnrollment entities to manage internship batches and their enrollments. - Implemented CRUD operations for both entities, including creation, retrieval, updating, and deletion. - Updated the database schema to include new tables for internship batches and enrollments. - Enhanced the service layer to handle business logic related to internship batches and enrollments. - Created necessary DTOs and validation mechanisms for handling requests and responses. - Updated relevant documentation to reflect the new entities and their functionalities.
- Introduced Cart and CartLineItems entities to manage shopping cart operations. - Implemented CRUD operations for Cart and CartLineItems, including creation, retrieval, updating, and deletion. - Enhanced the database schema to include new tables for carts and line items. - Updated the service layer to handle business logic related to cart management. - Created necessary DTOs and validation mechanisms for handling requests and responses. - Added integration with the existing user and discount systems to enhance cart functionality. - Updated relevant documentation to reflect the new entities and their functionalities.
Add cart and order management functionality
- Introduced new Makefile targets: `test`, `test-verbose`, and `test-coverage`. - The `test` target runs all tests with verbose output and race detection. - The `test-verbose` target runs tests with detailed output. - The `test-coverage` target generates a coverage report and an HTML view of the coverage results.
Add test targets to Makefile for improved testing workflow
|
Generated with ❤️ by ellipsis.dev |
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 introduces the cart_line_items entity into the ORM and extends the API spec with Category and Discount endpoints, along with updating the project ignore rules.
- Generate Ent schema and Go code for
CartLineItemsand wire it into existing Cart entity - Extend Swagger (YAML/JSON) with Category and Discount DTOs and paths
- Update
ellipsis.yamlto ignore generated Ent code
Reviewed Changes
Copilot reviewed 37 out of 168 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| ent/cartlineitems/cartlineitems.go | New generated code for the CartLineItems schema |
| ent/… (multiple files) | Updated/generate ORM code integrating CartLineItems |
| docs/swagger/swagger.yaml | Added Category & Discount definitions and paths |
| docs/swagger/swagger.json | Mirror of YAML changes in JSON form |
| ellipsis.yaml | Updated ignore patterns to skip generated code |
Comments suppressed due to low confidence (3)
docs/swagger/swagger.yaml:420
- [nitpick] Capitalize the first letter of the 'internships' description to maintain consistency with other property descriptions.
description: internships holds the value of the internships edge.
docs/swagger/swagger.json:1805
- [nitpick] Capitalize 'internships' in the description to maintain consistency across definitions.
"description": "internships holds the value of the internships edge.",
ellipsis.yaml:74
- [nitpick] Use a glob pattern like "ent/**" to ensure all files under the ent directory are ignored consistently.
- "ent/" # ignore everything in the `ent/` directory as most code is auto generated
No description provided.