Commit Graph

83 Commits

Author SHA1 Message Date
dal adb9861bb9
Merge pull request #19 from buster-so/dal/buster-docker
Dal/buster-docker
2025-01-07 21:46:42 -08:00
dal 73822945bf Refactor Docker Compose and API for enhanced functionality and migration support
- Simplified the API service build configuration in `docker-compose.yml` by consolidating the build context and Dockerfile path.
- Added `diesel_migrations` dependency to `Cargo.toml` for database migration management.
- Implemented database migration logic in `main.rs`, including error handling and logging for migration success or failure.
- Introduced a new mail service in `supabase/docker-compose.yml` for handling SMTP, POP3, and web interface.
- Removed version specification from `supabase/dev/docker-compose.dev.yml` for cleaner configuration.

These changes improve the overall structure and functionality of the application, facilitating better database management and service orchestration.
2025-01-07 22:21:28 -07:00
dal bb8fd621c9 Update .env.example to change SITE_URL and STUDIO_PORT for local development
- Modified SITE_URL from http://localhost:3000 to http://localhost:3003 to reflect the new local server configuration.
- Updated STUDIO_PORT from 3000 to 3003 to align with the updated local development environment.

These changes ensure consistency in the local development setup and prevent port conflicts.
2025-01-07 16:40:08 -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
dal 176d5eb06b Refactor Docker Compose and API Dockerfile for improved environment handling
- Removed version specification from `docker-compose.yml` for simplicity.
- Eliminated the `env_file` directive in the `web` service to streamline environment variable management.
- Updated the `Dockerfile` for the API to conditionally copy SSL certificates based on the environment, enhancing flexibility for local and production setups.

These changes aim to simplify the configuration and improve the development workflow.
2025-01-07 15:43:31 -07:00
Nate Kelley f88288cc55 Update compose to use web builder 2025-01-07 15:37:31 -07:00
Nate Kelley 5f612fbcf7 dockerfile for web 2025-01-07 15:35:18 -07:00
dal 11b4b929c0 Notes on env.example 2025-01-07 15:13:37 -07:00
dal 6b69339c79 Update environment configuration files
- Expanded `.env.example` with additional environment variables for local development, including AWS credentials, database connection strings, and API keys.
- Removed the `api/.env.example` file as its contents have been consolidated into the main `.env.example`.

These changes enhance the local development setup by providing a comprehensive example of required environment variables.
2025-01-07 15:11:53 -07:00
dal fb77e66fe6 Refactor Docker Compose setup and improve REST router configuration
- Updated `docker-compose.yml` to streamline environment variable management using `.env`.
- Temporarily disabled the `postgres` service for cleaner development.
- Enhanced the `rest` service configuration for better integration with Nessie, including updated image and port mappings.
- Cleaned up unused imports in `post_datasets.rs` to improve code readability.

These changes enhance the development environment and prepare for future integrations.
2025-01-07 14:59:54 -07:00
dal caf43ace7f Merge remote-tracking branch 'origin/staging' into dal/buster-docker 2025-01-07 14:44:30 -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
dal cd64ab847b Refactor Docker Compose setup and clean up REST router
- Updated `docker-compose.yml` to use `.env` for environment variables and modified the `rest` service configuration for the Nessie integration.
- Temporarily disabled the `postgres` service by commenting it out.
- Removed unused imports in `post_datasets.rs` to enhance code readability and maintainability.

These changes streamline the development environment and improve code quality.
2025-01-07 08:32:15 -07:00
dal 95536bb13f
Merge pull request #15 from buster-so/dal/bugfix-update-messages
Refactor permission handling in get_message_with_permission function
2025-01-06 14:22:30 -08:00
dal a7ae1b1dfd Refactor permission handling in get_message_with_permission function
- Updated the logic to determine final_permission by checking if permission is Some, simplifying the condition.
- Improved error handling for non-public threads when no permissions are provided.
2025-01-06 15:21:37 -07:00
dal b30801542d Refactor Docker Compose configuration for warehouse services
- Updated the `docker-compose.yml` file to change the environment file path for services to use `.env` instead of `../.env`.
- Commented out the `postgres` service configuration to disable it temporarily.
- Updated the `rest` service to use the `ghcr.io/projectnessie/nessie` image, changed the container name to `nessie`, and modified the port mapping from `8181` to `19120`.
- Adjusted environment variables for the `rest` service to align with the new Nessie configuration.

These changes streamline the setup for the warehouse services and prepare for the integration of Nessie.
2025-01-06 15:17:04 -07:00
dal c77018abbd Add 'Created' variant to ApiResponse enum in REST router 2025-01-06 13:47:32 -07:00
Nate Kelley ca7a94473d Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-01-06 13:45:18 -07:00
Nate Kelley a30b102878 Update .gitignore
Update config.ts

Update config.ts
2025-01-06 13:45:11 -07:00
dal a076f2586f Remove unused ApiResponse variant 'Created' in the REST router 2025-01-06 13:41:19 -07:00
Nate Kelley e859ee4eff Update .gitignore
Update config.ts

Update config.ts
2025-01-06 13:29:26 -07:00
Nate Kelley 515ef0ebeb Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-01-06 13:05:02 -07:00
Nate Kelley 60558408b9 change access token 2025-01-06 13:04:55 -07:00
dal 20c37b7000 Refactor dataset route by removing unused imports
- Removed unused imports for `serde_json` and `tokio::task::JoinSet` in the `post_datasets.rs` file.
- This cleanup improves code readability and reduces unnecessary dependencies.
2025-01-06 13:03:34 -07:00
dal 5ccd8ddd72 Log error when failing to retrieve user organization ID in get_asset_access route 2025-01-06 13:00:01 -07:00
Nate Kelley 786874545e Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-01-06 12:43:42 -07:00
Nate Kelley fd45d11780 update prettier files 2025-01-06 12:43:40 -07:00
dal 855bc6bc99
Merge pull request #14 from buster-so/dal/actions-workflows
Enhance GitHub Actions workflows and Dependabot configuration
2025-01-06 11:11:39 -08:00
dal f7bb098ba9 Enhance GitHub Actions workflows and Dependabot configuration
- Added new Dependabot configurations for npm packages in the /api and /web directories, scheduled for weekly updates with a limit of 10 open pull requests.
- Updated the GitHub Actions workflows for both main and staging deployments to trigger on changes within the api directory, specifically for migrations, improving deployment reliability.

These changes streamline dependency management and enhance the deployment process for the application.
2025-01-06 12:10:42 -07:00
dal 5f2c72fbf6
Merge pull request #9 from buster-so/nate/initial-web-commit
Initial Web Commit
2025-01-06 10:32:48 -08: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
dal c5d3e34fde
Merge pull request #8 from buster-so/porter-stack-main-862aaabf
Enable Porter Application main
2025-01-03 15:52:52 -08:00
dal 488bc596dc Refactor GitHub Actions workflow for enhanced deployment process
- Added a new job for database deployment, including steps for installing Rust, configuring AWS credentials, downloading the Postgres certificate from S3, and running migrations.
- Updated the existing porter-deploy job to include AWS credentials configuration and SSL certificate download from S3.
- Improved organization and reliability of the deployment process by ensuring all steps are correctly defined and executed in the appropriate context.

These changes streamline the deployment workflow and enhance the overall reliability of the application deployment process.
2025-01-03 16:49:28 -07:00
porter-deployment-app[bot] a34312f64f
Create porter_app_main_3155.yml file 2025-01-03 23:46:52 +00:00
dal 44af558fa9
Merge pull request #7 from buster-so/staging
Staging
2025-01-03 15:40:55 -08:00
dal c23ca4c36e Update GitHub Actions workflow to set working directory for migrations
- Added a working-directory specification for the 'Run migrations' step in the GitHub Actions workflow, ensuring that Diesel migrations are executed in the correct context within the './api' directory. This change enhances the reliability of the migration process during deployment.
2025-01-03 16:39:26 -07:00
dal 501b8031a4 Update GitHub Actions workflow to use new S3 URL for Postgres SSL certificate
- Changed the S3 URL variable for downloading the Postgres SSL certificate in the GitHub Actions workflow from `PG_CERT_S3_URL` to `CERT_S3_URL`.
- This update ensures the workflow correctly references the updated secret for SSL certificate retrieval, improving the reliability of the deployment process.
2025-01-03 16:29:21 -07:00
dal 5f6792484a Enhance GitHub Actions workflow and Dockerfile for SSL certificate management
- Added steps to configure AWS credentials and download the Postgres SSL certificate from S3 in the GitHub Actions workflow.
- Updated the Dockerfile to reflect the new path for the SSL certificate, ensuring it is correctly copied to the container.

These changes improve the security and organization of SSL certificate handling during the deployment process.
2025-01-03 16:25:39 -07:00
dal 0ef11c1971 Update SSL certificate handling in GitHub Actions workflow and Dockerfile
- Changed the directory structure for SSL certificates in the GitHub Actions workflow, creating a new path `certs/cert` for better organization.
- Updated the Dockerfile to reference the new certificate path, ensuring the SSL certificate is correctly installed in the container.

These changes improve the clarity and maintainability of the deployment process.
2025-01-03 16:19:02 -07:00
dal 11ee658d39 Fix Ubuntu version format in GitHub Actions workflow for staging deployment 2025-01-03 16:18:07 -07:00
dal 78da6550d1 Fix GitHub Actions workflow configuration for staging deployment
- Updated the runner specification for the database-deploy job to correct the Ubuntu version format.
- Ensured consistency in the runner configuration for the porter-deploy job by reverting to the previous Ubuntu version.

These changes enhance the accuracy of the workflow configuration, ensuring proper execution of deployment jobs.
2025-01-03 16:17:24 -07:00
dal 31bfaaeecf Update GitHub Actions workflow and Dockerfile for SSL certificate handling
- Added steps to create a directory for SSL certificates and copy the downloaded certificate to the new location in the GitHub Actions workflow.
- Updated the Dockerfile to reference the new certificate path, ensuring proper installation of the SSL certificate in the container.

These changes improve the organization of SSL certificates and enhance the deployment process.
2025-01-03 16:12:31 -07:00
dal fe6cf9d945 Enhance GitHub Actions workflow for staging deployment
- Added support for pull requests targeting the staging branch to the existing workflow.
- This change improves the deployment process by ensuring that pull requests are also considered for staging deployments.
2025-01-03 15:59:25 -07:00
dal 03f522dddb Refactor GitHub Actions workflow for staging deployment
- Introduced a new job for database deployment, including steps to install Rust, cache dependencies, and run Diesel migrations.
- Updated the existing porter-deploy job to include AWS credentials configuration and SSL certificate retrieval from S3.
- Enhanced the overall structure and organization of the workflow for improved clarity and maintainability.
2025-01-03 15:56:44 -07:00
dal fb4efe1610
Merge pull request #6 from buster-so:dal/bi-api
Dal/bi-api
2025-01-03 14:34:50 -08:00
dal 3ab1f6a66d Update Dependabot configuration for cargo packages
- Changed the directory for the buster-cli package from "/packages/buster-cli" to "/cli".
- Added a new configuration for the cargo package in the "/api" directory.
- Updated scheduling and branch settings for both packages to improve dependency management.

These changes streamline the dependency update process and enhance the organization of package configurations.
2025-01-03 15:31:33 -07:00
dal fccccc75af Merge remote-tracking branch 'origin/staging' into dal/bi-api 2025-01-03 15:30:53 -07:00
dal d41206cbf1
Merge pull request #5 from buster-so/porter-stack-staging-bed642d5
Enable Porter Application staging
2025-01-03 14:30:18 -08:00
porter-deployment-app[bot] 8ac228cca6
Create porter_app_staging_3155.yml file 2025-01-03 22:28:53 +00:00
dal bdc3c10712 Brought in the bi-api 2025-01-03 14:32:54 -07:00