Skip to content

Commit

Permalink
Merge pull request #6722 from deutschebank/db-contrib/waltz-6711-diag…
Browse files Browse the repository at this point in the history
…ram-elem-sort

Db contrib/waltz 6711 diagram elem sort
  • Loading branch information
davidwatkins73 authored Aug 22, 2023
2 parents ddab94b + 1f14f34 commit 54c71bf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public Collection<DataType> findByParentId(long id) {
.selectDistinct(DATA_TYPE.fields())
.from(DATA_TYPE)
.where(DATA_TYPE.PARENT_ID.eq(id))
.orderBy(DATA_TYPE.NAME)
.fetchSet(TO_DOMAIN);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ public List<Measurable> findByParentId(Long parentId) {
.from(MEASURABLE)
.where(MEASURABLE.PARENT_ID.eq(parentId))
.and(MEASURABLE.ENTITY_LIFECYCLE_STATUS.eq(EntityLifecycleStatus.ACTIVE.name()))
.orderBy(MEASURABLE.POSITION, MEASURABLE.NAME)
.fetch(TO_DOMAIN_MAPPER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public Set<Person> findActivePeopleByUserRole(String role) {
}


public Set<Person> findDirectsForPersonIds(List<Long> personIds) {
public List<Person> findDirectsForPersonIds(List<Long> personIds) {
Condition cond = PERSON.MANAGER_EMPLOYEE_ID.in(DSL
.select(PERSON.EMPLOYEE_ID)
.from(PERSON)
Expand All @@ -274,6 +274,6 @@ public Set<Person> findDirectsForPersonIds(List<Long> personIds) {
.orderBy(PERSON.DISPLAY_NAME);

return qry
.fetchSet(personMapper);
.fetch(personMapper);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const DiagramModes = {
}

export function createInitialGroup() {
return mkGroup("Diagram Title", generateUUID(), null, 1);
return mkGroup("Initial Group", generateUUID(), null, 1);
}

export let movingGroup = writable(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public List<Person> findDirectsByEmployeeId(String employeeId) {
}


public Set<Person> findDirectsForPersonIds(List<Long> personIds) {
public List<Person> findDirectsForPersonIds(List<Long> personIds) {
if (CollectionUtilities.isEmpty(personIds)) {
return Collections.emptySet();
return Collections.emptyList();
}
return time("PS.findDirectsByPersonIds", () -> personDao.findDirectsForPersonIds(personIds));
}
Expand Down

0 comments on commit 54c71bf

Please sign in to comment.