buster/api/migrations
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
..
2024-06-03-034617_create_organizations Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-034618_create_users Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-034619_create_users_to_organizations Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-035237_create_api_keys Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-040003_create_teams Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-040138_create_teams_to_users Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-220858_create_data_sources Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-221241_create_datasets Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-221610_create_permission_groups Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-221828_create_datasets_to_permission_groups Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-222323_create_terms Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-223319_create_collections Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-223320_create_dashboards Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-223321_create_threads Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-223322_create_messages Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-03-224321_create_dashboard_versions Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-07-180843_create_dataset_columns Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-06-18-230440_create_threads_to_dashboards Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-07-08-175008_create_asset_permissions Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-07-08-175124_create_collections_to_assets Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-07-08-175134_permission_groups_to_identities Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-07-23-214547_create_user_favorites Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-07-24-194453_create_terms_to_datasets Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-08-06-220651_webhook_functions Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-08-09-224447_auth_user_creation Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-08-12-173526_cron_to_delete_anon_users Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-08-16-170337_stored_values_on_dataset_columns Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-11-14-155519_add_organization_id_to_thread Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-11-19-195358_add_entity_relationship_table Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-11-26-141715_add_env_to_data_sources Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-11-26-151750_add_unique_constraint_to_data_sources Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-11-26-170536_semantic_attributes Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-12-17-180014_sql_evaluations_table Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-12-20-203412_asset_search Brought in the bi-api 2025-01-03 14:32:54 -07:00
2024-12-23-200017_terms_search Brought in the bi-api 2025-01-03 14:32:54 -07:00
2025-01-01-212411_drop_webhooks_for_typesense Brought in the bi-api 2025-01-03 14:32:54 -07:00
2025-01-08-163102_add_dataset_groups_adjust_teams_adjust_permissions Update team role handling in migration script to include 'admin' as 'manager' and default to 'member' 2025-01-09 17:35:54 -07:00
2025-01-09-044455_add_yaml_field_for_datasets Add yml_file field to Dataset model and related API structures 2025-01-08 22:33:14 -07:00
2025-01-09-183703_add_unique_constraint_on_datasets Refactor dataset deployment logic and enforce unique constraints 2025-01-09 13:05:54 -07:00
2025-01-16-154339_rls_policies_on_new_tables chore: add semvar version update (#42) 2025-01-16 11:02:12 -08:00