Skip to content

Adapt postQuery to allow setting of external query - #3940

Open
awildturtok wants to merge 2 commits into
developfrom
feature/providable-query-id
Open

Adapt postQuery to allow setting of external query#3940
awildturtok wants to merge 2 commits into
developfrom
feature/providable-query-id

Conversation

@awildturtok

Copy link
Copy Markdown
Collaborator

No description provided.

@awildturtok
awildturtok requested a review from thoniTUB as a code owner August 6, 2026 15:14
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch 2 times, most recently from a2adf0b to 079490a Compare August 17, 2026 10:38
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 079490a to 813450b Compare August 17, 2026 13:54
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 813450b to 31f586a Compare August 17, 2026 15:57
final QueryDescription query = new ConceptQuery(new CQOr(queries, Optional.of(false), DateAggregationAction.BLOCK));

final ManagedExecution execution = postQuery(dataset, query, subject, true);
final ManagedExecution execution = postQuery(dataset, query, subject, true, Optional.empty(), true);

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.

Die linter sollten es eigentlich immer ankreiden, wenn man Optional als Input verwendet.

Lieber die eigentliche Funktion overloaden.

@POST
public Response postQuery(@Auth Subject subject, @QueryParam("all-providers") Optional<Boolean> allProviders, @NotNull @Valid QueryDescription query) {
public Response postQuery(@Auth Subject subject, @QueryParam("all-providers") Optional<Boolean> allProviders, @QueryParam("queryId") Optional<UUID> queryId, @NotNull @Valid QueryDescription query) {
return submitMaybeRun(queryId, subject, query, true, allProviders);

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.

Kannst du da bitte separate Methoden daraus machen und dafür die darunterliegende Methode aufteilen und diese dann für die beiden Methoden unterschiedlich komponiert aufrufen.

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