Skip to content

Commit

Permalink
N21-1901 visualize ctl states (#5019)
Browse files Browse the repository at this point in the history
*  add isNotLicensed status and validation, remove remnants of toolVersion
  • Loading branch information
IgorCapCoder authored May 28, 2024
1 parent 5adb50c commit 02b09d0
Show file tree
Hide file tree
Showing 19 changed files with 277 additions and 542 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@ export class ContextExternalToolConfigurationStatusResponse {
})
isDeactivated: boolean;

@ApiProperty({
type: Boolean,
description: 'True if the tool is not licensed for user',
})
isNotLicensed: boolean;

constructor(props: ContextExternalToolConfigurationStatusResponse) {
this.isOutdatedOnScopeSchool = props.isOutdatedOnScopeSchool;
this.isOutdatedOnScopeContext = props.isOutdatedOnScopeContext;
this.isIncompleteOnScopeContext = props.isIncompleteOnScopeContext;
this.isIncompleteOperationalOnScopeContext = props.isIncompleteOperationalOnScopeContext;
this.isDeactivated = props.isDeactivated;
this.isNotLicensed = props.isNotLicensed;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export class ContextExternalToolConfigurationStatus {

isDeactivated: boolean;

isNotLicensed: boolean;

isIncompleteOperationalOnScopeContext: boolean;

constructor(props: ContextExternalToolConfigurationStatus) {
Expand All @@ -15,5 +17,6 @@ export class ContextExternalToolConfigurationStatus {
this.isIncompleteOnScopeContext = props.isIncompleteOnScopeContext;
this.isIncompleteOperationalOnScopeContext = props.isIncompleteOperationalOnScopeContext;
this.isDeactivated = props.isDeactivated;
this.isNotLicensed = props.isNotLicensed;
}
}
1 change: 0 additions & 1 deletion apps/server/src/modules/tool/common/interface/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './external-tool-search-query';
export * from './tool-version.interface';

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class ToolStatusResponseMapper {
isIncompleteOnScopeContext: status.isIncompleteOnScopeContext,
isIncompleteOperationalOnScopeContext: status.isIncompleteOperationalOnScopeContext,
isDeactivated: status.isDeactivated,
isNotLicensed: status.isNotLicensed,
});

return configurationStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Module, forwardRef } from '@nestjs/common';
import { UserLicenseModule } from '@modules/user-license';
import { forwardRef, Module } from '@nestjs/common';
import { LoggerModule } from '@src/core/logger';
import { CommonToolModule } from '../common';
import { ExternalToolModule } from '../external-tool';
Expand All @@ -15,6 +16,7 @@ import { ToolConfigurationStatusService } from './service/tool-configuration-sta
SchoolExternalToolModule,
LoggerModule,
ToolConfigModule,
UserLicenseModule,
],
providers: [
ContextExternalToolService,
Expand Down
Loading

0 comments on commit 02b09d0

Please sign in to comment.