Skip to content

Conversation

@upayanmazumder
Copy link
Member

This pull request removes all Razorpay payment integration from the codebase, including related dependencies, environment variables, API endpoints, and data model fields. It also updates the Kubernetes resource helper to clarify and simplify how CPU and memory values are handled.

Removal of Razorpay payment integration:

  • Removed the razorpay dependency from both api/package.json and the root package.json. [1] [2]
  • Deleted all Razorpay-related environment variables from api/src/config/env.ts and example.env. [1] [2] [3]
  • Removed the Razorpay controller (api/src/controllers/plans/razorpay.controller.ts) and all associated payment endpoints from the plan routes (api/src/routes/plan.routes.ts). [1] [2] [3]
  • Eliminated the price field from the plan model (api/src/models/plan.model.ts) and its type definition (api/src/types/plan.types.ts). [1] [2]

Kubernetes resource helper update:

  • Updated toK8sResource in api/src/utils/k8s/helpers/toK8sResource.ts to clarify that CPU and memory values are now expected in millicores and megabytes, respectively, and simplified their conversion logic.

@upayanmazumder upayanmazumder self-assigned this Oct 20, 2025
Copy link
Contributor

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 removes the Razorpay payment integration from the codebase and refines the Kubernetes resource helper to clarify CPU and memory unit handling.

  • Eliminated all Razorpay dependencies, environment variables, API endpoints, and payment-related data model fields
  • Updated toK8sResource to document and simplify handling of CPU (millicores) and memory (megabytes) values
  • Removed the price field from the plan model and type definitions

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Replaced Razorpay dependency with development tools (nodemon, ts-node)
api/package.json Removed Razorpay dependency from API dependencies
example.env Removed Razorpay environment variable placeholders
api/src/config/env.ts Removed Razorpay configuration variables from required and exported env vars
api/src/routes/plan.routes.ts Removed Razorpay payment endpoint routes and updated comment
api/src/controllers/plans/razorpay.controller.ts Deleted entire Razorpay payment controller
api/src/models/plan.model.ts Removed price field from plan schema
api/src/types/plan.types.ts Removed price field from plan type interface
api/src/utils/k8s/helpers/toK8sResource.ts Clarified unit expectations and simplified conversion logic for CPU/memory resources

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@upayanmazumder upayanmazumder merged commit 62db922 into GDGVIT:dev Oct 20, 2025
1 of 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