-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds option to list all elements instead of doing a search #2027
Conversation
backend/src/main/java/com/bakdata/conquery/resources/api/ConceptsProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/resources/api/ConceptsProcessor.java
Outdated
Show resolved
Hide resolved
.stream() | ||
.sorted(Map.Entry.comparingByKey()) | ||
.map(entry -> entry.getValue().items) | ||
.flatMap(Collection::stream) | ||
.distinct() | ||
.skip(offset) | ||
.limit(limit) | ||
.collect(Collectors.toList()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
müsstest du nach dem flapMap, nicht auch nochmal sortieren?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das war eine bewusste Entscheidung deren Grund ich leider nicht mehr weiß. Mache mir mal einen Test und schaue was rauskommt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, es wird so dann nach den labels/keywords sortiert was denke ich richtig ist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hab dir einen Test beigelegt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Siehe unten.
@thoniTUB ich habe das auflisten mal weiter runtergeschoben um den code so zu vereinheitlichen. |
No description provided.