Commit Graph

5461 Commits

Author SHA1 Message Date
dal 94be56e042
feat: Refactor dataset listing to include user-specific permissions
- Updated the `list_datasets` function to accept an additional `id` parameter for filtering datasets based on user permissions.
- Enhanced the SQL query to join with the `dataset_permissions` table, allowing retrieval of permission details for each dataset.
- Refactored the `DatasetInfo` struct to include an `assigned` field, improving clarity in the dataset representation.
- Improved error handling for dataset retrieval, ensuring robust logging and response management.
2025-01-20 15:47:01 -07:00
dal df231a81d9
feat: Update dataset group listing to include dataset group permissions
- Modified the `list_dataset_groups` function to accept an additional `id` parameter for filtering dataset groups based on user permissions.
- Updated the SQL query to join with the `dataset_groups_permissions` table, allowing retrieval of permission counts for each dataset group.
- Refactored the `DatasetGroupInfo` struct to replace `permission_id` with `permission_count`, enhancing clarity and accuracy in the data representation.
- Ensured that the query groups by the new permission structure, improving the functionality and security of dataset group listings.
2025-01-20 15:40:50 -07:00
Nate Kelley 1d93aff922
add component for users inputs 2025-01-20 15:34:09 -07:00
dal b9b5146299
feat: Add DatasetGroupPermission model and schema
- Introduced a new `DatasetGroupPermission` struct in `models.rs` to represent permissions associated with dataset groups.
- Updated the database schema in `schema.rs` to include the `dataset_groups_permissions` table, defining its structure and relationships.
- Modified the `is_user_workspace_admin_or_data_admin` function in `checks.rs` to correctly reference the user's organization role, enhancing role validation logic.
2025-01-20 15:24:34 -07:00
dal c4c7b75306
feat: Update dataset group listing to include permissions
- Enhanced the `list_dataset_groups` function to join with the `dataset_permissions` table, allowing retrieval of permission details for each dataset group.
- Modified the `DatasetGroupInfo` struct to include `permission_id` and `assigned` fields, reflecting the new data structure.
- Refactored the SQL query to group by necessary fields and ensure accurate permission data is returned, improving the functionality and security of dataset group listings.
2025-01-20 15:12:32 -07:00
Nate Kelley 08c9a8e8f4
Merge branch 'dallin/bus-920-feature-finish-rest-of-permissions' of https://github.com/buster-so/buster into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-20 15:11:44 -07:00
Nate Kelley 6ba6fd87dd
pass through dataset overview 2025-01-20 15:11:42 -07:00
dal 040bdfbab5
feat: Enhance user attribute listing with authorization checks
- Updated the `list_attributes_handler` to include authorization checks for user roles and organization IDs.
- Implemented error handling for unauthorized access to user attributes.
- Refactored the SQL query to retrieve user attributes based on the authenticated user's organization, improving security and data integrity.
- This change ensures that only authorized users can list attributes, enhancing the overall security of the API.
2025-01-20 14:47:38 -07:00
dal 3bc148927f
feat: Add assets module and nest routes in user router
- Introduced a new `assets` module to handle asset-related routes.
- Updated the user router to nest the `assets` routes under the user ID path, enhancing the organization of API endpoints.
- This change improves the structure and maintainability of the user-related routes in the API.
2025-01-20 14:41:31 -07:00
Nate Kelley bca5055ca9
PRevent clicking passthrough on users click 2025-01-20 14:28:44 -07:00
Nate Kelley fe723a40d3
on change update for segments 2025-01-20 14:26:10 -07:00
Nate Kelley acafc5a025
Merge branch 'staging' into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-20 14:14:11 -07:00
Nate Kelley d2f27d10bf
Merge pull request #53 from buster-so/big-nate/bus-924-make-additional-permissions-pages
Big nate/bus 924 make additional permissions pages
2025-01-20 13:13:31 -08:00
Nate Kelley 177b9cf9eb
add cursor rules for web directory + jest (#52) 2025-01-20 13:11:35 -08:00
dal fdbf24e456
Refactor SQL query in list_assets_handler to use a Common Table Expression (CTE) for improved readability and maintainability. The CTE, `distinct_assets`, simplifies the selection of distinct asset records before applying the final ordering and limiting. 2025-01-20 13:01:02 -07:00
Nate Kelley 7408b72f0c
start user dataset lineage
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 22:08:21 -07:00
Nate Kelley 165a0e0bad
infinite list component
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 21:47:29 -07:00
Nate Kelley aad1eb6968
change how padding is applied to list
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 21:10:49 -07:00
Nate Kelley bf1012cf8b
make pages unique
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 20:44:59 -07:00
Nate Kelley db7d98ec9a
add additional bulk popup menus
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 12:12:43 -07:00
Nate Kelley 58fa171a8e
more elegant infinite list component
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 11:41:18 -07:00
Nate Kelley 221a4a6280
finalize permission popup
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 10:50:10 -07:00
Nate Kelley 43c96cbb09
Merge branch 'staging' into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-17 09:57:57 -07:00
Nate Kelley 7d83163d78
Big nate/bus 924 make additional permissions pages (#50)
* create virtua list component

* only debounce if there is text

* prefetch on demand

* add a popup for permissions

* Update web/src/components/list/BusterList/BusterListReactWindow.tsx

Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 08:57:24 -08:00
Nate Kelley 48436e5c18
Update web/src/components/list/BusterList/BusterListReactWindow.tsx
Co-Authored-By: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-17 09:56:35 -07:00
Nate Kelley 855ca2ee87
Merge branch 'staging' into big-nate/bus-924-make-additional-permissions-pages 2025-01-17 09:52:05 -07:00
Nate Kelley e7f08f9997
Merge branch 'staging' into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-17 09:47:08 -07:00
Nate Kelley 7dd102a06f
Merge branch 'staging' into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-17 09:46:23 -07:00
Nate Kelley e5f8e4fb63
Make users page (#39)
* create users pages

* abstract more components to correct folders

* carve out expection if we are hiding the select all

* user query

* Add ability to change default access

* Update package-lock.json

* Update package-lock.json
2025-01-17 08:46:13 -08:00
Nate Kelley cbaa73046d
update package versions 2025-01-17 09:31:47 -07:00
Nate Kelley 7e9daac477
add a popup for permissions 2025-01-16 17:24:15 -07:00
Nate Kelley 33bcd9f34e
prefetch on demand 2025-01-16 16:43:04 -07:00
Nate Kelley 30c2ec5af6
only debounce if there is text 2025-01-16 16:23:42 -07:00
Nate Kelley ad142630d3
create virtua list component 2025-01-16 16:20:52 -07:00
Nate Kelley 1bdf41a063
Merge branch 'main' into staging 2025-01-16 15:10:11 -07:00
github-actions[bot] 6ae81cf978 chore(release): update version to 0.0.6 2025-01-16 22:09:23 +00:00
Nate Kelley f5069022cf
Merge branch 'main' of https://github.com/buster-so/buster 2025-01-16 15:08:57 -07:00
Nate Kelley 5b0e221738
fix: stablize versioning 2025-01-16 15:08:47 -07:00
github-actions[bot] 928d1c34af chore(release): update version to 0.0.5 2025-01-16 22:06:40 +00:00
github-actions[bot] df8940fd0b chore(release): update version to 0.0.4 2025-01-16 22:06:29 +00:00
github-actions[bot] 7caaa97f17 chore(release): update version to 0.0.3 2025-01-16 22:06:18 +00:00
github-actions[bot] e31f702c28 chore(release): update version to 0.0.2 2025-01-16 22:06:06 +00:00
Nate Kelley 69fc912dbb
Merge branch 'main' of https://github.com/buster-so/buster 2025-01-16 15:05:43 -07:00
Nate Kelley 3016e16afb
fix: update the prerelease logic 2025-01-16 15:05:19 -07:00
github-actions[bot] 7cf0645ce9 chore(release): update version to 2025-01-16 21:58:51 +00:00
Nate Kelley d6e6f41165
fix: update the prerelease logic 2025-01-16 14:57:59 -07:00
Nate Kelley 500e5ddc31
Merge branch 'main' of https://github.com/buster-so/buster 2025-01-16 14:53:46 -07:00
Nate Kelley 6a67afe5cb
fix: use a node pipeline 2025-01-16 14:53:09 -07:00
github-actions[bot] 75841b1c73 chore(release): update version to 2025-01-16 21:50:46 +00:00
Nate Kelley 8a3a36e63b
fix: use a node pipeline 2025-01-16 14:50:29 -07:00