Commit Graph

71 Commits

Author SHA1 Message Date
dal 16e3a48cdc
introspect data 2025-10-03 15:49:21 -06:00
Wells Bunker aa73186b2a
Adding api for uploading and retrieving screenshots, also adding improvements to get ancestors 2025-10-01 10:43:36 -06:00
dal 2bf285ab2f
logs-write-back 2025-09-30 10:40:58 -06:00
dal 48a2539271
feature: snowflake and postgres writeback 2025-09-30 08:28:33 -06:00
dal 16b6cc1e80
Merge remote-tracking branch 'origin/staging' into dallin-bus-1982-snowflake-writeback 2025-09-29 14:01:00 -06:00
dal 629e0336c7
Implement logs writeback functionality across various components
- Enhanced deployment request preparation to include logs configuration.
- Introduced logs writeback configuration management in the database layer.
- Added new queries for upserting and deleting logs writeback configurations.
- Implemented logs writeback task to write query logs to Snowflake.
- Updated data source adapters to support logs table creation and record insertion.
- Integrated logs writeback task trigger in message post-processing workflow.
- Defined schemas for logs configuration and writeback records in shared packages.

This commit lays the groundwork for improved logging capabilities, allowing organizations to track query logs effectively.
2025-09-29 14:00:54 -06:00
dal 46e1956b07
fix turbo job on migrate to not need start 2025-09-29 13:43:19 -06:00
dal 9d21f7cad0
fixes 2025-09-24 21:33:11 -06:00
dal 2a8923374a
version on report file cache 2025-09-24 16:09:06 -06:00
Nate Kelley de54e28f2e
Added output for the builds 2025-09-23 22:40:45 -06:00
Nate Kelley 6748819e39
error handling for auth login 2025-09-23 21:06:40 -06:00
Nate Kelley 5ecf0400ed
Update storage factory test to remove r2 bucket 2025-09-22 13:21:47 -06:00
dal 2df6b234ac
Merge remote-tracking branch 'origin/staging' into dallin-bus-1816-dataset-sample-endpoint-not-working
# Conflicts:
#	packages/access-controls/src/datasets/permissions.ts
2025-09-19 10:16:14 -06:00
dal d6d18f3fca
Update dataset sample handling and add new API routes
- Added new API routes for fetching dataset samples by ID, including validation and error handling.
- Implemented `getDatasetSampleHandler` to manage dataset access and sample query execution.
- Introduced `executeSampleQuery` utility for executing read-only SQL queries with retry logic.
- Created new schemas for dataset sample request and response types.
- Updated existing dataset access control logic to ensure proper permissions are enforced.
- Added tests for the new dataset sample functionality to ensure reliability.
2025-09-19 10:06:03 -06:00
Nate Kelley 33073e6729
Move to scoped database imports 2025-09-18 12:36:37 -06:00
dal 18d24b3cb2
bigquery date handling 2025-09-17 09:43:05 -06:00
dal e9f2ca5bd6
bigquery fixes 👍🏼 2025-09-17 08:17:01 -06:00
dal 85a8c96056
lint and fix 2025-09-17 07:49:41 -06:00
dal 21713a2e3b
bigquery parser 2025-09-17 07:42:45 -06:00
dal 6ad4654200
bigquery bugfixes 2025-09-17 07:03:11 -06:00
dal 8f9fcb711b
type mapping and fixing the report file streaming for modify. 2025-09-17 00:36:36 -06:00
dal e92b610ed2
Refactor BigQuery adapter to include schema metadata in query results and improve type mappings. Update tests to validate new behavior and ensure compatibility with existing functionality. 2025-09-16 16:27:28 -06:00
dal 72ef9464dc
slq parser and data source helper and type mappings 2025-09-16 15:50:33 -06:00
dal 758b6b7d96
lint fixes 2025-09-16 14:56:40 -06:00
dal 9a3378a368
add in unit test and edge case from bugbot 2025-09-16 14:46:00 -06:00
dal 377122c107
Refactor database adapters to normalize row values
- Added `normalizeRowValues` function to BigQuery, MySQL, PostgreSQL, Redshift, Snowflake, and SQLServer adapters to ensure consistent data types across different databases.
- Updated row processing logic in each adapter to apply normalization when converting query results.
2025-09-16 14:21:24 -06:00
dal eb657d558e
CLAUDE.md and README.md updates... 2025-09-15 15:06:41 -06:00
Nate Kelley c103a5c154
update server package versions 2025-09-15 13:40:11 -06:00
dal 09fc15e4a7
snowflake test fix 2025-09-11 22:23:30 -06:00
dal 3af0fee1b0
query limit fixes 2025-09-11 22:19:55 -06:00
dal db8a919e08
final changes on search 2025-09-05 09:45:17 -06:00
dal 5b1c903f78
snowflake credentials adjustment 2025-08-26 10:34:15 -06:00
dal 48de08f603
Merge remote-tracking branch 'origin/staging' into add-s3-integration-capability 2025-08-25 09:53:18 -06:00
dal 8a26630836
storage integration 2025-08-25 09:52:37 -06:00
dal e2cf8449e6
s3 tests 2025-08-25 08:48:10 -06:00
dal 41ca3c3724
Refactor S3 integration handlers and storage provider logic
- Simplified S3 integration handler functions by consolidating imports and improving code readability.
- Updated error handling in the S3 integration process to enhance clarity and maintainability.
- Refactored storage provider functions to utilize a more modular approach, separating concerns for better organization.
- Introduced utility functions for common operations, improving code reuse and reducing duplication.

These changes enhance the overall structure and maintainability of the S3 integration management features.
2025-08-25 08:06:07 -06:00
dal 5f51dfc459
Implement S3 integration management features
- Added routes for creating, retrieving, and deleting S3 integrations in the API.
- Introduced handlers for S3 integration operations, including validation of user permissions and storage credentials.
- Updated database schema to support S3 integrations, including a new table and associated queries.
- Integrated storage provider logic to handle S3, R2, and GCS configurations.
- Enhanced error handling and response structures for integration operations.

This commit lays the groundwork for managing storage integrations within the application, allowing users to connect and manage their S3 storage solutions.
2025-08-25 08:05:19 -06:00
dal f469b2a152
Update PostgreSQL adapter SSL configuration to allow self-signed certificates
- Modified the SSL configuration in both the PostgreSQL adapter and its tests to use { rejectUnauthorized: false } instead of a boolean true value.
- Ensured consistency in handling SSL settings across the adapter and its tests.
2025-08-25 00:26:29 -06:00
dal 570624a112
posgres ssl fix 2025-08-25 00:15:09 -06:00
dal 2e24d830f0
Refactor database credential handling across adapters
- Updated all database adapter tests and implementations to replace the 'database' field with 'default_database' for consistency.
- Ensured backward compatibility in the Redshift adapter by allowing both 'database' and 'default_database' fields.
- Enhanced SQLServer and MySQL adapters to reflect the new credential structure, improving clarity and maintainability.
2025-08-24 23:35:46 -06:00
dal fe5819efe1
Update AWS SDK dependencies and enhance metric data handling
- Upgraded '@aws-sdk/client-s3' to version 3.873.0 across multiple packages.
- Introduced caching mechanisms for metric data retrieval in the getMetricDataHandler function.
- Updated API endpoints to support report_file_id for cache lookups and data retrieval.
- Enhanced error handling and logging for cache operations.
- Refactored related components to accommodate new caching logic and parameters.
2025-08-22 12:45:05 -06:00
dal d1155e5978
Enhance metric query execution and metadata handling
- Introduced `executeMetricQuery` utility for standardized metric SQL query execution with retry logic.
- Updated `getMetricDataHandler` and metric tool execution functions to utilize the new query utility, improving error handling and result processing.
- Added metadata generation from query results to provide detailed insights into data structure.
- Refactored SQL validation to ensure only read-only queries are executed, enhancing data integrity.
2025-08-22 09:01:28 -06:00
dal 2833c6bb0c
dry run 2025-07-25 18:29:35 -06:00
dal 77ffeab37a
Fix Snowflake adapter tests for lowercase column names
The Snowflake adapter implementation transforms column names to lowercase
for consistency, but the tests were expecting uppercase column names.
This commit updates the tests to match the implementation:

- Update test expectations to use lowercase column names (id, name)
- Fix hasMoreRows assertions to match implementation logic (only true when rowCount > limit)
- Ensure all Snowflake-related tests pass with the current adapter behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 10:09:51 -06:00
dal d371a65524
Update Snowflake adapter tests and implementation for improved row handling
- Increased allowed variance in cached query time checks to accommodate network fluctuations.
- Corrected property name in test assertions to match expected lowercase format.
- Enhanced SnowflakeAdapter to transform column names to lowercase and adjusted logic for determining if more rows are available from the stream.
2025-07-23 10:01:34 -06:00
Devin AI efd56f90a7 Fix max-rows-limiting test mocks for streaming implementation
- Update Snowflake adapter test to use streamResult: true
- Mock streamRows method with proper stream event handling
- Remove TypeScript error from destroyed property
- Verify streamRows called with correct start/end parameters

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-23 14:12:25 +00:00
Devin AI 315a151a3f BUS-1495: Implement Snowflake adapter streaming with network-level row limiting
- Update query() method to use streamResult: true and stmt.streamRows()
- Add network-level row limiting with default 5000 row cap
- Process stream events (data, error, end) to build result set
- Maintain backward compatibility with existing adapter interface
- Update unit tests to mock streaming behavior
- Fix integration test imports and property names
- Preserve query caching by using original SQL unchanged

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-23 13:56:40 +00:00
dal a7e023ff6f
Merge pull request #588 from buster-so/dallin/bus-1474-investigate-redshift-connection-timeout-issues-with
increase timeouts and a few lint fixes
2025-07-21 16:39:40 -06:00
Nate Kelley 8ee892bf2a
Use tsx and .ts files for validation 2025-07-21 16:07:14 -06:00
Nate Kelley 4418f4991b
use a shared env validation method 2025-07-21 16:00:10 -06:00