Commit Graph

1399 Commits

Author SHA1 Message Date
Nate Kelley 3fdab95a7d
add additional pages 2025-01-21 17:16:56 -07:00
Nate Kelley ac6abab27d
Refetch on team created for now 2025-01-21 17:10:40 -07:00
Nate Kelley d64374789c
better handling for create a permission group 2025-01-21 17:07:45 -07:00
Nate Kelley 010b483e63
add endpoints for dataset groups, and permission groups 2025-01-21 16:38:41 -07:00
Nate Kelley 717a9c635e
fix build errors 2025-01-21 16:28:43 -07:00
Nate Kelley d9c72f2ac4
clickable pills 2025-01-21 16:14:15 -07:00
Nate Kelley 67bc9bf002
add datasetgroup handler 2025-01-21 16:08:22 -07:00
Nate Kelley 3293a02a0b
lineage props passed 2025-01-21 15:46:12 -07:00
Nate Kelley a9902d59bf
assigned popup 2025-01-21 13:39:57 -07:00
Nate Kelley 4399130016
add team modal to teams 2025-01-21 12:45:26 -07:00
Nate Kelley 61e928714e
create a dataset modal added to user page 2025-01-21 12:14:39 -07:00
Nate Kelley 2273892fad
invalidate query if user id is present 2025-01-21 12:01:33 -07:00
Nate Kelley 395b1773e0
Add attributes and teams 2025-01-21 11:50:05 -07:00
Nate Kelley 78ffb7f8c5
assigned permissions 2025-01-21 11:27:21 -07:00
Nate Kelley 5f73f3727f
add list for datasets 2025-01-21 11:23:48 -07:00
Nate Kelley dccd1ee345
add listing for dataset groups 2025-01-21 11:17:55 -07:00
Nate Kelley 0381c9b04a
add listing for dataset groups 2025-01-21 11:06:37 -07:00
Nate Kelley 1c94f2ffd2
create permission group users 2025-01-21 10:45:05 -07:00
Nate Kelley 2be23179e1
add list components for permission settings 2025-01-21 10:23:44 -07:00
Nate Kelley 72c2c22d20
move files to match new page structure 2025-01-20 21:05:23 -07:00
Nate Kelley 4c5315f332
create permission user endpoints 2025-01-20 20:31:43 -07:00
Nate Kelley 64ebeddb6e
onchagne appsegmetned update 2025-01-20 17:01:10 -07:00
Nate Kelley db4188a410
pass last child as index 2025-01-20 16:37:16 -07:00
Nate Kelley e1a23a0656
popup conatiner for users 2025-01-20 16:11:49 -07:00
Nate Kelley 5d8a3a3337
normalize header for list 2025-01-20 16:08:08 -07:00
Nate Kelley 1d93aff922
add component for users inputs 2025-01-20 15:34:09 -07:00
Nate Kelley 6ba6fd87dd
pass through dataset overview 2025-01-20 15:11:42 -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 177b9cf9eb
add cursor rules for web directory + jest (#52) 2025-01-20 13:11:35 -08: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 e7f08f9997
Merge branch 'staging' into dallin/bus-920-feature-finish-rest-of-permissions 2025-01-17 09:47:08 -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 f1ee35b890
chore: add semvar version update (#42)
* added empty state text

* update permission group in the dataset

* Enhance dataset asset listing with organization-specific filtering

- Updated the `list_assets` function to include organization ID filtering in dataset permissions queries.
- Removed redundant organization ID filters from the dataset permissions queries to streamline the logic.
- Ensured that only relevant dataset assets are returned based on the user's organization, improving data security and relevance.

These changes enhance the API's ability to serve organization-specific data, aligning with recent improvements in dataset asset APIs.

* containerized class should be white with no border at bottom

* clear query when signing out

* Use correct endpoint for dataset groups

* yaml syntax highligting

* create dataset endpoints

* update disable logic for deploying a dataset

* Refactor user routes to include new endpoint for retrieving user by ID

- Removed the public modifier from `get_user` and `update_user` modules to encapsulate them within the module.
- Added a new route to the user router for fetching a user by their ID, enhancing the API's functionality.
- This change improves the user management capabilities by allowing retrieval of specific user details based on their unique identifier.

* Add organizations module and integrate with user routes

* remove unused imports and abstract variables

* Refactor user update functionality to support role changes

- Enhanced the `update_user` endpoint to accept and process user role updates alongside name changes.
- Introduced a new `UserResponse` struct for improved response handling.
- Updated the `update_user_handler` to handle changes in both user name and organization role, improving the flexibility of user management.
- Adjusted response type to return no content upon successful updates, aligning with RESTful practices.

These changes enhance the user management capabilities by allowing for more comprehensive updates to user information.

* Update user route to use ID parameter for updates

- Changed the user update route to require a user ID in the URL, enhancing RESTful practices.
- Updated the `update_user` function to extract the user ID from the path, ensuring the correct user is updated based on the provided ID.

These changes improve the clarity and functionality of the user update endpoint, aligning it with standard REST conventions.

* simplify hooks imports

* Remove unused component

* restructure folders for layout

* update imports for gloabl components

* add additional routes

* Implement user permission checks in dataset deployment and user update routes

- Added permission validation to the `deploy_datasets` and `post_dataset` functions to ensure only users with workspace admin or data admin roles can execute these actions.
- Enhanced error handling for permission checks, returning appropriate HTTP status codes and messages for insufficient permissions and internal errors.
- Updated imports to include the new security checks module for consistency across routes.

These changes improve security by enforcing role-based access control in critical dataset operations.

* Refactor user update route to enhance RESTful practices

- Updated the user update route to require a user ID in the URL, ensuring the correct user is updated based on the provided ID.
- Improved clarity and functionality of the `update_user` function by extracting the user ID from the path.

These changes align the user update endpoint with standard REST conventions, enhancing overall API usability.

* Enhance dataset listing functionality with user organization roles

- Refactored dataset listing logic to incorporate user organization roles, allowing for more granular access control based on user permissions.
- Introduced new role checks for `WorkspaceAdmin`, `DataAdmin`, `Querier`, `RestrictedQuerier`, and `Viewer` to determine dataset visibility.
- Updated database queries to fetch datasets based on user roles and organization associations, improving data retrieval efficiency.
- Removed deprecated functions and streamlined the dataset fetching process, ensuring clarity and maintainability in the codebase.

These changes improve the API's security and usability by enforcing role-based access control for dataset operations.

* tweaked the post thread permissions handle.

* permission_group string fix

* remove package.json

* fix: Add release please syntax handler and github action (#40)

* fix(buster): Add release please syntax handler and github action

* chore: add version tracking setup

fix: update

update nate rulez

---------

Co-authored-by: dal <dallin@buster.so>
2025-01-16 11:02:12 -08:00
Nate Kelley ea23904b92
remove package.json 2025-01-16 10:53:23 -07:00
dal 7b110a941c
Merge pull request #38 from buster-so/nate/BUS-918-consolidate-and-cleanup-imports
Consolidate and cleanup imports
2025-01-16 07:37:14 -08:00
Nate Kelley d8594d19d0
add additional routes 2025-01-15 12:20:45 -07:00
Nate Kelley 447ae12478
update imports for gloabl components 2025-01-15 12:03:18 -07:00
Nate Kelley fb68215330
Merge branch 'staging' into nate/BUS-918-consolidate-and-cleanup-imports 2025-01-15 11:52:17 -07:00
Nate Kelley f116c6a606
restructure folders for layout 2025-01-15 11:51:59 -07:00
Nate Kelley 588604c326
Remove unused component 2025-01-15 11:42:18 -07:00
Nate Kelley 1d340b214d
simplify hooks imports 2025-01-15 11:31:14 -07:00
Nate Kelley 2443ae688a
remove unused imports and abstract variables 2025-01-15 11:04:29 -07:00
Nate Kelley 58dc72b9ef
update disable logic for deploying a dataset 2025-01-14 13:04:24 -07:00
Nate Kelley 2812df14a1
create dataset endpoints 2025-01-14 12:53:54 -07:00
Nate Kelley 3104cace3c
yaml syntax highligting 2025-01-14 12:37:59 -07:00
Nate Kelley d893eee231
Use correct endpoint for dataset groups 2025-01-14 11:25:29 -07:00
Nate Kelley 97fcc9de04
clear query when signing out 2025-01-14 11:12:13 -07:00
Nate Kelley 6b0c516500
containerized class should be white with no border at bottom 2025-01-14 11:09:56 -07:00
Nate Kelley 307e4bbaf6
update permission group in the dataset 2025-01-14 10:56:05 -07:00
Nate Kelley 8887aa10dc
added empty state text 2025-01-14 09:08:21 -07:00
Nate Kelley 02fe9901df
remove unused dataset code 2025-01-10 20:53:21 -07:00
Nate Kelley 4696c10217
add user permission page 2025-01-10 16:36:15 -07:00
Nate Kelley 3c0d4366e9
dataset groups page 2025-01-10 15:54:39 -07:00
Nate Kelley bc5598c355
Create permission groups 2025-01-10 15:23:01 -07:00
Nate Kelley 1671c2d8fb
optimistic updates for assigning permission groups 2025-01-10 14:50:44 -07:00
Nate Kelley ae689150b3
search through lineage users 2025-01-10 13:38:39 -07:00
Nate Kelley ab3d205f6d
add loading indicator for fetching temp data 2025-01-10 11:03:14 -07:00
Nate Kelley c6de0e5bc8
Merge branch 'staging' into big-nate/bus-891-reorganize-and-redo-permissions-tabs 2025-01-10 10:33:49 -07:00
Nate Kelley 8f9b9aa8c0
Update ChartJSTheme.ts 2025-01-10 10:28:42 -07:00
Nate Kelley d96cb9ba68
querys for permissions 2025-01-10 10:05:38 -07:00
Nate Kelley ddaf4e9347
Run SQL response in a rest endpoint 2025-01-10 09:06:27 -07:00
Nate Kelley 586c2a98ec
Add meta data page 2025-01-09 16:03:27 -07:00
Nate Kelley 660bc1814e
server side rendering for 2025-01-09 15:41:57 -07:00
Nate Kelley 48b9fc2d81
Loading data updates 2025-01-09 14:00:40 -07:00
Nate Kelley 9e3a5088ed
Data grid is now in sql 2025-01-09 12:04:57 -07:00
Nate Kelley 9b7adb0102
fetch data functions updated 2025-01-09 10:42:16 -07:00
Nate Kelley d3946c27f8
add create endpoints 2025-01-09 10:30:15 -07:00
Nate Kelley a5dba50a4c
New endpoints for datasets 2025-01-09 09:46:16 -07:00
Nate Kelley 2663090d3b
Create dataset overview page 2025-01-08 17:32:55 -07:00
dal 62c7f1aabb
Merge pull request #24 from buster-so/dal/apis-for-permissions
Dal/apis-for-permissions
2025-01-08 15:53:59 -08:00
Nate Kelley 166afbea2b
updated header to match new format 2025-01-08 16:21:58 -07:00
Nate Kelley 7378a7b115
remove test pages 2025-01-08 16:05:15 -07:00
Nate Kelley 4dc10c3101
list dataset is in a react query 2025-01-08 16:02:41 -07:00
Nate Kelley 6d91a2202a
remove users and permission pages 2025-01-08 14:47:45 -07:00
Nate Kelley 20e3d75bb7
Merge remote-tracking branch 'origin/dal/apis-for-permissions' into big-nate/bus-891-reorganize-and-redo-permissions-tabs 2025-01-08 14:13:47 -07:00
Nate Kelley 583df005fa
Merge branch 'nate/docker-passthrough' into big-nate/bus-891-reorganize-and-redo-permissions-tabs 2025-01-08 14:11:21 -07:00
Nate Kelley 015cf056ba
Merge branch 'staging' into big-nate/bus-891-reorganize-and-redo-permissions-tabs 2025-01-08 14:08:55 -07:00
Nate Kelley a4a03acb42
Pass env to dockerfiles 2025-01-08 14:03:27 -07:00
dal d03815a02c Update database seed data and API routes for enhanced role management
- Changed the role of a user in the teams_to_users table from 'admin' to 'manager' for better role clarity.
- Refactored the users_to_organizations table to include a new 'status' field and updated multiple user roles to align with the new role structure (workspace_admin, querier, data_admin).
- Added a new permission_groups module to the API routes for improved permission management.
- Updated the security module to include a new checks module for enhanced security handling.
- Integrated dotenv in the Next.js configuration to manage environment variables more effectively.

These changes improve the clarity and functionality of user roles and permissions within the application.
2025-01-08 12:35:48 -07:00
Nate Kelley 541942f65f paginated query 2025-01-08 09:23:45 -07:00
dal a2ab3cb641 Remove package-lock.json and update Docker Compose commands for Redis integration
- Deleted the `package-lock.json` file from the root directory.
- Modified the `dev` target in the API Makefile to start Redis using Docker Compose from the parent directory, improving service orchestration.
- Updated the `next.config.mjs` to load environment variables from the parent directory during development.
- Added `dotenv` as a dependency in both `package.json` and `package-lock.json` to manage environment variables effectively.

These changes streamline the development setup and enhance the management of environment variables.
2025-01-07 22:44:13 -07:00
dal 4679adf04a Refactor Docker Compose and API configuration for improved service management
- Consolidated Redis service into the main `docker-compose.yml`, removing the separate API Docker Compose file.
- Added health checks for Redis and API services to ensure proper service readiness.
- Updated API router to include a public health check endpoint.
- Cleaned up the web Dockerfile by removing unnecessary environment variable copying.

These changes enhance service orchestration and improve the reliability of the application during development.
2025-01-07 16:20:59 -07:00
Nate Kelley 5f612fbcf7 dockerfile for web 2025-01-07 15:35:18 -07:00
Nate Kelley 5c20841bc1
Nate/general intergration testing (#17)
* pass width in different selectors

* tooltip updates

* add ability to disable tooltip

* pie minimum percentage must be passed down to legend update

* axis title must be truncated

* update to scatter with a

* scatter tooltip update

* scatter tooltip updates
2025-01-07 13:42:00 -08:00
Nate Kelley a30b102878 Update .gitignore
Update config.ts

Update config.ts
2025-01-06 13:45:11 -07:00
Nate Kelley 60558408b9 change access token 2025-01-06 13:04:55 -07:00
Nate Kelley fd45d11780 update prettier files 2025-01-06 12:43:40 -07:00
Nate Kelley 0302fb9a0c Initial web commit 🤙
Initial commit for all files and folder related to the web project
2025-01-06 11:29:29 -07:00