Skip to content

Conversation

@omkar273
Copy link
Contributor

@omkar273 omkar273 commented Jul 5, 2025

No description provided.

omkar273 and others added 16 commits June 17, 2025 12:41
- 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
@ellipsis-dev
Copy link

ellipsis-dev bot commented Jul 5, 2025

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at help@ellipsis.dev


Generated with ❤️ by ellipsis.dev

@omkar273 omkar273 requested a review from Copilot July 5, 2025 13:14
Copy link

Copilot AI left a 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 CartLineItems and wire it into existing Cart entity
  • Extend Swagger (YAML/JSON) with Category and Discount DTOs and paths
  • Update ellipsis.yaml to 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

@omkar273 omkar273 merged commit ee8e7a3 into main Jul 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant