Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update XService
  • Loading branch information
presleyp committed Aug 24, 2022
commit aced91f82cafcf410de4cd699a1e9d82380f51f0
8 changes: 6 additions & 2 deletions site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,15 @@ export const MockEntitlementsWithWarnings: TypesGen.Entitlements = {
warnings: ["You are over your active user limit.", "And another thing."],
has_license: true,
features: {
activeUsers: {
user_limit: {
enabled: true,
entitlement: "entitled",
entitlement: "grace_period",
limit: 100,
actual: 102,
},
audit_log: {
enabled: true,
entitlement: "entitled",
}
},
}
5 changes: 1 addition & 4 deletions site/src/xServices/entitlements/entitlementsXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const entitlementsMachine = createMachine(
on: {
GET_ENTITLEMENTS: "gettingEntitlements",
SHOW_MOCK_BANNER: { actions: "assignMockEntitlements" },
HIDE_MOCK_BANNER: { actions: "clearMockEntitlements" },
HIDE_MOCK_BANNER: "gettingEntitlements"
},
},
gettingEntitlements: {
Expand Down Expand Up @@ -81,9 +81,6 @@ export const entitlementsMachine = createMachine(
assignMockEntitlements: assign({
entitlements: (_) => MockEntitlementsWithWarnings,
}),
clearMockEntitlements: assign({
entitlements: (_) => emptyEntitlements,
}),
},
services: {
getEntitlements: () => API.getEntitlements(),
Expand Down