Cleanup AiErrorAssistant todos post plans changes (#35067)

* feat: cleaning up ai quota leftovers

fix: removing more straggler invos

* fix: featureUpdater still need analyticsId in the user projection

* feat: updating cypress tests to also check for fair usage text

GitOrigin-RevId: 09c1167106c144084c111beea56867f6aa4a0906
This commit is contained in:
Jimmy Domagala-Tang
2026-09-17 11:41:10 +00:00
committed by Copybot
parent 275d381656
commit ba76fda37b
19 changed files with 40 additions and 91 deletions
@@ -72,14 +72,12 @@ describe('InstitutionsFeatures', function () {
features: {
institution: 'all',
aiUsageQuota: 'unlimited',
aiErrorAssistant: true,
},
}
ctx.testFeaturesWithNoAddon = {
features: {
institution: 'all',
aiUsageQuota: 'basic',
aiErrorAssistant: false,
},
}
})
@@ -388,7 +388,6 @@ describe('FeaturesUpdater', function () {
expect(features).to.deep.equal({
default: 'features',
individual: 'features',
aiErrorAssistant: true,
aiUsageQuota: 'unlimited',
})
})
@@ -407,7 +406,6 @@ describe('FeaturesUpdater', function () {
)
expect(features).to.deep.equal({
default: 'features',
aiErrorAssistant: true,
aiUsageQuota: 'unlimited',
})
})
@@ -65,9 +65,6 @@ describe('WorkbenchRateLimiter', function () {
featureFlagEnabledForMongoUser: sinon.stub().resolves(true),
},
}
ctx.SplitTestHandler.promises.getAssignmentForUser
.withArgs(ctx.alphaUserId, 'ai-workbench-release')
.resolves({ variant: 'enabled' })
vi.doMock('../../../../app/src/infrastructure/mongodb', () => ({
ObjectId,