Commit Graph

71 Commits

Author SHA1 Message Date
dal 3b599508a3
hotfix datasource id ref 2025-05-01 10:06:14 -06:00
dal 693eaec969
Enhance error handling and version management in metric file processing. Added detailed error logging for failed dataset associations and improved YAML serialization handling. Updated structures to track updated versions during metric modifications. 2025-04-30 17:22:47 -06:00
dal 75e6e6de76
ok everything is working pretty well 2025-04-29 17:36:34 -06:00
dal 4d44a1766c
status filtering on metrics, public dashboard functionality restored 2025-04-23 06:10:54 -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 4c5d6ca97d
update column settings on sql change 2025-04-08 13:25:19 -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 a754c45282
Resolve merge conflicts and integrate metrics test module 2025-04-07 16:43:49 -06:00
dal 04d1f0e849
Merge api_public_sharing_fix branch and resolve conflicts 2025-04-07 16:37:49 -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 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 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 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 a24ba84fd3
enhancement_metric_associations 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 169c0de789
update permission check on metric sharing 2025-03-26 11:25:46 -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 168972be6d
metric restore to version 2025-03-25 11:28:44 -06:00
dal 8a79550bfe
ok access controls fully implemented 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 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 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 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 139ef04003
refactor delete metrics 2025-03-20 15:36:12 -06:00
dal 8fe017a941
create remove metric from collections 2025-03-20 09:08:54 -06:00
dal f402f42c97
add api add metrics to collection 2025-03-19 23:45:09 -06:00
dal 67981732e1
merging update_sharing_body_refactor 2025-03-19 17:06:13 -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 4b4b5033f6
fix on lint errors on test 2025-03-19 16:04:31 -06:00
dal 09675f0705
created metrics sharing update 2025-03-19 14:54:42 -06:00
dal 709cff0483
sharing work 2025-03-19 14:22:05 -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