Commit Graph

382 Commits

Author SHA1 Message Date
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
dal 5b8280d429
updated mods 2025-03-19 14:59:34 -06:00
dal cbd52d51bb
merging api_dashboards_sharing_delete 2025-03-19 14:59:31 -06:00
dal 6f4d08152f
created api dashboards_sharing_delete 2025-03-19 14:56:44 -06:00
dal 03714fc130
merging api_dashboards_sharing_create 2025-03-19 14:56:20 -06:00
dal 5b542f2194
created api_dashboards_sharing_create 2025-03-19 14:56:13 -06:00
dal 09675f0705
created metrics sharing update 2025-03-19 14:54:42 -06:00
dal 85a91b855f
merging api_collections_sharing_list 2025-03-19 14:34:03 -06:00
dal c938b14f1b
Create colelctions sharing list 2025-03-19 14:33:30 -06:00
dal 20af7909db
merging api_dashboards_list 2025-03-19 14:22:34 -06:00
dal baa3796ff4
Created sharing create permissions 2025-03-19 14:22:24 -06:00
dal 709cff0483
sharing work 2025-03-19 14:22:05 -06:00
dal ff8a443e42
fixed the created at and the ordering on the get 2025-03-19 14:03:59 -06:00
dal da170c28a3
Update metrics handler to apply differences 2025-03-19 13:51:43 -06:00
dal 8c5f7c867d
Mark progress in PRD after implementing user lookup functionality 2025-03-19 13:47:05 -06:00
dal 6afc57ba5b
Implement API metrics sharing creation functionality 2025-03-19 13:44:40 -06:00
dal f3c902e0c1
merging api_metrics_sharing_list_1 2025-03-19 13:31:35 -06:00
dal d87130a8d1
merging api_metrics_sharing_list_1 2025-03-19 13:31:26 -06:00
dal dcbe170842
commit the 1 second version history 2025-03-19 13:24:13 -06:00
dal 0c2d809d83
get metric and update metric tool 2025-03-19 13:23:04 -06:00
dal fa89c4eef1
raw llm response being handled appropriately 2025-03-19 11:45:00 -06:00
dal a9699c627d
merging get_metric_handler_version_query_param 2025-03-19 10:49:56 -06:00
dal 60ebcf79cd
created get_metric_handler_version_query_param 2025-03-19 10:49:56 -06:00
dal 2ef5ad1139
integration test fixes 2025-03-19 10:42:36 -06:00
dal 92caf4b7d4
I think this is working properly now 2025-03-19 10:34:43 -06:00
dal 2058b0551f
post chat handler improvement 2025-03-19 08:57:20 -06:00
dal 99e1947ae3
get rid of print on message stream 2025-03-19 00:20:45 -06:00
dal 2a33977a4e
added in some tests and such for dashboard_ymls and metric_handlers 2025-03-19 00:09:43 -06:00
dal c53177d3ee
dashboard and testing stuff 2025-03-18 23:51:52 -06:00
dal cef57963f7
start to implement camelCase on dashboard drop debugs in prod 2025-03-18 23:17:28 -06:00
dal c66aaf42ee
try and see if litellm is the issue 2025-03-18 22:25:27 -06:00
dal e1f60494a2
metrics endpoints and optimizations for evals 2025-03-18 21:13:47 -06:00
dal 7e1ef9bbae
concurrency fixes 2025-03-18 17:41:52 -06:00
dal bd2cbf781c
start of collections endpoints 2025-03-18 08:14:29 -06:00
dal 256691f9c0
rename files 2025-03-17 16:33:47 -06:00
dal 02f2ff9bd1
raw llm 2025-03-14 13:50:25 -06:00
dal 0a9f17fa42
agent with gpt-4o-mini 2025-03-14 12:50:12 -06:00
dal a9cd975a0b
moved off gemini and added braintrust client for better tracing. 2025-03-14 08:56:21 -06:00
dal c91aa46185
raw_llm_message endpoint for evals 2025-03-13 15:29:19 -06:00
dal 8579aafd0a
asset type 2025-03-13 14:30:38 -06:00
dal 3430b8c273
favorite changes 2025-03-13 14:09:13 -06:00
dal e917dacafe
ok reverting to old commit will have to come back to streaming problems later. 2025-03-13 12:36:21 -06:00
dal 459b396006
everything is function with a renamce 2025-03-12 16:04:27 -06:00
dal 8e6e2675b4
cleaned up imports 2025-03-12 15:43:07 -06:00
dal 07e316acf2
making the post_chat handler way smaller 2025-03-12 15:40:58 -06:00
dal 65c1d81eec
moved initialize chat out of post chat handler to cleanup 2025-03-12 15:30:06 -06:00
dal c7c694516c
eliminated streaming_parser and moved everythign over in the post_chat_handler 2025-03-12 15:23:55 -06:00
dal a48fa954fe
streaming parser shrunk drastically 2025-03-12 14:46:14 -06:00
dal 0ac0b6bf6b
moved streaming into its own lib for the optimistic parsing with each stream having its own handler 2025-03-12 14:15:17 -06:00
dal e7d90bae03
ok hierarchy on files being sent back 2025-03-12 12:36:10 -06:00
dal 4432574086
better use of user throughout agents and tools 2025-03-12 08:27:59 -06:00
dal 9577fe99ba
added in the list metrics 2025-03-11 22:33:42 -06:00
dal 63490d60f0
dashboard handler 2025-03-11 22:21:30 -06:00
dal a8626d08d6
ok switched everything to camelcase for the chart config 2025-03-11 21:25:27 -06:00
dal 98685351f6
metric and dashoard context fix 2025-03-11 19:49:00 -06:00
dal 48c3d9f14b
convert over db types to be struct 2025-03-11 19:30:46 -06:00
dal 78ac791f83
version number added to get metric object 2025-03-11 16:06:07 -06:00
dal e9fc5cf9bb
added version history 2025-03-11 15:55:30 -06:00
dal d805c314b9
stub out and reset the sharing lib 2025-03-11 12:51:31 -06:00
dal f6b42ec9b7
list endpoints for chats and logs 2025-03-11 12:30:36 -06:00
dal fbfea49253
added in collections routes, need to clean up 2025-03-11 12:16:28 -06:00
dal 7656e9039a
moved docs 2025-03-11 11:34:18 -06:00
dal 182057426a
added in the user favorites endpoints 2025-03-11 10:58:17 -06:00
dal dbf77e4b68
save state bettr 2025-03-11 09:35:44 -06:00
dal 6528741645
data handler has necessary fields 2025-03-10 13:29:22 -06:00
dal 165e9e91ce
no longer shaking up the order on completed event 2025-03-10 12:27:44 -06:00
dal e7938c1a3c
files are coming back and response suddenly appeared again. 2025-03-10 12:15:03 -06:00
dal dbb05eab4f
plan being returned better. 2025-03-10 12:02:11 -06:00
dal 090f010542
ok plan is completing 2025-03-10 11:36:30 -06:00
dal d258b1a50d
almost working, need to work on exception for create plan 2025-03-10 11:33:31 -06:00
dal d1462fed2d
update for metric routes 2025-03-10 09:41:32 -06:00
dal 87b5489e10
move to traces 2025-03-10 08:55:06 -06:00
dal 381ab5e49f
modification changes 2025-03-07 13:33:02 -07:00
dal 456f117cd7
fix the raw llm message save. 2025-03-07 11:01:48 -07:00
dal 415466aa1f
dedup reasoning message 2025-03-07 07:58:35 -07:00
dal 95e3dcfe80
added in the asset sharing permissions and adjusted the existing logic 2025-03-06 16:46:18 -07:00
dal bcffc01061
successfully migrated to authenticated user obj 2025-03-06 16:21:26 -07:00
dal 65994d7d28
completed event making it now. 2025-03-06 11:18:55 -07:00
dal 7b44f395f3
completed 2025-03-05 17:18:00 -07:00
dal 518c802fb6
completed on files 2025-03-05 16:02:01 -07:00
dal b839e70aa9
moved around the ids so that the metrics and dashobard align across the board 2025-03-05 15:50:53 -07:00
dal 97656868d3
file unique id 2025-03-05 14:51:13 -07:00
dal 070a5c7455
Refactor message streaming and file processing logic 2025-03-05 14:03:28 -07:00
dal c60522b383
save files without sending 2025-03-05 13:58:14 -07:00
dal d773f85029
stream fix on the double file response 2025-03-05 13:36:02 -07:00
dal bba0e30b67
added in the user avatar url 2025-03-05 13:22:01 -07:00
dal b466a061c4
list is good for now, will adjust later. 2025-03-05 12:47:08 -07:00
dal 6ec195be52
plan being saved effectively now 2025-03-05 10:39:18 -07:00
dal 4fab757f2d
message ids 2025-03-05 10:31:35 -07:00
dal 8c4acf45e0
ok temp ids are working 2025-03-05 10:15:36 -07:00
dal fe212cb167
ok I thinkn we got things running 2025-03-05 10:06:37 -07:00
dal 1440b6f65e
reasoning text is streaming back correctly right now. 2025-03-05 09:41:41 -07:00
dal ef83036728
ok pills are correct now 2025-03-05 08:54:39 -07:00
dal 6a974f0114
file responses streaming perfect 2025-03-05 08:47:22 -07:00
dal 37ae21fa31
last few changes 2025-03-05 08:03:48 -07:00
dal ca93f9b9db
complete event 2025-03-04 15:11:48 -07:00
dal e6aafa1d30
new chat context 2025-03-04 14:33:12 -07:00