Skip to content

Create XService for new audit data fetch #3428

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

Closed
5 tasks
Tracked by #3251
Kira-Pilot opened this issue Aug 9, 2022 · 0 comments
Closed
5 tasks
Tracked by #3251

Create XService for new audit data fetch #3428

Kira-Pilot opened this issue Aug 9, 2022 · 0 comments
Assignees
Labels
site Area: frontend dashboard

Comments

@Kira-Pilot
Copy link
Member

Kira-Pilot commented Aug 9, 2022

As a user viewing the audit page, I would like my audit data to be loaded and displayed.

Audit RFC

Audit Mocks

Technical Considerations

The backend work for the new audit route is not yet completed; however, we know what the new API points will look like:

REST API from the RFC

- Adds `GET /api/v2/audit` to return audit logs.
    - Supports `codersdk.Pagination`
- Adds `GET /api/v2/audit/count` to return number of logs for computing pages

We can scaffold out a new machine based on the above routes.

AC

  • Add new routes to api.tsx
  • Add new testing entities for these routes
  • Add new machine in new file, auditXService.ts
  • The above machine should back the view for the new audit log
  • The above machine should support pagination

Definition of Done

Above AC is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

2 participants