Added improved search into internal linking beta

closes https://linear.app/tryghost/issue/MOM-117
closes https://linear.app/tryghost/issue/MOM-70

- updated flag handling to move the improved search into the `internalLinking` beta flag
- removed now-unused `internalLinkingSearchImprovements` flag
This commit is contained in:
Kevin Ansfield 2024-06-13 17:21:52 +01:00
parent 048b67e574
commit 83ee649e82
6 changed files with 3 additions and 9 deletions

View File

@ -63,10 +63,6 @@ const features = [{
title: 'Internal Linking @-links (internal alpha)',
description: 'Adds internal URL search when typing @ in the editor',
flag: 'internalLinkingAtLinks'
},{
title: 'Internal Linking search improvements (internal alpha)',
description: 'Replaces Admin\'s search with flexsearch indexes',
flag: 'internalLinkingSearchImprovements'
},{
title: 'ActivityPub',
description: '(Highly) Experimental support for ActivityPub.',

View File

@ -84,7 +84,6 @@ export default class FeatureService extends Service {
@feature('ActivityPub') ActivityPub;
@feature('internalLinking') internalLinking;
@feature('internalLinkingAtLinks') internalLinkingAtLinks;
@feature('internalLinkingSearchImprovements') internalLinkingSearchImprovements;
@feature('editorExcerpt') editorExcerpt;
@feature('newsletterExcerpt') newsletterExcerpt;

View File

@ -15,7 +15,7 @@ export default class SearchService extends Service {
isContentStale = true;
get provider() {
return this.feature.internalLinkingSearchImprovements
return this.feature.internalLinking
? this.searchProviderBeta
: this.searchProvider;
}

View File

@ -17,7 +17,7 @@ const suites = [{
}, {
name: 'Acceptance: Search (beta)',
beforeEach() {
enableLabsFlag(this.server, 'internalLinkingSearchImprovements');
enableLabsFlag(this.server, 'internalLinking');
}
}];

View File

@ -12,7 +12,7 @@ const suites = [{
}, {
name: 'Integration: Service: Search (beta)',
beforeEach() {
enableLabsFlag(this.server, 'internalLinkingSearchImprovements');
enableLabsFlag(this.server, 'internalLinking');
}
}];

View File

@ -55,7 +55,6 @@ const ALPHA_FEATURES = [
'lexicalIndicators',
'adminXDemo',
'internalLinkingAtLinks',
'internalLinkingSearchImprovements',
'contentVisibility'
];