Commit Graph

378 Commits

Author SHA1 Message Date
dal 686e336921
Fix async initialization function 2025-04-07 16:28:59 -06:00
dal 9bb0410d03
Fix database pool initialization within async runtime 2025-04-07 16:28:37 -06:00
dal 1a6d712a3f
Add proper database pool initialization 2025-04-07 16:28:17 -06:00
dal bac973e791
Fix test setup for database connectivity 2025-04-07 16:27:51 -06:00
dal 72c376df7e
Update remaining tests to use simplified setup 2025-04-07 16:19:25 -06:00
dal 6ce9f18e41
Simplify test setup with direct pool initialization 2025-04-07 16:18:58 -06:00
dal 32b142b0ce
Implement public sharing parameter fix with UpdateField enum
- Add UpdateField enum for unambiguous sharing parameter updates
- Replace Option<Option<T>> pattern with the more explicit enum
- Update metrics, dashboards, and collections sharing handlers
- Add validation for expiry dates and empty passwords
- Add comprehensive tests for public sharing updates

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-07 16:18:13 -06:00
dal d10e58fe71
Update integration tests to use proper test infrastructure 2025-04-07 16:18:11 -06:00
dal a4bfa7c39d
Fix AuthenticatedUser struct in integration tests 2025-04-07 16:16:13 -06:00
dal a44e4b127d
Fix import for AuthenticatedUser in tests 2025-04-07 16:15:38 -06:00
dal e6a198fa43
Fix metric status field propagation in update handler
- Modified update_metric_handler to properly include verification status
- Created reusable MetricFileChangeset struct to simplify updates
- Added unit test for verification field in request
- Implemented comprehensive integration tests for status updates
- Test multiple scenarios: authorized update, unauthorized, null values

Fixes BUS-1069

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-07 16:14:55 -06:00
dal ab44aceb76
feat(metrics): implement bulk metric status update endpoint
Add bulk update functionality for metric verification status, allowing multiple
metrics to be updated in a single API call with efficient batch processing. This
implementation includes:

- New handler for processing bulk updates with concurrent execution
- Batch processing with customizable batch size (default 50)
- Comprehensive error handling with client-friendly error codes
- REST endpoint with request validation and rate limiting
- Unit and integration tests for success and error cases
- Performance testing with different batch sizes

Addresses ticket BUS-1070.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-07 16:03:38 -06:00
dal bedc6b3e51
ok updated messages to files to have a version number attached 2025-04-07 13:22:10 -06:00
dal 141736f5a6
remove unused deps 2025-04-04 16:50:44 -06:00
dal 28d3e3ee14
fix the user org id 2025-04-04 16:15:31 -06:00
dal 319984034a
update sharing with public_expiry_date 2025-04-04 14:16:14 -06:00
dal 50d5e02e02
lots of changes for permissioning and sharing assets 2025-04-04 14:01:40 -06:00
dal 773dc9edee
things are working good 2025-04-04 12:40:58 -06:00
dal 5b039a1f29
chat context working 2025-04-04 11:20:36 -06:00
dal 38f1c9c54c
modify files going good 2025-04-04 09:44:10 -06:00
dal ce11968d54
column label format update on sql change 2025-04-03 15:29:25 -06:00
dal 071574fd0e
fixes so far 2025-04-03 12:24:06 -06:00
dal f363caa7a7
middle of working on data metadata stuff 2025-04-03 11:42:30 -06:00
dal 8e7885c2ce
update docs 2025-04-02 14:49:00 -06:00
dal 021dbd2fa1
automatic integratino test set up 2025-04-02 14:46:28 -06:00
dal 92adcc6307
ok checking permission on delete message 2025-04-02 09:31:59 -06:00
dal b0699bf5be
dashboard config 2025-04-02 09:07:57 -06:00
dal 95f43217cc
duplicate chat functionaligy 2025-04-02 08:21:21 -06:00
dal 8ccfb0d302
new prd, migration, etc. 2025-04-01 21:41:01 -06:00
dal 8186e29c5f
permission on get chat and metric now includes indexmap to preserve mapping orders 2025-04-01 16:18:53 -06:00
dal 4c30dc3cca
collections fix 2025-04-01 14:05:22 -06:00
dal 5e3f67eb7d
empty chat title and databricks query fix 2025-04-01 13:43:10 -06:00
dal a24ba84fd3
enhancement_metric_associations 2025-04-01 13:25:17 -06:00
dal 74a2c4a493
enhancement_dashboard_collections 2025-04-01 13:25:17 -06:00
dal d5bd1d2ab4
list chat improvements 2025-04-01 13:25:17 -06:00
dal 2e01b9fb6f
claude command and post_chat_handler with final reasoning converted to minutes 2025-04-01 13:25:17 -06:00
dal 6c02bbe958
passing up data source id for run sql to consume 2025-04-01 12:09:11 -06:00
dal 8899fb8549
timeout and file message 2025-04-01 11:26:29 -06:00
dal a2273a81b5
bulk on favorite reqs 2025-03-28 13:47:37 -06:00
dal 169c0de789
update permission check on metric sharing 2025-03-26 11:25:46 -06:00
dal fc79ff8d67
search functionality through rest 2025-03-25 15:03:34 -06:00
dal df341a0ac5
Merge branch 'evals' into api_search_rest_endpoint 2025-03-25 14:31:07 -06:00
dal 22322f0711
search functionality 2025-03-25 14:31:02 -06:00
dal 60e54d0257
restore chat assets 2025-03-25 12:55:39 -06:00
dal 2c659955ed
final touches on chat restoration 2025-03-25 12:38:49 -06:00
dal 3c9c014ede
Improve chat restoration message format
- Updated the restoration message format to use response_messages instead of request_message
- Added proper message structure with both file and text messages in a single response
- Updated integration tests to match the new format
- Set empty request_message as required

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-25 12:32:25 -06:00
dal b3dc70bc21
Add chat asset restoration functionality
Implemented the ability to restore previous versions of metrics and dashboards through the chat interface. Key changes include:
- Created restore_chat_handler.rs to handle the restoration logic
- Added a new REST endpoint at PUT /chats/{id}/restore
- Updated module exports for the new functionality
- Added comprehensive integration tests
- Updated PRDs with implementation details

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-25 12:27:46 -06:00
dal 87133bda96
merging put_organization_endpoint 2025-03-25 11:51:02 -06:00
dal ae594af0ad
added the put organization endpoint 2025-03-25 11:50:53 -06:00
dal 49990d847f
merging dashboard_restore 2025-03-25 11:30:58 -06:00
dal 05a8b4b2c9
add in dashboard restore 2025-03-25 11:30:53 -06:00
dal 168972be6d
metric restore to version 2025-03-25 11:28:44 -06:00
dal f42213f715
added in optional prompt and normalized the asset id and filed 2025-03-25 11:04:55 -06:00
dal adcbca66aa
remove some deprecated tests 2025-03-25 09:32:35 -06:00
dal 5c88eda5c6
name bugs on chats and logs 2025-03-24 23:14:54 -06:00
dal 8a79550bfe
ok access controls fully implemented 2025-03-24 23:09:36 -06:00
dal 0bc489c5f7
ok dashboards 2025-03-24 23:09:36 -06:00
dal 0e051bfb13
access control changes so far 2025-03-24 23:09:36 -06:00
dal da62ce2222
fix on merge conflict 2025-03-24 13:57:40 -06:00
dal 13938a8140
merging data_source_endpoints 2025-03-24 13:54:35 -06:00
dal c19c824e47
data source endpoints 2025-03-24 13:54:23 -06:00
dal edb9d2090a
endoints and handlers built moving on to testing 2025-03-24 13:25:35 -06:00
dal 4c052e0c03
type on get data source handler 2025-03-24 12:24:08 -06:00
dal 6adf84b8d3
update version param on updates for dashboard and metric pushed up 2025-03-24 11:15:24 -06:00
dal 7448967a7d
version number on data 2025-03-24 10:54:26 -06:00
dal 1dcf3cee05
move metric title to name across ap 2025-03-24 09:46:46 -06:00
dal 2ef2ad1499
update prds for permissions 2025-03-22 14:58:56 -06:00
dal badfac6e55
user permission checks and cache on user with other prds 2025-03-21 23:17:28 -06:00
dal cf73c809f1
remove bad functions out of handlers 2025-03-21 16:38:11 -06:00
dal 460a7d0131
make sure we have title on chat objects being update 2025-03-21 15:07:50 -06:00
dal 01f2c76ac3
update dashboard name 2025-03-21 14:09:09 -06:00
dal 326dfaaea1
add more claude context and docs 2025-03-21 13:48:37 -06:00
dal ff004035b1
clean up merge conflict 2025-03-21 13:24:46 -06:00
dal 81f6e6cf9e
merging clippy_cleanup 2025-03-21 13:23:55 -06:00
dal dba826d874
clean up 2025-03-21 12:54:54 -06:00
dal 39385acf9d
Fix unused variables and redundant local bindings in post_chat_handler.rs 2025-03-21 12:18:26 -06:00
dal 81228d2509
merging update_data_source_endpoint 2025-03-21 12:16:58 -06:00
dal ee830562cf
update data source stubbed, but will change 2025-03-21 12:10:57 -06:00
dal 9a847bc6e6
remove unused 2025-03-21 11:46:28 -06:00
dal 5729d34f8c
credentials instead of value 2025-03-21 11:46:20 -06:00
dal 52f0caf5be
adding up the get data source endpoint 2025-03-21 11:44:03 -06:00
dal bb5a28c616
merging get_data_source_endpoint 2025-03-21 11:37:39 -06:00
dal 653b1c3381
get data source endpoint 2025-03-21 11:37:28 -06:00
dal 26a9397228
associate files correclty. 2025-03-21 11:36:13 -06:00
dal 71f1a41e39
Fix more unused variables throughout handlers library 2025-03-21 11:31:57 -06:00
dal a5529b4746
Fix Clippy warnings in post_chat_handler and add proper prefixes for unused variables 2025-03-21 11:29:25 -06:00
dal 63933d6627
Fix multiple Clippy warnings in handlers library 2025-03-21 11:26:57 -06:00
dal 2ea69275a6
Fix ambiguous exports in metrics module and start fixing unused variables in post_chat_handler 2025-03-21 11:23:17 -06:00
dal 76a7ff9204
Fix type mismatch in get_metric_handler 2025-03-21 11:15:45 -06:00
dal 1513a39268
clean up 2025-03-21 10:44:53 -06:00
dal f1e2911c0a
clean up testing errors 2025-03-21 10:14:20 -06:00
dal 9cbd5e91a9
libs cargo warning fix 2025-03-20 16:36:26 -06:00
dal f5a239f615
added in the message and chat updates 2025-03-20 16:13:02 -06:00
dal 97393aed50
merging migrate_delete_metrics_to_bulk 2025-03-20 15:40:35 -06:00
dal 139ef04003
refactor delete metrics 2025-03-20 15:36:12 -06:00
dal 0289723746
flattened the object on update collectiosn 2025-03-20 15:18:36 -06:00
dal bca954726d
update the collections req to be more simple 2025-03-20 15:11:23 -06:00
dal 1e5b63a3d0
a few small tweaks for reqs 2025-03-20 13:40:49 -06:00
dal f9b8dde170
favorites updates 2025-03-20 12:58:35 -06:00
dal f5f9af52ec
ok update dashboard but will need to mess with it more 2025-03-20 12:32:04 -06:00
dal 72637b8c56
update the data source list return object 2025-03-20 12:13:34 -06:00
dal 7bbfef2ed2
merging list_data_sources_endpoint 2025-03-20 12:09:44 -06:00
dal e0c46f738f
get dashboard, update dashboard, versions, etc. 2025-03-20 12:06:08 -06:00
dal 3b959b272a
Implement metric-dashboard association
- Create migration for metric_files_to_dashboard_files association table
- Add MetricFileToDashboardFile model to database/models.rs
- Implement functions to extract metric IDs from dashboards
- Add logic to maintain associations when dashboards are updated
- Add logic to create associations when dashboards are created
- Create integration test for the feature
- Create PRD for the metric-dashboard association feature

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-20 12:06:08 -06:00
dal f5e018ac08
create list data sources endpoint 2025-03-20 12:03:14 -06:00
dal 3d157f9f59
Implement metric-dashboard association
- Create migration for metric_files_to_dashboard_files association table
- Add MetricFileToDashboardFile model to database/models.rs
- Implement functions to extract metric IDs from dashboards
- Add logic to maintain associations when dashboards are updated
- Add logic to create associations when dashboards are created
- Create integration test for the feature
- Create PRD for the metric-dashboard association feature

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-20 11:17:35 -06:00
dal 5b484510c3
add to collections 2025-03-20 09:57:01 -06:00
dal b8e4a95316
merging add_assets_to_get_collection 2025-03-20 09:46:56 -06:00
dal 160fa5fa6f
create assets to get collection 2025-03-20 09:46:49 -06:00
dal 8fe017a941
create remove metric from collections 2025-03-20 09:08:54 -06:00
dal a4e76db49c
merging api_add_assets_to_collection.md 2025-03-20 00:14:43 -06:00
dal 3563b41f53
create api add assets to collection 2025-03-20 00:14:02 -06:00
dal 5f3f0174f1
create api remove assets from collection 2025-03-20 00:10:47 -06:00
dal f7e1f692f5
merging api_remove_dashboards_from_collection 2025-03-19 23:49:48 -06:00
dal 4156129d13
create api remove dashboards from colelction 2025-03-19 23:49:38 -06:00
dal f402f42c97
add api add metrics to collection 2025-03-19 23:45:09 -06:00
dal a820223db9
fix diesel not found error 2025-03-19 23:39:32 -06:00
dal 469799ea23
create dashboards to collections 2025-03-19 23:34:32 -06:00
dal 4722ce7a08
api remove metrics from collection 2025-03-19 22:51:37 -06:00
dal cde1b4e960
delete dashboard with other dashboard tooling 2025-03-19 22:11:20 -06:00
dal dcf1227ad6
Merge api_dashboard_create_endpoint, resolving conflicts 2025-03-19 21:32:20 -06:00
dal 5db67c49ee
create dashboard endpoint 2025-03-19 21:31:06 -06:00
dal 956da48103
Merge api_dashboard_delete_endpoint branch, resolving conflicts
Integrated delete dashboard endpoint with existing update endpoint:
- Fixed merge conflicts in dashboard project plan
- Combined routes in mod.rs to support GET, PUT, and DELETE endpoints
- Organized test module imports alphabetically
2025-03-19 21:30:20 -06:00
dal bc51c98bb4
create api dashboard delete 2025-03-19 21:04:14 -06:00
dal f5263c7a76
api dashboard update endpoint 2025-03-19 20:49:04 -06:00
dal 1c9d3b6eed
ok added in individual permissions to the dashboards, collections, chats 2025-03-19 20:49:04 -06:00
dal 67981732e1
merging update_sharing_body_refactor 2025-03-19 17:06:13 -06:00
dal 0e6cf53606
add same individual permissions logic on dashboards 2025-03-19 17:03:28 -06:00
dal 65840319fa
ok get metric has permissions on it now 2025-03-19 16:56:54 -06:00
dal b1a01c5d5e
refactored 2025-03-19 16:54:08 -06:00
dal 4000e8409f
fix on compiler 2025-03-19 16:35:18 -06:00
dal 6358771ec6
merging api_chats_sharing_update.md 2025-03-19 16:05:28 -06:00
dal 4b4b5033f6
fix on lint errors on test 2025-03-19 16:04:31 -06:00
dal dc3c3de2ae
create api chats sharing update 2025-03-19 16:01:30 -06:00
dal e9114ec47c
update sharing handler fix 2025-03-19 15:41:24 -06:00
dal f95f67ac47
merging api_collections_update 2025-03-19 15:41:01 -06:00
dal e551d86e45
create api collections update 2025-03-19 15:40:16 -06:00
dal 1c2808c5ad
merging api_dashboards_update 2025-03-19 15:36:05 -06:00
dal dc00381bec
created api dashboards sharing update 2025-03-19 15:35:48 -06:00
dal b4b2e5d6b0
fix merge conflicts and push 2025-03-19 15:31:20 -06:00
dal 1236ea04c3
Implemented chat sharing create endpoint
- Added handler for creating chat sharing permissions
- Created REST endpoint for POST /chats/:id/sharing
- Added fixtures and test setup for chats
- Created integration tests for the sharing endpoint
- Updated PRD to mark implementation as complete

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-19 15:28:34 -06:00
dal 6051512a24
merging api_chats_sharing_delete 2025-03-19 15:21:35 -06:00
dal d4ed618ffd
api chats sharing delete created 2025-03-19 15:19:07 -06:00
dal 98ef45a0f2
merging api_chats_sharing_list 2025-03-19 15:16:05 -06:00
dal f189c75b49
created api_chats_sharing_list 2025-03-19 15:15:57 -06:00
dal d3851b1755
merging api_collections_sharing_delete 2025-03-19 15:15:35 -06:00
dal 40c969c7eb
created metrics sharing update 2025-03-19 15:15:28 -06:00
dal 952f81aaa4
owner associations on chats and dashboards 2025-03-19 15:12:32 -06:00
dal 31cf5beb36
merging api_collections_sharing_create 2025-03-19 15:00:15 -06:00
dal d5aa6cae00
sharing_list_permissions 2025-03-19 15:00:04 -06:00