Skip to content

30 create stats data endoint - #31

Open
gracieuxsikuly wants to merge 10 commits into
devfrom
30-create-stats-data-endoint
Open

gracieuxsikuly wants to merge 10 commits into
devfrom
30-create-stats-data-endoint

Conversation

@gracieuxsikuly

Copy link
Copy Markdown
Contributor

30

@gracieuxsikuly
gracieuxsikuly requested a review from berna39 October 4, 2026 13:22
@gracieuxsikuly

Copy link
Copy Markdown
Contributor Author

@berna39

)]
public function search(SearchProfilesRequest $request): JsonResponse
public function stats(Request $request): JsonResponse
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems okay for me but could you please do this in the Profile service class to respect the project pattern please?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And please rebase on dev to keep ypu branch up to date

Resolve route and ProfileController conflicts, and move profile stats aggregation into ProfileService.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Complexity Health
Enums/LinkType.php 50% 10 ❌
Enums/ProfileAccountStatus.php 0% 0 ❌
Enums/UserRole.php 0% 0 ❌
Exceptions/InvalidOAuthCodeException.php 100% 1 ✔
Http/Controllers/Api/V1/AuthController.php 90% 10 ✔
Http/Controllers/Api/V1/CategoryController.php 100% 5 ✔
Http/Controllers/Api/V1/ProfileController.php 96% 9 ✔
Http/Controllers/Api/V1/SkillController.php 100% 5 ✔
Http/Controllers/Api/V1/UserController.php 100% 1 ✔
Http/Controllers/Controller.php 0% 0 ❌
Http/Controllers/Web/WebAuthController.php 100% 4 ✔
Http/Middleware/EnsureUserIsAdmin.php 0% 3 ❌
Http/Middleware/ForceJsonResponse.php 100% 1 ✔
Http/Requests/SearchProfilesRequest.php 0% 4 ❌
Http/Requests/UpdateProfileRequest.php 72% 12 ❌
Http/Requests/ValidateProfileRequest.php 100% 2 ✔
Http/Resources/SkillListResource.php 100% 1 ✔
Mail/WelcomeUserMail.php 100% 4 ✔
Models/BaseModel.php 100% 1 ✔
Models/Category.php 100% 4 ✔
Models/Profile.php 75% 5 ❌
Models/Project.php 100% 1 ✔
Models/Skill.php 57% 4 ❌
Models/SkillProfile.php 0% 0 ❌
Models/User.php 88% 4 ➖
Providers/AppServiceProvider.php 100% 2 ✔
Providers/TelescopeServiceProvider.php 80% 4 ➖
Services/AuthService.php 98% 13 ✔
Services/MailService.php 100% 1 ✔
Services/ProfileService.php 93% 21 ✔
Summary 87% (397 / 456) 132 ➖

Minimum allowed line rate is 80%

@gracieuxsikuly

Copy link
Copy Markdown
Contributor Author

@berna39

This branch has not been deployed

No deployments
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