mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* feat: add environment configuration support for Git providers and enhance git sync functionality * feat: update Git environment constants and integrate OrganizationGitSyncRepository * feat: add testProviderConnection method to gitSyncService for testing Git provider connections * chore: remove scanning on module init * feat: integrate OrganizationEnvRegistryService and reload envConfig on workspace create and slug update * feat: eload env config on onboarding * feat: add testProviderConnection method and update LicenseBase for envGitMapping * fix: handle downgrade path for env registry * fix flaky case in granular access * uncommented changes * feat: update .gitignore to include additional environment files * feat: refactor organization environment handling and remove deprecated service * feat: implement Git environment registry service and refactor organization environment handling * feat: rename envGitMapping to workspaceEnv across licensing module * chore: remove unnecessary try-catch * refactor(org-env): update interfaces — remove callback contract, add ensureResolved Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: remove reload-on-org-event, swap bootstrap init order Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat(org-env): add getResolvedOrganizationIds() to interface, CE stub, and test Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test: improve assertions in getResolvedOrganizationIds() test * feat: refactor GitEnvRegistryService import paths and add new service implementation * feat: add applyLicenseToResolvedOrgs method to IGitEnvRegistryService and GitEnvRegistryService * refactor: replace GitEnvRegistryService with GitSyncEnvUtilService and update related references * feat: add use_env_config column to organization_git_sync and remove env_git_provider column * refactor: remove EncryptionModule import and update OrganizationEnvModule imports * feat: introduce OrganizationEnvUtilService and update OrganizationEnvModule to utilize it --------- Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
527 B
TypeScript
14 lines
527 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddUseEnvConfigToGitProviders1773649782353 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE "organization_git_sync"
|
|
ADD COLUMN "use_env_config" boolean NOT NULL DEFAULT false
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "organization_git_sync" DROP COLUMN "use_env_config"`);
|
|
}
|
|
}
|