Skip to content

Commit

Permalink
[JN-1622] Remove cache annotation from getLanguageTextMapForLanguage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewBemis authored Feb 13, 2025
1 parent 3ed5e7e commit c0827ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
import bio.terra.pearl.core.model.i18n.LanguageText;
import bio.terra.pearl.core.service.CascadeProperty;
import bio.terra.pearl.core.service.CrudService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class LanguageTextService extends CrudService<LanguageText, LanguageTextDao> {

private LanguageTextDao languageTextDao;
private final LanguageTextDao languageTextDao;

public LanguageTextService(LanguageTextDao languageTextDao) {
super(languageTextDao);
this.languageTextDao = languageTextDao;
}

@Cacheable(value = "languageTexts", key = "#language")
public HashMap<String, String> getLanguageTextMapForLanguage(UUID portalEnvId, String language) {
List<LanguageText> languageTexts = languageTextDao.findWithOverridesByPortalEnvId(portalEnvId, language);

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/src/pages/ourhealth/study-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export enum Activities
{
Consent = 'OurHealth Consent',
Basics = 'The Basics',
CardiometabolicMedicalHistory = 'Cardiometabolic Medical History',
CardiometabolicMedicalHistory = 'OurHealth Medical History',
OtherMedicalHistory = 'Other Medical History',
FamilyHistory = 'Family History',
Medications = 'Medications',
Expand Down

0 comments on commit c0827ac

Please sign in to comment.