RED-9092: filtered out experimental and missing types.
This commit is contained in:
parent
294fba97d9
commit
11537f8cb6
@ -79,7 +79,13 @@ export class AnnotationProcessingService {
|
||||
const filters: INestedFilter[] = [];
|
||||
|
||||
this._fileDataService.all?.forEach(a => {
|
||||
if (this.#isDocumine && !this.#devMode && a.isOCR) {
|
||||
const dictionary = this._state.dictionaries.find(dictionary => dictionary.type === a.type);
|
||||
const doesTypeExist = !!dictionary;
|
||||
if (
|
||||
(this.#isDocumine && !this.#devMode && a.isOCR) ||
|
||||
(!this.#devMode && dictionary?.experimental) ||
|
||||
(!doesTypeExist && !this._state.isReadonly())
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const topLevelFilter = a.topLevelFilter;
|
||||
|
||||
@ -217,6 +217,10 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
|
||||
this.missingTypes.add(entry.type);
|
||||
}
|
||||
|
||||
if (dictionary?.experimental && !this.#isIqserDevMode) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const changeType = this.#getChangeLogType(entry, file);
|
||||
|
||||
if (entry.state === EntryStates.PENDING) {
|
||||
|
||||
@ -19,6 +19,7 @@ export class Dictionary extends Entity<IDictionary> implements IDictionary {
|
||||
readonly hasDictionary?: boolean;
|
||||
readonly systemManaged?: boolean;
|
||||
readonly dossierDictionaryOnly?: boolean;
|
||||
readonly experimental?: boolean;
|
||||
|
||||
entries: List;
|
||||
falsePositiveEntries: List;
|
||||
@ -47,6 +48,7 @@ export class Dictionary extends Entity<IDictionary> implements IDictionary {
|
||||
this.hasDictionary = entity.hasDictionary;
|
||||
this.systemManaged = entity.systemManaged;
|
||||
this.dossierDictionaryOnly = entity.dossierDictionaryOnly;
|
||||
this.experimental = entity.experimental;
|
||||
}
|
||||
|
||||
get id(): string {
|
||||
|
||||
@ -60,4 +60,6 @@ export interface IDictionary {
|
||||
readonly systemManaged?: boolean;
|
||||
|
||||
readonly dossierDictionaryOnly?: boolean;
|
||||
|
||||
readonly experimental?: boolean;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user