Skip to content

Commit

Permalink
fix(browse): Fix old browse config returned on get after upsert (#708)
Browse files Browse the repository at this point in the history
Closes: MSEARCH-897
  • Loading branch information
viacheslavkol authored Dec 6, 2024
1 parent efe54b7 commit afc034a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Use keyword_icu instead of keyword_lowercase for fulltext fields plain values ([MSEARCH-857](https://folio-org.atlassian.net/browse/MSEARCH-857))
* Populate typeId and sourceId on subjects re-indexing ([MSEARCH-891](https://folio-org.atlassian.net/browse/MSEARCH-891))
* Change browse_config type_ids column type from varchar to array ([MSEARCH-890](https://folio-org.atlassian.net/browse/MSEARCH-890))
* Fix old browse config returned on get after upsert ([MSEARCH-897](https://folio-org.atlassian.net/browse/MSEARCH-897))

### Tech Dept
* Description ([ISSUE](https://folio-org.atlassian.net/browse/ISSUE))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public BrowseConfig getConfig(@NonNull BrowseType type, @NonNull BrowseOptionTyp
"Config for %s type %s must be present in database".formatted(typeValue, optionTypeValue)));
}

@CacheEvict(cacheNames = BROWSE_CONFIG_CACHE,
key = "@folioExecutionContext.tenantId + ':' + #type.value + ':' + #optionType.value")
@CacheEvict(cacheNames = BROWSE_CONFIG_CACHE, allEntries = true)
public void upsertConfig(@NonNull BrowseType type,
@NonNull BrowseOptionType optionType,
@NonNull BrowseConfig config) {
Expand Down

0 comments on commit afc034a

Please sign in to comment.