Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c822e8c
Add extended attributes and indexes for ClickHouse adapter
lohanidamodar Jan 11, 2026
d753ebe
Add tests for required attributes and indexes in ClickHouse adapter
lohanidamodar Jan 11, 2026
aa4f0d4
Foramt
lohanidamodar Jan 11, 2026
3d46740
Refactor ClickHouse index tests to include specific ClickHouse indexe…
lohanidamodar Jan 11, 2026
fc4a15d
format
lohanidamodar Jan 11, 2026
207d1dd
Add getById method to Adapter and its implementations for retrieving …
lohanidamodar Jan 11, 2026
ef6b30f
Query support clickhouse
lohanidamodar Jan 11, 2026
c83605e
Add tests for Query class methods and functionality
lohanidamodar Jan 11, 2026
d1d0a43
Count method and test
lohanidamodar Jan 12, 2026
eea7517
Add find and count methods to Adapter and Database classes with tests
lohanidamodar Jan 13, 2026
3371f02
Merge branch 'main' into feat-additional-attributes
lohanidamodar Jan 18, 2026
9e2e857
more fixes
lohanidamodar Jan 18, 2026
dfca44d
Fix codeql
lohanidamodar Jan 18, 2026
db20449
Fix: tests
lohanidamodar Jan 18, 2026
295b282
feat: add methods for dynamic column handling and datetime formatting…
lohanidamodar Jan 18, 2026
3b5ee79
Fix compatibility and exception swallowing
lohanidamodar Jan 18, 2026
a40925d
feat: enhance ClickHouse adapter to support additional log attributes…
lohanidamodar Jan 18, 2026
33d51e8
feat: add method to retrieve attribute metadata and enforce required …
lohanidamodar Jan 18, 2026
1788442
fix: improve query validation and formatting in ClickHouse adapter
lohanidamodar Jan 18, 2026
667fecf
feat: add validation for required attributes in log entries and impro…
lohanidamodar Jan 18, 2026
6adc9d1
feat: add support for additional attributes in log methods and enhanc…
lohanidamodar Jan 18, 2026
b0a0816
codeql fix
lohanidamodar Jan 18, 2026
5f5cf3d
feat: refactor log method to remove attributes parameter and merge re…
lohanidamodar Jan 18, 2026
47ab637
feat: enhance attribute validation and extraction logic in ClickHouse…
lohanidamodar Jan 18, 2026
a535688
feat: simplify logBatch method by removing defaultAttributes parameter
lohanidamodar Jan 18, 2026
3c2b755
feat: enhance ClickHouse adapter to dynamically map columns and impro…
lohanidamodar Jan 19, 2026
e7c26bb
feat: streamline datetime formatting for ClickHouse and enhance colum…
lohanidamodar Jan 19, 2026
b95f735
feat: rename formatDateTimeForClickHouse to formatDateTime for clarity
lohanidamodar Jan 19, 2026
210ce93
feat: remove getAttributeMetadata method and replace its usage with g…
lohanidamodar Jan 19, 2026
dcd503b
feat: enhance ClickHouse adapter to improve query handling and attrib…
lohanidamodar Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 45 additions & 43 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions src/Audit/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ abstract public function getName(): string;
*/
abstract public function setup(): void;

/**
* Get a single log by its ID.
*
* @param string $id
* @return Log|null The log entry or null if not found
*
* @throws \Exception
*/
abstract public function getById(string $id): ?Log;

/**
* Create an audit log entry.
*
Expand Down Expand Up @@ -202,4 +212,24 @@ abstract public function countByResourceAndEvents(
* @throws \Exception
*/
abstract public function cleanup(\DateTime $datetime): bool;

/**
* Find logs using custom queries.
*
* @param array<\Utopia\Audit\Query> $queries
* @return array<Log>
*
* @throws \Exception
*/
abstract public function find(array $queries = []): array;

/**
* Count logs using custom queries.
*
* @param array<\Utopia\Audit\Query> $queries
* @return int
*
* @throws \Exception
*/
abstract public function count(array $queries = []): int;
}
Loading
Loading