Skip to content

feat(api): harden compression and index audit queries - #1660

Merged
hman38705 merged 1 commit into
solutions-plug:mainfrom
Quanwritescodes:feature/1531-compression-1532-audit-indexes
Sep 28, 2026
Merged

hman38705 merged 1 commit into
solutions-plug:mainfrom
Quanwritescodes:feature/1531-compression-1532-audit-indexes

Conversation

@Quanwritescodes

Copy link
Copy Markdown

Summary

Addresses #1531 and #1532.

#1531: Compression policy

  • Restricts compression to JSON and text responses.
  • Excludes text/event-stream and responses that already carry Content-Encoding.
  • Skips known response bodies smaller than 32 bytes.
  • Adds module documentation and tests for large/small JSON, SSE, and pre-encoded responses.

#1532: Audit query indexes

  • Adds and registers composite indexes for action/time and resource-type/time filters.
  • Adds an EXPLAIN-based integration test for actor/time, action/time, resource-type/time, and statistics date-range queries.

The active audit logger uses audit_log and timestamp, rather than the issue’s audit_logs and created_at; the migration and plan test follow the current code and schema.

closes #1531
closes #1532

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Quanwritescodes Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@hman38705
hman38705 merged commit 090b097 into solutions-plug:main Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants