Skip to content

Plan-v5 #90

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

Merged
merged 3 commits into from
May 14, 2025
Merged

Plan-v5 #90

merged 3 commits into from
May 14, 2025

Conversation

jigar-f
Copy link
Contributor

@jigar-f jigar-f commented May 8, 2025

This pull request includes several updates to the protobuf files, API endpoints, and related code to align with a new structure and naming conventions. The changes involve renaming and restructuring protobuf files, updating API routes, and modifying test cases and data models to reflect the new structure.

Protobuf and API Updates:

  • Updated protobuf file paths from user/protos to api/protos in the Makefile and generated Go files. This includes changes to auth.proto and vpn.proto to reflect the new directory structure. [1] [2]
  • Renamed fields in protobuf models for clarity, such as replacing LogoUrls with Icons in PaymentProviders and changing Providers to Provider in PaymentMethod. [1] [2]

API Endpoint Changes:

  • Updated the API route for fetching plans from /plans-v4 to /plans-v5 in the Plans method of pro_api.go.

Data Model and Test Updates:

  • Removed the Logo field from the PlansResponse struct in response.go and ensured the Plans field is not nil in the TestPlans test case. [1] [2]

These changes collectively improve the organization of the codebase and align it with the updated API and protobuf structure.

@jigar-f jigar-f self-assigned this May 8, 2025
Copy link
Contributor

@Copilot 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 restructures protobuf definitions, API endpoints, and corresponding test cases to align with a new naming and directory structure.

  • Updated protobuf file paths and renamed fields in PaymentProviders and PaymentMethod.
  • Updated API endpoint from "/plans-v4" to "/plans-v5".
  • Adjusted tests and Makefile to reflect the new structure.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
api/protos/vpn.proto Renamed field logoUrls to icons and changed PaymentMethod.providers to a singular provider.
api/protos/vpn.pb.go Updated generated code to reflect new proto paths and field changes.
api/protos/response.go Removed the obsolete Logo field from the PlansResponse structure.
api/pro_test.go Added a test assertion to verify that the Plans field is not nil.
api/pro_api.go Updated API endpoint from "/plans-v4" to "/plans-v5".
Makefile Modified protobuf generation commands to use the new proto file paths.

Copy link
Collaborator

@garmr-ulfr garmr-ulfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jigar-f jigar-f merged commit 924172e into main May 14, 2025
2 checks passed
@jigar-f jigar-f deleted the jigar/plans-v5 branch May 14, 2025 05:50
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.

2 participants