Skip to content
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

[CDR-1397] Add AQL/SQL debug option #1296

Merged
merged 23 commits into from
May 17, 2024

Conversation

alexlehn
Copy link
Contributor

@alexlehn alexlehn commented Apr 24, 2024

Changes

Add AQL debug option support. Extended the AqlRequest object with AqlExecutionOption to pass down the debugging options to the AqlService. Extracted the AqlRepository query building from the actual execution to be able to perform a dry-run and/or provide the query plan.

The debug option support is disabled by default and needs to be switched on using ehrbase.rest.aql.response.execution-options-enabled=true.

Debug options are Provided as header

EHRbase-AQL-DRY_RUN: true
EHRbase-AQL-EXECUTED_SQL: true
EHRbase-AQL-QUERY_PLAN: true

Pre-Merge checklist

  • New code is tested
  • Present and new tests pass
  • Documentation is updated
  • The build is working without errors
  • [❌] No new Sonar issues introduced -> added a TODO for missing DTO
  • Changelog is updated
  • Code has been reviewed

Copy link

github-actions bot commented Apr 24, 2024

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
1402 0 139 1402 100 0s

@alexlehn alexlehn force-pushed the feature/CDR-1397-add-aql-debug-option branch 13 times, most recently from 2192898 to 19fb3bd Compare April 29, 2024 12:16
@alexlehn alexlehn marked this pull request as ready for review April 30, 2024 09:42
@vladislavploaia
Copy link
Contributor

@alexlehn - Before merging to develop branch, below changes should be done:

  1. Replace latest-feature with latest tag to https://github.com/ehrbase/ehrbase/blob/feature/CDR-1397-add-aql-debug-option/.github/workflows/build_and_test.yml#L273
  2. Replace latest-feature with latest tag to https://github.com/ehrbase/ehrbase/blob/feature/CDR-1397-add-aql-debug-option/tests/docker-compose-int-test.yml#L46

@alexlehn alexlehn force-pushed the feature/CDR-1397-add-aql-debug-option branch from c8f9385 to 6b183b9 Compare May 6, 2024 11:20
@alexlehn alexlehn force-pushed the feature/CDR-1397-add-aql-debug-option branch 2 times, most recently from 4531ea4 to 47c1482 Compare May 13, 2024 06:42
vidi42
vidi42 previously requested changes May 14, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
@alexlehn alexlehn force-pushed the feature/CDR-1397-add-aql-debug-option branch from 3f4b3c2 to 486bbd3 Compare May 17, 2024 10:06
@alexlehn alexlehn force-pushed the feature/CDR-1397-add-aql-debug-option branch from 486bbd3 to 5fa9e65 Compare May 17, 2024 10:17
@alexlehn alexlehn requested review from vidi42 and removed request for vidi42 May 17, 2024 10:21
@HolgerReiseVSys HolgerReiseVSys requested review from HolgerReiseVSys and removed request for vidi42 May 17, 2024 10:21
@alexlehn alexlehn dismissed vidi42’s stale review May 17, 2024 10:23

already solved

Copy link

sonarcloud bot commented May 17, 2024

@HolgerReiseVSys HolgerReiseVSys merged commit 6e578d0 into develop May 17, 2024
37 checks passed
@HolgerReiseVSys HolgerReiseVSys deleted the feature/CDR-1397-add-aql-debug-option branch May 17, 2024 10:30
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.

None yet

5 participants