Skip to content

Work on logs#571

Merged
dbarzin merged 3 commits intomainfrom
dev
Feb 3, 2026
Merged

Work on logs#571
dbarzin merged 3 commits intomainfrom
dev

Conversation

@dbarzin
Copy link
Copy Markdown
Owner

@dbarzin dbarzin commented Feb 3, 2026

Summary by CodeRabbit

  • New Features

    • Introduced a new Audit Log API endpoint with complete CRUD operations, enabling comprehensive log management through API access.
  • Security & API Updates

    • Reinforced API access control mechanisms with stricter authorization validation across endpoints.
  • Documentation

    • Updated API documentation to reflect the new Audit Log endpoint.
  • Chores

    • Version updated to 2026.02.02.

@dbarzin dbarzin merged commit 6613fa8 into main Feb 3, 2026
1 check was pending
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 3, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request introduces a new AuditLog API controller with full CRUD endpoints protected by API-access checks, refactors authorization in DomainController from role-based to API-check based, integrates the new endpoint via an API resource route, documents it in both English and French, and bumps the version number.

Changes

Cohort / File(s) Summary
API Controllers
app/Http/Controllers/API/AuditLogController.php, app/Http/Controllers/API/DomainController.php
New AuditLogController introduces five CRUD endpoints (index, store, show, update, destroy) with isAPI() authorization checks and JSON responses. DomainController refactored to replace role-based authorization with isAPI() checks and adjusted response payloads to return empty JSON for update/destroy operations.
API Routes
routes/api.php
Added new apiResource route mapping 'logs' to AuditLogController within the authenticated API group.
Documentation
docs/api.md, docs/api.fr.md
Added /api/logs endpoint reference to both English and French API documentation files.
Version Updates
package.json, version.txt
Version number incremented from 2026.01.17 to 2026.02.02 across both files.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Logs now hop through API's door,
DomainController learns once more,
IsAPI guards the sacred gate,
Version bumped—we celebrate! 🎉

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Failure to add the new IP will result in interrupted reviews.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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