Add run configurations for use with IntelliJ #58
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Summary
Adding Gradle run configurations for use with IntelliJ IDEA; these are just GUI options for
gradle bootRun
,gradle bootRun -Pdebug
,gradle clean
, andgradle loadData
. I am using IntelliJ IDEA 2021.2.2 (Community Edition). I used these run configurations in a local setup of test-ehr (outside of Docker).Screenshots of the Run Configurations as seen in IntelliJ
Explanation
Clicking the debug icon (the green bug icon to the right of the "Play" icon) with "Boot Run" is the same as doing
gradle bootRun -Pdebug
in the terminal. However, you can have breakpoints link from IntelliJ to the debugger attached togradle bootRun
with this configuration.Here's an example of how to set a breakpoint in test-ehr while also running request-generator:
Related to steps 1-3
Related to step 4
Related to step 5
test-ehr/src/main/java/org/hl7/davinci/ehrserver/interceptor/QuestionnaireResponseSearchParameterInterceptor.java
Issue ticket number and Jira link
N/A. I made this PR while working on REMS-530, while investigating the QuestionnaireResponse GET endpoint.
Checklist before requesting a review
dev
not main (the only exception to this is releases fromdev
and hotfix branches)Checklist for conducting a review
Workflow
Owner of the Pull Request will be responsible for merge after all requirements are met, including approval from at least one reviewer. Additional changes made after a review will dismiss any approvals and require re-review of the additional updates. Auto merging can be enabled below if additional changes are likely not to be needed. The bot will auto assign reviewers to your Pull Request for you.