Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config DB #568

Open
wants to merge 67 commits into
base: dev
Choose a base branch
from
Open

Config DB #568

wants to merge 67 commits into from

Conversation

fomalhautb
Copy link
Contributor

@fomalhautb fomalhautb commented Mar 21, 2025

  • Added new config json schema and helper functions
  • Separated the internal project and client project so we can later change the internal project APIs without breaking backward compatibility
  • Added database to config json and config json to project type so we can test and compare the result in production

Important

Introduces a new config JSON schema, separates internal and client projects, and integrates database connections into project configurations.

  • Config Schema:
    • Added new config JSON schema in config.tsx.
    • Introduced helper functions for config validation and rendering.
  • Project Separation:
    • Separated internal and client projects in projects.tsx and adminInterface.ts.
    • Updated API paths to /api/v1/internal/projects/current.
  • Database Integration:
    • Added database connection string to project config in config.tsx.
    • Updated projectsCrud to include database fields.
  • Miscellaneous:
    • Updated dependencies in package.json.
    • Renamed internalProjectsCrud to adminUserProjectsCrud in multiple files.
    • Added tests for new config schema in config.tsx.

This description was created by Ellipsis for 8f395fc. It will automatically update as commits are pushed.

fomalhautb and others added 30 commits February 16, 2025 16:32
…cy creation

- Removed the Environment model and adjusted the Project and Branch models accordingly.
- Updated the seed function to create projects and tenancies with a new config schema, enhancing the structure and validation of project configurations.
- Improved handling of OAuth providers and authentication methods in the seed process.
- Refactored email configuration to include shared settings in the schema.
…ror handling

- Changed `validateConfigOverride` and `validateConfigOverrideHelper` functions to async, allowing for proper handling of asynchronous validation.
- Introduced a new helper function `createInvalidPathMessage` for clearer error messages.
- Improved validation logic for object and tuple types, ensuring better compliance with the provided schema.
- Updated test cases to reflect changes in the config override structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants