Skip to content

feat: adapt postQuery to allow setting of external query - #3940

Merged
awildturtok merged 5 commits into
developfrom
feature/providable-query-id
Sep 2, 2026
Merged

feat: adapt postQuery to allow setting of external query#3940
awildturtok merged 5 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 2 times, most recently from 813450b to 31f586a Compare August 17, 2026 15:57
Comment thread backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java Outdated
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 31f586a to 9326136 Compare August 25, 2026 10:29
@awildturtok
awildturtok requested a review from thoniTUB August 25, 2026 10:44
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 9326136 to 9a9b940 Compare August 25, 2026 11:36

@thoniTUB thoniTUB left a comment

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.

Ich würde noch ein paar dinge aufräumen

Comment thread backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java Outdated
Comment thread backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java Outdated
Comment thread backend/src/main/java/com/bakdata/conquery/util/QueryUtils.java Outdated
@thoniTUB thoniTUB changed the title Adapt postQuery to allow setting of external query feat: adapt postQuery to allow setting of external query Aug 26, 2026
@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 0f4393c to 44d1a7a Compare August 27, 2026 11:06
@awildturtok
awildturtok requested a review from thoniTUB August 27, 2026 12:01
@awildturtok
awildturtok enabled auto-merge (squash) August 27, 2026 12:05

@Override
public boolean isValid(UUID id, ConstraintValidatorContext context) {
return id == null || id.version() != 4;

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
return id == null || id.version() != 4;
return id == null || id.version() == 4;

@awildturtok
awildturtok force-pushed the feature/providable-query-id branch from 824b5fe to bdeebb7 Compare September 1, 2026 15:48
IntegrationUtils.assertQueryResult(conquery, reused2, uuid, expectedSize, ExecutionState.DONE, conquery.getTestUser(), 201);

assertThat(reused2Id)
.as("Query should be reused.")

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
.as("Query should be reused.")
.as("Execution should not be reused, because id is explicitly provided.")

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.

Den Check kannst du aber auch nach IntegrationUtils.assertQueryResult verschieben.

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 bitte noch Tests für die Rejection hinzufügen, wenn die ID schon verwendet wurde.

@awildturtok
awildturtok merged commit 86b9beb into develop Sep 2, 2026
11 checks passed
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