mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-30 18:07:20 +00:00
* Added new page for env vars
* Changed a field name
* Added some backend files
- Entity, Dto, services
* Started working with api endpoints
- implmented create
- added ability
* Added fields validation
- Added env variables into module
* Added update, delete, get apis
- Also implemented delete feature in frontend
* Implemented update operation on frontend
- Solved an api problem
* Added encryption
* Added encryption to update operation
- Exposed env vars to editor
- working on viewer
* Exposed env vars in viewer also
- Resolved a bug
* Updated edit & delete icon sizes
* Added specs
- Resolved issues that occurred while testing
* removed logout code
* Changed api endpoint
* splitted page into 3 different parts, Form & table
* Now, non-admin users can see all org env vars
* Resolved divider missing issue
* Added variable_type field
* Now secret server values will be shown as 'SecureValue'
* Now you can't update variable_type
* Now server will resolve the secret env values
* Resolved variable name issue
* Added unique constraints
* Resolved some frontend bugs
* Changed error text
* Fixed failing specs
* Added group permissions for org env vars
* Added permission checking in the backend
* Implemented permission checking in the frontend
* Edited spec for new changes
* Changed some specs and fixed failing specs
* Resolved failing case that showed up after merging with the latest develop
* Added default admin seed permissions
* Refactored some code
* Changed value to organization_id
* Fixed a bug
* Resolved a failing case
* Resolved PR changes
- Changed permission name
- Changed column type to enum
- Fixed some errors
- Refactored the code
* minor code change
* added scope
* Fixed: hide table when 0 no of vars available
* Fixed table dark theme issues
* Fixed encryption switch style
* Fixed failing cases and updated a spec
* Added %% for environment variables
* Added code to resolve single variable
* Fixed multi-variable usage
* resolved an issue
* removed extra divider
* Suggestions will also show up for %% too
* now, suggestions dropdown will only show env variables results
* env vars suggestions will not be included in js search results
* You can't resolve env variables from js code
- Also, we can't resolve js code from env variable enclosures
* added an info text
* Resolved variables issue
* fixed Viewer issue
* Resolved a bug
- client variable was not working on query preview and run actions
* Update error message while using server variable on canvas
* Revert "Update error message while using server variable on canvas"
This reverts commit 081e1c9e29.
* Resolved all PR changes
- removed prefix 'environmentVariable'
- redefined variable evaluation
- removed environmentVariable object from inspector
- fixed a small bug
* Fixed a server side issue
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
69 lines
2.7 KiB
TypeScript
69 lines
2.7 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { OrganizationUser } from '../../entities/organization_user.entity';
|
|
import { Organization } from '../../entities/organization.entity';
|
|
import { User } from '../../entities/user.entity';
|
|
import { OrganizationsService } from '@services/organizations.service';
|
|
import { OrganizationUsersService } from '@services/organization_users.service';
|
|
import { OrganizationsController } from '@controllers/organizations.controller';
|
|
import { OrgEnvironmentVariablesController } from '@controllers/org_environment_variables.controller';
|
|
import { OrganizationUsersController } from '@controllers/organization_users.controller';
|
|
import { UsersService } from 'src/services/users.service';
|
|
import { CaslModule } from '../casl/casl.module';
|
|
import { EmailService } from '@services/email.service';
|
|
import { FilesService } from '@services/files.service';
|
|
import { GroupPermission } from 'src/entities/group_permission.entity';
|
|
import { App } from 'src/entities/app.entity';
|
|
import { File } from 'src/entities/file.entity';
|
|
import { SSOConfigs } from 'src/entities/sso_config.entity';
|
|
import { OrgEnvironmentVariable } from 'src/entities/org_envirnoment_variable.entity';
|
|
import { AuthService } from '@services/auth.service';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { GroupPermissionsService } from '@services/group_permissions.service';
|
|
import { AppGroupPermission } from 'src/entities/app_group_permission.entity';
|
|
import { UserGroupPermission } from 'src/entities/user_group_permission.entity';
|
|
import { EncryptionService } from '@services/encryption.service';
|
|
import { OrgEnvironmentVariablesService } from '@services/org_environment_variables.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Organization,
|
|
OrganizationUser,
|
|
User,
|
|
File,
|
|
GroupPermission,
|
|
App,
|
|
SSOConfigs,
|
|
AppGroupPermission,
|
|
UserGroupPermission,
|
|
OrgEnvironmentVariable,
|
|
]),
|
|
CaslModule,
|
|
JwtModule.registerAsync({
|
|
useFactory: (config: ConfigService) => {
|
|
return {
|
|
secret: config.get<string>('SECRET_KEY_BASE'),
|
|
signOptions: {
|
|
expiresIn: config.get<string | number>('JWT_EXPIRATION_TIME') || '30d',
|
|
},
|
|
};
|
|
},
|
|
inject: [ConfigService],
|
|
}),
|
|
],
|
|
providers: [
|
|
OrganizationsService,
|
|
OrganizationUsersService,
|
|
UsersService,
|
|
EmailService,
|
|
FilesService,
|
|
AuthService,
|
|
GroupPermissionsService,
|
|
EncryptionService,
|
|
OrgEnvironmentVariablesService,
|
|
],
|
|
controllers: [OrganizationsController, OrganizationUsersController, OrgEnvironmentVariablesController],
|
|
})
|
|
export class OrganizationsModule {}
|