Commit Graph

51 Commits

Author SHA1 Message Date
dal 4d44a1766c
status filtering on metrics, public dashboard functionality restored 2025-04-23 06:10:54 -06:00
dal d6c0bee096
only 1 version on creation 2025-04-22 21:35:44 -06:00
dal 764bbfa344
get metric handler in the dashboard handler 2025-04-16 17:01:20 -06:00
dal ff32bd2887
ok lots of changes, but we've updated agent architecture with modes and such. fixed a few other bugs for review 2025-04-16 11:08:48 -06:00
dal 27a7849f69
dashboard has its own get metric handler 2025-04-15 17:32:28 -06:00
dal f5678c4a4d
ok password finally working 2025-04-07 21:18:20 -06:00
dal d346bca850
Enhance API documentation and implement password protection for public assets
- Updated CLAUDE.md with architecture overview, row limit implementation notes, and troubleshooting guide.
- Added additional documentation resources and common test commands.
- Enhanced database test infrastructure guide with quick reference and common patterns.
- Implemented password protection for public dashboards and metrics, including checks for access expiration and required passwords.
- Updated relevant handlers and routes to support password parameters.
- Refactored bulk update metrics handler to remove batch size from request structure.
- Added tests for password protection and access control for metrics and dashboards.
2025-04-07 17:44:41 -06:00
dal 994975672b
Merge api_permission_field_fix branch and resolve conflicts
Combined test modules from both branches to maintain all test cases including:
- sharing tests from HEAD branch
- permission field tests from api_permission_field_fix branch
- update metric tests from HEAD branch

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-07 16:49:24 -06:00
dal eedb717393
api_permission_field_fix 2025-04-07 16:47:00 -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 bedc6b3e51
ok updated messages to files to have a version number attached 2025-04-07 13:22:10 -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 b0699bf5be
dashboard config 2025-04-02 09:07:57 -06:00
dal 74a2c4a493
enhancement_dashboard_collections 2025-04-01 13:25:17 -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 05a8b4b2c9
add in dashboard restore 2025-03-25 11:30:53 -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 6adf84b8d3
update version param on updates for dashboard and metric pushed up 2025-03-24 11:15:24 -06:00
dal 2ef2ad1499
update prds for permissions 2025-03-22 14:58:56 -06:00
dal 01f2c76ac3
update dashboard name 2025-03-21 14:09:09 -06:00
dal dba826d874
clean up 2025-03-21 12:54:54 -06:00
dal 71f1a41e39
Fix more unused variables throughout handlers library 2025-03-21 11:31:57 -06:00
dal 63933d6627
Fix multiple Clippy warnings in handlers library 2025-03-21 11:26:57 -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 f5f9af52ec
ok update dashboard but will need to mess with it more 2025-03-20 12:32:04 -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 4156129d13
create api remove dashboards from colelction 2025-03-19 23:49:38 -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 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 b1a01c5d5e
refactored 2025-03-19 16:54:08 -06:00
dal e9114ec47c
update sharing handler fix 2025-03-19 15:41:24 -06:00
dal dc00381bec
created api dashboards sharing update 2025-03-19 15:35:48 -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 5b542f2194
created api_dashboards_sharing_create 2025-03-19 14:56:13 -06:00
dal baa3796ff4
Created sharing create permissions 2025-03-19 14:22:24 -06:00
dal 60ebcf79cd
created get_metric_handler_version_query_param 2025-03-19 10:49:56 -06:00