]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20864 UI for grace period
authorViktor Vorona <viktor.vorona@sonarsource.com>
Wed, 25 Oct 2023 16:57:36 +0000 (18:57 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 1 Nov 2023 20:02:35 +0000 (20:02 +0000)
server/sonar-web/src/main/js/helpers/mocks/editions.ts
server/sonar-web/src/main/js/types/editions.ts

index 976445dca5ed51509f5464de3e5ad14f9bbfbae7..a0136a8eb19b222d689db73db3e855c1e744774e 100644 (file)
@@ -29,6 +29,7 @@ export function mockLicense(override?: Partial<License>) {
     isValidServerId: true,
     isOfficialDistribution: true,
     isSupported: false,
+    canActivateGracePeriod: false,
     loc: 120085,
     maxLoc: 500000,
     plugins: ['Branches', 'PLI language'],
index ea48302de84dc026d88ae658115509c7a2b486cd..fd522ac664eb15af5e4727a89ec3b91ae19dc3f6 100644 (file)
@@ -48,4 +48,7 @@ export interface License {
   remainingLocThreshold: number;
   serverId: string;
   type: string;
+  canActivateGracePeriod: boolean;
+  gracePeriodEndDate?: string;
+  gracePeriodExpired?: boolean;
 }