Skip to content

Commit

Permalink
feat(useractionhistory): remove deprecated code (#906)
Browse files Browse the repository at this point in the history
Removal of the UAH feature following deprecation notice

BREAKING CHANGE: Removal of the user action history functionality
  • Loading branch information
lprovost-coveo authored Jan 15, 2025
1 parent 89522c3 commit 1c1eb37
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 81 deletions.
1 change: 0 additions & 1 deletion src/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,6 @@ export enum ModelTypes {
ECommerce = 'ecommerce',
CaseClassification = 'caseclassification',
SmartSnippets = 'mlquestionanswering',
UserActionHistory = 'useractionhistory',
IntentAwareProductRanking = 'intentranking',
RelevanceGenerativeAnswering = 'genqa',
SemanticEncoder = 'embeddings',
Expand Down
3 changes: 0 additions & 3 deletions src/resources/MachineLearning/MachineLearning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
import RelevanceGenerativeAnsweringConfiguration from './RGAConfiguration/RelevanceGenerativeAnsweringConfiguration.js';
import SemanticEncoderConfiguration from './SemanticEncoderConfiguration/SemanticEncoderConfiguration.js';
import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';

export default class MachineLearning extends Resource {
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning`;
Expand All @@ -21,7 +20,6 @@ export default class MachineLearning extends Resource {
dneConfig: DNEConfiguration;
caseClassificationConfig: CaseClassificationConfiguration;
smartSnippetsConfig: SmartSnippetsConfiguration;
userActionHistoryConfig: UserActionHistoryConfiguration;
pqsConfig: PQSConfiguration;
iaprConfig: IAPRConfiguration;
modelListing: ModelListing;
Expand All @@ -42,7 +40,6 @@ export default class MachineLearning extends Resource {
this.smartSnippetsConfig = new SmartSnippetsConfiguration(api, serverlessApi);
this.pqsConfig = new PQSConfiguration(api, serverlessApi);
this.iaprConfig = new IAPRConfiguration(api, serverlessApi);
this.userActionHistoryConfig = new UserActionHistoryConfiguration(api, serverlessApi);
this.modelListing = new ModelListing(api, serverlessApi);
this.relevanceGenerativeAnsweringConfig = new RelevanceGenerativeAnsweringConfiguration(api, serverlessApi);
this.semanticEncoderConfig = new SemanticEncoderConfiguration(api, serverlessApi);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/MachineLearning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ export * from './PQSConfiguration/index.js';
export * from './RGAConfiguration/index.js';
export * from './SemanticEncoderConfiguration/index.js';
export * from './SmartSnippetsConfiguration/index.js';
export * from './UserActionHistoryConfiguration/index.js';
6 changes: 0 additions & 6 deletions src/resources/MachineLearning/tests/MachineLearning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import ModelDetailedInfo from '../ModelDetailedInfo/ModelDetailedInfo.js';
import Models from '../Models/Models.js';
import PQSConfiguration from '../PQSConfiguration/PQSConfiguration.js';
import SmartSnippetsConfiguration from '../SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
import UserActionHistoryConfiguration from '../UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';

jest.mock('../../../APICore.js');

Expand Down Expand Up @@ -59,11 +58,6 @@ describe('MachineLearning', () => {
expect(ml.pqsConfig).toBeInstanceOf(PQSConfiguration);
});

it('should register the userActionHistory resource', () => {
expect(ml.userActionHistoryConfig).toBeDefined();
expect(ml.userActionHistoryConfig).toBeInstanceOf(UserActionHistoryConfiguration);
});

it('should register the iaprConfig resource', () => {
expect(ml.iaprConfig).toBeDefined();
expect(ml.iaprConfig).toBeInstanceOf(IAPRConfiguration);
Expand Down

0 comments on commit 1c1eb37

Please sign in to comment.