dal
4bef4205f3
feat(access-controls): migrate Rust access control libraries to TypeScript
...
This PR migrates the Rust and libraries to TypeScript in the new package.
## Changes
### New Access Controls Package
- Implemented complete asset permissions system with CRUD operations
- Added dataset permissions with all 5 access paths (admin, direct user, user→group, team→direct, team→group, org→default)
- Implemented cascading permissions (metrics inherit from dashboards/chats/collections)
- Added LRU caching to replace Redis (30-second TTL)
- Comprehensive test coverage (148 tests passing, 3 skipped pending createUser)
### Database Package Updates
- Fixed AssetType enum to include all 14 asset types
- Added missing database queries for permissions
- Fixed timestamp fields to use ISO strings
- Added getUserOrganizationsByUserId function
- Created organized query structure by table
### AI Package Updates
- Updated getPermissionedDatasets API calls to new format
- Changed property references from ymlFile to ymlContent
- Fixed all test mocks to match new API structure
### Trigger App Updates
- Updated to use new access controls API
- Fixed test mocks to match DatasetListResult structure
- Added proper type imports
### Server Shared Updates
- Added request/response types for access control endpoints
- Exported types for API consistency
## Testing
- All packages build successfully with turbo build:dry-run
- All tests pass with turbo test:unit
- Full type safety maintained throughout
## Migration Notes
- Drop-in replacement for Rust libraries
- Same permission model and roles
- Cache invalidation strategies implemented
- Soft delete pattern maintained
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 10:17:35 -06:00
Nate Kelley
9acc244b2e
Merge branch 'staging' into big-nate/bus-1521-couple-bugz-with-three-dot-menu
2025-07-26 10:23:52 -06:00
Nate Kelley
1608547a3e
Merge branch 'big-nate/bus-1521-couple-bugz-with-three-dot-menu' of https://github.com/buster-so/buster into big-nate/bus-1521-couple-bugz-with-three-dot-menu
2025-07-26 10:23:39 -06:00
Nate Kelley
6a507bd7ff
rename should navigate to different page
2025-07-26 10:23:36 -06:00
Nate Kelley
7b8cbc6213
Merge pull request #631 from buster-so/big-nate/bus-1521-couple-bugz-with-three-dot-menu
...
Fix save to collection dropdown
2025-07-26 10:06:13 -06:00
Nate Kelley
1653ae5af4
Update apps/web/src/layouts/ChatLayout/FileContainer/FileContainerHeader/DashboardContainerHeaderButtons/DashboardThreeDotMenu.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-26 10:05:07 -06:00
Nate Kelley
f3944a6dea
fix bug causing dashboard add menu to flicker
2025-07-26 10:03:28 -06:00
dal
3e821f5609
Merge pull request #633 from buster-so/dallin/should-be-able-to-turbo-build-lint-test-unit-without-env-vars
...
Dallin/should-be-able-to-turbo-build-lint-test-unit-without-env-vars
2025-07-25 18:38:40 -06:00
dal
2833c6bb0c
dry run
2025-07-25 18:29:35 -06:00
dal
168da8a640
Merge pull request #632 from buster-so/dallin/minor-ui-tweaks-and-fixes
...
Hide filters for now
2025-07-25 17:07:47 -06:00
Nate Kelley
2ba9044d13
Invalidation after add to dashboard
2025-07-25 16:49:45 -06:00
dal
45c2846b9b
hiding filters for now since we're noticing LLM isn't ready.
2025-07-25 16:33:33 -06:00
Nate Kelley
ac6b63bd6d
close on select false for favorites
2025-07-25 16:30:26 -06:00
Nate Kelley
2a0b727e17
Made icon bigger for dropdown
2025-07-25 16:16:58 -06:00
Nate Kelley
efa289fe4d
Fix save to collection dropdown
2025-07-25 16:13:35 -06:00
Nate Kelley
850dc2577b
Memoized props should alwasy rerender
2025-07-25 15:47:13 -06:00
Nate Kelley
e6d4628a5f
Remove "mode" from followup
...
Removed mode from followup asset content. It was logically impossible to have a mode with a metric. Falling back to just asset type.
2025-07-25 15:35:04 -06:00
dal
14fe8d0712
icon is now black when importing assets
2025-07-25 14:57:46 -06:00
dal
1f52bd9b69
Enhance asset chat handling by introducing `handleAssetChatWithPrompt` for processing user prompts alongside asset imports. Update `createChatHandler` to manage asset-only and asset+prompt scenarios, ensuring correct message order and preventing unnecessary analyst task triggers. Add tests for new functionality and refactor related services for improved clarity and maintainability.
2025-07-25 12:47:01 -06:00
Nate Kelley
2df53404d1
Merge pull request #627 from buster-so/devin/BUS-1494-1753276227
...
Front end - asset document titles
2025-07-24 18:18:38 -06:00
Nate Kelley
1d646c003d
Update request to use v2
2025-07-24 18:15:43 -06:00
Nate Kelley
0c6271f5c9
title generations
2025-07-24 18:09:18 -06:00
Nate Kelley
55679b9d19
Make request
2025-07-24 17:54:55 -06:00
Nate Kelley
633a77e2ef
Merge pull request #603 from buster-so/devin/BUS-1494-1753276227
...
Implement /api/v2/title endpoint for asset title retrieval (BUS-1494)
2025-07-24 17:43:41 -06:00
Nate Kelley
5e6eb76f5b
move get asset types around
2025-07-24 17:41:36 -06:00
Nate Kelley
b2cf1725fc
Merge branch 'staging' into devin/BUS-1494-1753276227
2025-07-24 17:21:04 -06:00
Nate Kelley
bcf6aac85d
Update code to scale down slightly
2025-07-24 17:03:25 -06:00
Nate Kelley
a397cda878
Update chat-helpers.test.ts
2025-07-24 16:59:19 -06:00
Nate Kelley
09e0e3ec84
On success callback updated
2025-07-24 16:56:34 -06:00
Nate Kelley
d134883db0
default markdown should use strip formatting, also not use llm output for blocks
2025-07-24 15:24:45 -06:00
Devin AI
ccd8e1eab8
Add comprehensive unit tests for handleExistingChat message ordering
...
- Test prepending new messages to maintain descending order (newest first)
- Verify message_ids array reflects correct chronological order
- Cover edge cases: multiple messages, single message, empty messages
- Prevent future regressions in message ordering logic
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-24 18:11:06 +00:00
Devin AI
2ecf0a05fb
Fix chat message ordering bug in handleExistingChat
...
- Prepend new message instead of appending to maintain descending order
- Fixes BUS-1486: Message order reversal when adding follow-up messages
- getMessagesForChat returns newest-first, so new messages should be prepended
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-24 18:01:34 +00:00
dal
19f7256a27
switch system messages to leverage caching a bit better
2025-07-24 10:06:18 -06:00
dal
8104ad33bf
fix the stream component so it can build
2025-07-24 09:49:05 -06:00
dal
0c3994da00
hotfix: use v2 on chats
2025-07-24 09:22:30 -06:00
Nate Kelley
00ff79c593
Assumption cards can use markdown streaming
2025-07-23 23:22:31 -06:00
Nate Kelley
b08938e0fb
Merge pull request #616 from buster-so/devin/BUS-1522-1753312324
...
Replace Paragraph with AppMarkdownStreaming in confidence score modal
2025-07-23 23:17:22 -06:00
Nate Kelley
d381cc8d44
make the code inline a little smaller
2025-07-23 23:16:08 -06:00
Nate Kelley
6938f569df
Update MetricItemCardThreeDotMenu.tsx
2025-07-23 23:09:58 -06:00
Nate Kelley
5db3e7652e
Merge branch 'big-nate/bus-1483-quick-win-for-filter-dashboard-drill-downexplore-metric' of https://github.com/buster-so/buster into big-nate/bus-1483-quick-win-for-filter-dashboard-drill-downexplore-metric
2025-07-23 23:09:09 -06:00
Nate Kelley
9b99236fa9
fix function name
2025-07-23 23:09:07 -06:00
Nate Kelley
ebd0dc4086
Update apps/web/src/components/ui/card/InputCard.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-23 23:08:40 -06:00
Nate Kelley
ff8fef6d1f
Update apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-23 23:08:31 -06:00
Nate Kelley
1fa4ea73e7
Update apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-23 23:08:25 -06:00
Nate Kelley
5e354e8558
Update apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-23 23:08:17 -06:00
Nate Kelley
4ba8b69ca4
Update apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-23 23:07:32 -06:00
Nate Kelley
e2eefbda68
Update tests
2025-07-23 23:06:45 -06:00
Nate Kelley
af090d467e
fix tests
2025-07-23 22:53:54 -06:00
Nate Kelley
e6d4062847
Merge branch 'staging' into big-nate/bus-1483-quick-win-for-filter-dashboard-drill-downexplore-metric
2025-07-23 22:45:54 -06:00
Nate Kelley
25342b79b3
Fix flickering bug
2025-07-23 22:43:40 -06:00