Commit Graph

354 Commits

Author SHA1 Message Date
Nate Kelley ee8cce71f8
Add additional error handling for endpoint 2025-07-17 12:06:57 -06:00
Nate Kelley e55632e074
initial commits for update org 2025-07-17 11:41:31 -06:00
Nate Kelley b1e7f7cfc1
Fix test db util type 2025-07-17 10:53:01 -06:00
Nate Kelley f725ef9386
add avatar urls to the share 2025-07-17 10:50:49 -06:00
dal 3d6c7549bd
Merge pull request #529 from buster-so/devin/BUS-1415-1752766195
Filter out stale asset import chats from GET /chats and /logs endpoints
2025-07-17 09:24:33 -07:00
Devin AI ea083784bc Fix Diesel subquery compilation errors - use exists() and raw SQL for message filtering
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 16:21:13 +00:00
dal 308c87b202
Implement chat access checks for metrics and dashboards
- Added functions to check if a user has access to metrics and dashboards through associated chats.
- Updated permission handling in `get_metric_data_handler`, `get_metric_for_dashboard_handler`, and `get_metric_handler` to include chat access checks.
- Enhanced error handling for cases where users lack access to both dashboards and chats.
- Updated `asset_access_checks` to include new chat access functions and modified the public interface in `lib.rs` accordingly.
2025-07-17 10:07:58 -06:00
Devin AI 152825758b Filter out stale asset import chats from GET /chats and /logs endpoints
- Add subqueries to count user messages (non-null request_message) and total messages per chat
- Filter out chats with zero user messages AND only one total message
- This excludes auto-generated asset import chats that users never interacted with
- Applied same filtering logic to both list_chats_handler.rs and list_logs_handler.rs

Fixes BUS-1415

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 15:31:36 +00:00
dal ec2a630496
Merge pull request #528 from buster-so/devin/BUS-1423-1752764045
Fix error handling for workspace access issues in GET /chats/:id
2025-07-17 08:06:03 -07:00
Devin AI 22415d36c0 Fix error handling for workspace access issues in GET /chats/:id
- Return 412 PRECONDITION_FAILED for permission/workspace access errors
- Return 404 NOT_FOUND for chat not found errors
- Keep 500 INTERNAL_SERVER_ERROR as fallback for other errors
- Addresses BUS-1423

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 14:54:57 +00:00
Nate Kelley 06d8c1e568
Merge pull request #527 from buster-so/big-nate/bus-1420-add-searchable-menu-to-share-dropdowns
add searchable menu to share dropdowns
2025-07-16 23:48:44 -06:00
Nate Kelley 0be0744bd0
share update 2025-07-16 23:46:34 -06:00
Nate Kelley 80d2c88d90
debounce input a little bit 2025-07-16 23:15:58 -06:00
Nate Kelley a24779d40f
Query request in line 2025-07-16 23:01:49 -06:00
dal bcaa133059
Enhance Slack agent task with no message handling and increase max duration
- Updated maxDuration to 600 seconds to align with analyst agent task.
- Added logic to handle cases where no messages are found, sending a direct response to Slack and updating message reactions accordingly.
- Improved type safety in SlackSharingPermissions component by defining a specific type for sharing permissions.
2025-07-16 17:37:17 -06:00
dal a3ecb5a1a5
Update apps/server/src/api/v2/slack/events.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 16:23:04 -07:00
dal b9ad7552fa
Update apps/server/src/api/v2/slack/services/slack-helpers.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 16:16:27 -07:00
Nate Kelley 969fdc6b18
Create share menu invite 2025-07-16 17:12:28 -06:00
dal f74e656a1b
refactor SlackSharingPermissions component for improved layout and styling 2025-07-16 17:07:43 -06:00
Nate Kelley 50d6e7a929
select input update 2025-07-16 17:04:38 -06:00
dal da380485d9
added in the slack auto-sharing functionality 2025-07-16 16:54:09 -06:00
Nate Kelley 681f60a370
keyboard shortcuts are back 2025-07-16 16:33:34 -06:00
Nate Kelley fef5809cef
select async function 2025-07-16 16:07:48 -06:00
Nate Kelley fa5ab30abf
transform select update 2025-07-16 15:35:16 -06:00
Nate Kelley 520e183231
update elements 2025-07-16 15:27:38 -06:00
dal 8221bca8de
react appropriately 2025-07-16 14:50:26 -06:00
Nate Kelley bc5b0e4f84
update select 2025-07-16 14:48:33 -06:00
dal 26f196c77d
unauthorized message send back as reply 2025-07-16 14:05:35 -06:00
dal 28a5d65777
Merge remote-tracking branch 'origin/staging' into dallin/bus-1363-slack-agent-query-buster-from-slack-direct-query 2025-07-16 13:58:13 -06:00
dal 86572acfa4
slack agent react 2025-07-16 13:58:03 -06:00
dal a20c8dad56
pass up userId 2025-07-16 13:22:43 -06:00
Nate Kelley 4fdcdc4573
increase min width panel 2025-07-16 13:21:18 -06:00
dal 6b01f2f97a
change to slack-agent-task 2025-07-16 13:16:10 -06:00
Nate Kelley d099b39feb
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 13:15:42 -06:00
Nate Kelley 410be132b5
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 13:15:32 -06:00
Nate Kelley 32a0b84eeb
better logging for auth 2025-07-16 13:09:30 -06:00
dal e2d1d32089
correct enums on the events chat creation 2025-07-16 13:09:07 -06:00
Nate Kelley b1ac8b51b3
supabase auth on front end 2025-07-16 13:03:58 -06:00
dal d4f216cb66
Merge remote-tracking branch 'origin/staging' into dallin/bus-1363-slack-agent-query-buster-from-slack-direct-query 2025-07-16 12:54:18 -06:00
dal 36f2f04810
Merge pull request #522 from buster-so/dallin/bus-1429-issue-with-sharing-dashboard-showing-only-one-metric
Dallin/bus-1429-issue-with-sharing-dashboard-showing-only-one-metric
2025-07-16 11:25:37 -07:00
dal 7cee45916d
cascading permissions from dash to metrics 2025-07-16 12:22:04 -06:00
Nate Kelley 14e63fb278
flush sync for access token + additional logging 2025-07-16 12:08:35 -06:00
dal 1e2e031240
slack info from user 2025-07-16 11:56:11 -06:00
Nate Kelley d00313131e
Add additional logging for session error 2025-07-16 11:42:47 -06:00
Nate Kelley 96d6aeb5ad
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 11:31:40 -06:00
Nate Kelley f9252ce149
Update apps/server/src/api/v2/users/index.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 11:29:31 -06:00
Nate Kelley b12b7830c5
Rip out can filter option 2025-07-16 11:27:14 -06:00
Nate Kelley 47029669a3
move out magic values to constants 2025-07-16 11:24:23 -06:00
Nate Kelley abcb500d5f
correct get container size 2025-07-16 11:17:05 -06:00
Nate Kelley 330cc4b7c6
remove console logs 2025-07-16 10:49:26 -06:00