mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
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:
parent
048b67e574
commit
83ee649e82
@ -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.',
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ const suites = [{
|
||||
}, {
|
||||
name: 'Acceptance: Search (beta)',
|
||||
beforeEach() {
|
||||
enableLabsFlag(this.server, 'internalLinkingSearchImprovements');
|
||||
enableLabsFlag(this.server, 'internalLinking');
|
||||
}
|
||||
}];
|
||||
|
||||
|
@ -12,7 +12,7 @@ const suites = [{
|
||||
}, {
|
||||
name: 'Integration: Service: Search (beta)',
|
||||
beforeEach() {
|
||||
enableLabsFlag(this.server, 'internalLinkingSearchImprovements');
|
||||
enableLabsFlag(this.server, 'internalLinking');
|
||||
}
|
||||
}];
|
||||
|
||||
|
@ -55,7 +55,6 @@ const ALPHA_FEATURES = [
|
||||
'lexicalIndicators',
|
||||
'adminXDemo',
|
||||
'internalLinkingAtLinks',
|
||||
'internalLinkingSearchImprovements',
|
||||
'contentVisibility'
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user