Skip to content

Commit

Permalink
Add query-filters to the init complete status report
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco Vermeulen committed Jul 26, 2024
1 parent a6c4760 commit 25d2596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport {
trap_cache_download_size_bytes: number;
/** Time taken to download TRAP caches, in milliseconds. */
trap_cache_download_duration_ms: number;
/** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
query_filters: string;
}

/** Fields of the init status report populated when the tools source is `download`. */
Expand Down Expand Up @@ -207,6 +209,7 @@ async function sendCompletedStatusReport(
await getTotalCacheSize(config.trapCaches, logger),
),
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
query_filters: JSON.stringify(config.originalUserInput["query-filters"]),
};
await sendStatusReport({
...initWithConfigStatusReport,
Expand Down

0 comments on commit 25d2596

Please sign in to comment.