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

Refactor dao classes to extract param build, row insert #1001

Merged
merged 13 commits into from
Sep 17, 2024

Conversation

dexamundsen
Copy link
Contributor

@dexamundsen dexamundsen commented Sep 12, 2024

.addValue("enum", enumValue);
}

MapSqlParameterSource buildValueParam(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

made them package private to be callable from other dao classes

.addValue("data_type", annotationKey.getDataType().name());
int rowsAffected = jdbcTemplate.update(sql, params);
LOGGER.debug("CREATE annotation key rowsAffected = {}", rowsAffected);
MapSqlParameterSource keyParamSets =
Copy link
Contributor Author

@dexamundsen dexamundsen Sep 12, 2024

Choose a reason for hiding this comment

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

general pattern: build param, then insert rows

@dexamundsen dexamundsen changed the title Reafactor Dao classes to extract param build, row insert Refactor dao classes to extract param build, row insert Sep 12, 2024
@dexamundsen dexamundsen self-assigned this Sep 13, 2024
@@ -64,7 +64,7 @@ jobs:
env:
TEST_PROJECT_SA_KEY: ${{ secrets.TEST_PROJECT_SA_KEY }}
- name: Gradle Run Regression Tests Only
run: ./gradlew service:regressionTests -PregressionTestUnderlays=cmssynpuf,aouSR2019q4r4 --scan
run: ./gradlew service:regressionTests -PregressionTestUnderlays=cmssynpuf,aouSR2019q4r4 --info --scan
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A comparison of without - https://github.com/DataBiosphere/tanagra/actions/runs/10859538266/job/30139008330#step:8:1

and with -
https://github.com/DataBiosphere/tanagra/actions/runs/10857889854/job/30135081427#step:8:1

For now keeping it out since all of the extra logs are less about the application tests etc and more about the gradle build process, which is not needed regularly.
keeping logs concide really helps with debugging

# Conflicts:
#	service/src/main/java/bio/terra/tanagra/db/CohortDao.java
@dexamundsen dexamundsen merged commit d5bd468 into main Sep 17, 2024
8 checks passed
@dexamundsen dexamundsen deleted the dexamundsen/dao branch September 17, 2024 15:05
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