Skip to content

fix: Removes filtering for expandable queries - #3934

Open
awildturtok wants to merge 1 commit into
developfrom
fix/show-editorv2-queries
Open

fix: Removes filtering for expandable queries#3934
awildturtok wants to merge 1 commit into
developfrom
fix/show-editorv2-queries

Conversation

@awildturtok

Copy link
Copy Markdown
Collaborator

As that hides editorv2 queries from users, which they can actually use in editorv2

@awildturtok
awildturtok requested a review from thoniTUB as a code owner August 5, 2026 09:55
@awildturtok
awildturtok force-pushed the fix/show-editorv2-queries branch 2 times, most recently from 29db9d5 to 94ca1ee Compare August 5, 2026 14:15
Comment on lines +50 to +69
import jakarta.inject.Inject;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.validation.Validator;
import jakarta.ws.rs.BadRequestException;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriBuilder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.text.NumberFormat;
import java.time.LocalDate;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In meinem Intellij ist die Sortierung auch wieder kaputt. Kannst es bitte einmal checken und ggf anpassen sodass die offiziellen (java/jakarta) wieder nachoben kommen

return switch (query) {
case ConceptQuery ignored -> true;
case SecondaryIdQuery ignored -> true;
case null, default -> false;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bitte einen Kommentar ran machen, wenn null das eigentlich ein Fehlerfall ist. Oder ist das legitim?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ja guter Punkt, null kann vmtl gar nicht passieren

Comment on lines +135 to +136
QUERY_ID_8 = createExecutionId(DATASET_0, "9");
QUERY_ID_9 = createExecutionId(DATASET_0, "10");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
QUERY_ID_8 = createExecutionId(DATASET_0, "9");
QUERY_ID_9 = createExecutionId(DATASET_0, "10");
QUERY_ID_8 = createExecutionId(DATASET_0, "8");
QUERY_ID_9 = createExecutionId(DATASET_0, "9");

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, danke. Musste den PR neu machen, hab das übersehen

}}));
}}, DATASET_0
), // included, but secondaryId-Query
mockManagedSecondaryIdQueryFrontEnd(USERS[1], QUERY_ID_8, DONE, new CQConcept(), DATASET_0), // not-included, wrong structure

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum hast du den Case gekickt, der ist doch jetzt darstellbar,oder?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weil er keinen Sonderfall mehr darstellt

@awildturtok
awildturtok force-pushed the fix/show-editorv2-queries branch from 94ca1ee to 967afcc Compare August 6, 2026 12:20
@awildturtok
awildturtok requested a review from thoniTUB August 6, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants