Skip to content

Create XService for new audit data fetch #3428

Closed
@Kira-Pilot

Description

@Kira-Pilot

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.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions