Improve the UX when creating groups as a supervisor #123

Merged
niat8586 merged 9 commits from group-creation-ux into develop 2025-03-05 11:01:37 +01:00
Showing only changes of commit e2e637ef1c - Show all commits

View File

@ -42,7 +42,7 @@ public class DataInitializer implements Lifecycle, BaseData, Factory {
public static final long RESEARCH_AREA_ID = 12L; public static final long RESEARCH_AREA_ID = 12L;
@Inject @Inject
private Collection<TestDataPopulator> testDataPopulators = new ArrayList<>(); private Optional<Collection<TestDataPopulator>> testDataPopulators = Optional.empty();
@Inject @Inject
private UserService userService; private UserService userService;
@ -123,7 +123,8 @@ public class DataInitializer implements Lifecycle, BaseData, Factory {
createTarget(); createTarget();
createStudentIdea(); createStudentIdea();
createRoughDraftApproval(); createRoughDraftApproval();
for (TestDataPopulator testDataPopulator : testDataPopulators) { Collection<TestDataPopulator> availablePopulators = testDataPopulators.orElseGet(Collections::emptySet);
for (TestDataPopulator testDataPopulator : availablePopulators) {
testDataPopulator.populate(this, this); testDataPopulator.populate(this, this);
} }
} }