FromVersion patch for master

This commit is contained in:
Timo Bejan 2022-03-14 16:37:32 +02:00
parent ec00322167
commit 8441417952
3 changed files with 4 additions and 4 deletions

View File

@ -26,6 +26,6 @@ public interface FalseRecommendationEntryRepository extends JpaRepository<Dictio
void updateTypeIdAndIncrementVersionByOne(String typeId, String newTypeId);
List<DictionaryFalsePositiveEntryEntity> findByTypeIdAndVersionGreaterThan(String typeId, long version);
List<DictionaryFalseRecommendationEntryEntity> findByTypeIdAndVersionGreaterThan(String typeId, long version);
}

View File

@ -259,8 +259,8 @@ public class DictionaryController implements DictionaryResource {
public List<DictionaryEntry> getEntriesForType(@PathVariable(TYPE_PARAMETER_NAME) String typeId,
@RequestParam(value = FROM_VERSION_PARAM, required = false) Long fromVersion,
@RequestParam(value = "dictionaryEntryType", required = false, defaultValue = "ENTRY") DictionaryEntryType dictionaryEntryType) {
return convert(entryPersistenceService.getEntries(typeId, dictionaryEntryType, fromVersion), DictionaryEntry.class);
var entries = entryPersistenceService.getEntries(typeId, dictionaryEntryType, fromVersion);
return convert(entries, DictionaryEntry.class);
}
private Set<String> getInvalidEntries(Set<String> entries) {

View File

@ -29,7 +29,7 @@ databaseChangeLog:
file: db/changelog/12-dossier-visibility.changelog.yaml
- include:
file: db/changelog/13-file-manual-change-date.changelog.yaml
- include:
- include:
file: db/changelog/release-3.2.0/1-add-index-on-dictionary-entry.changelog.yaml
- include:
file: db/changelog/14-add-redaction-source-id.changelog.yaml