-
Notifications
You must be signed in to change notification settings - Fork 0
grpc #2
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
Open
OmmrGAZAR315
wants to merge
30
commits into
main
Choose a base branch
from
grpc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
grpc #2
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
dbdf2c6
Migrate User API to gRPC architecture
OmmrGAZAR315 93942a6
Add GrpcServiceProvider for gRPC service registration
OmmrGAZAR315 04590ca
Remove gRPC support and simplify Docker setup
OmmrGAZAR315 d77ebf6
Add gRPC and protobuf support in Docker setup
OmmrGAZAR315 b33ae9d
Introduce GrpcTransformer for gRPC DTO handling and enhance UserGrpcS…
OmmrGAZAR315 b62dacd
Refactor system to remove Redis dependencies and migrate User API to …
OmmrGAZAR315 d165cc3
Migrate User API to gRPC and remove Redis dependencies
OmmrGAZAR315 1878e76
Refactor `UserGrpcService` to leverage `UserResource` for consistent …
OmmrGAZAR315 f0e3cf4
Refactor gRPC service methods and controllers for consistent request,…
OmmrGAZAR315 f865fab
Refactor `UserGrpcService` to enhance metadata handling, improve erro…
OmmrGAZAR315 e6afbcc
Update `UserProfileResponse` to rename `photo_url` to `photo_path` fo…
OmmrGAZAR315 233838d
Update `UserProfileResponse` to rename `photo_url` to `photo_path` an…
OmmrGAZAR315 f164cb4
Refactor `UserGrpcService` to improve error handling, enhance `GetUse…
OmmrGAZAR315 e329a0e
Introduce `GatewayService` with protobuf definitions and generated PH…
OmmrGAZAR315 51960b8
Refactor gRPC integration to replace HTTP-based logic with `GrpcServi…
OmmrGAZAR315 1bc03fb
Refactor `AuthController` to utilize `GrpcService` for login and sign…
OmmrGAZAR315 19f0190
Refactor `AuthController` to remove unused `UserService` dependency, …
OmmrGAZAR315 e3aa9b5
Refactor `GrpcService` response formatting for JSON consistency and s…
OmmrGAZAR315 901d6cd
Refactor `GrpcService` and `GatewayService` for improved metadata han…
OmmrGAZAR315 8f2d5ed
Refactor `ShoppingCartController` to use `GrpcService` for `addToCart…
OmmrGAZAR315 84d1b9b
Refactor `ShoppingCartController` to replace HTTP-based logic with `G…
OmmrGAZAR315 ea66519
Refactor `AuthController` to proxy `logout` operation through `GrpcSe…
OmmrGAZAR315 988725a
Refactor `OfferController` and `ProductController` to utilize `GrpcSe…
OmmrGAZAR315 0e861a1
Refactor `InjectUser` trait to return `user_id` instead of modifying …
OmmrGAZAR315 0af389e
Refactor `InjectUser` trait to make `injectUserId` method public and …
OmmrGAZAR315 60ae5f8
Add `clear` method to `WishListController` and corresponding route fo…
OmmrGAZAR315 adb28fc
Refactor `GrpcService` and `GatewayService` to improve response handl…
OmmrGAZAR315 8793167
Rename controllers and routes to align with `*ApiController` naming c…
OmmrGAZAR315 1c00257
Remove Laravel Octane and related configurations, update `composer.js…
OmmrGAZAR315 71bfae0
Add `AIApi` for AI recommendations service, implement `ApiGatewayCont…
OmmrGAZAR315 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?php | ||
|
|
||
| namespace App\External_Apis\Apis; | ||
|
|
||
| class AIApi extends BasicApi | ||
| { | ||
|
|
||
| private const string CONFIG_KEY = 'ai_url'; | ||
|
|
||
| public static function getAIApi(): string | ||
| { | ||
| return self::getBaseUrl() . 'api/recommendations'; | ||
| } | ||
|
|
||
| protected static function getConfigKey(): string | ||
| { | ||
| return self::CONFIG_KEY; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <?php | ||
|
|
||
| namespace App\Grpc; | ||
|
|
||
| use App\Grpc\User\UserResponse; | ||
|
|
||
| class BaseResponse | ||
| { | ||
| public int $code; | ||
| public string $message; | ||
| public ?array $data; | ||
|
|
||
|
|
||
| public function toArray(): array | ||
| { | ||
| return [ | ||
| 'code' => $this->code, | ||
| 'message' => $this->message, | ||
| 'data' => $this->data, | ||
| ]; | ||
| } | ||
|
|
||
| protected function buildUserResponse($response, bool $success = true, string $message = '') | ||
| { | ||
| $response->setSuccess($success); | ||
| $response->setMessage($message); | ||
| return $response; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.