File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
giskard-server/src/main/java/ai/giskard/service Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,12 +172,11 @@ public class InitService {
172172 private final GeneralSettingsService generalSettingsService ;
173173 private final ResourceLoader resourceLoader ;
174174 private final FileUploadService fileUploadService ;
175- private final Map <String , ProjectConfig > projects = createProjectConfigMap () ;
175+ private Map <String , ProjectConfig > projects ;
176176 String [] mockKeys = stream (AuthoritiesConstants .AUTHORITIES ).map (key -> key .replace ("ROLE_" , "" )).toArray (String []::new );
177177 private final Map <String , String > users = stream (mockKeys ).collect (Collectors .toMap (String ::toLowerCase , String ::toLowerCase ));
178178
179179 private Map <String , ProjectConfig > createProjectConfigMap () {
180-
181180 return Map .of (
182181 ZILLOW_PROJECT_KEY , new ProjectConfig ("House Pricing Regression" , "aicreator" ,
183182 ModelUploadParamsDTO .builder ().modelType ("regression" )
@@ -251,6 +250,7 @@ public String getProjectByCreatorLogin(String login) {
251250 @ EventListener (ApplicationReadyEvent .class )
252251 @ Transactional
253252 public void init () {
253+ projects = createProjectConfigMap ();
254254 generalSettingsService .saveIfNotExists (new GeneralSettings ());
255255 initAuthorities ();
256256 initUsers ();
You can’t perform that action at this time.
0 commit comments