-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix groups api calls #61
base: develop
Are you sure you want to change the base?
Conversation
… the RF2 content is loaded into the DB, and BEFORE the tests run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edeati Thanks for your pull request. Well spotted and thanks for fixing the group api call. This api is not used internally and should have been removed. It would be great if you can split your changes in 3 different PRs. (i.e group api call fix, docker-compose change and azure pipeline)
docker-compose.yml
Outdated
@@ -31,7 +31,7 @@ services: | |||
ports: | |||
- 8081:8081 | |||
environment: | |||
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/?useSSL=false | |||
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/?useSSL=false&llowLoadLocalInfile=true&allowPublicKeyRetrieval=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"llowLoadLocalInfile=true" is missing a (i.e allowLoadLocalInfile=true)
@@ -21,7 +21,7 @@ services: | |||
volumes: | |||
- mysql:/var/lib/mysql | |||
command: | |||
mysqld --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" --lower_case_table_names=1 | |||
mysqld --local-infile=ON --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" --lower_case_table_names=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea
7a8daeb
to
04963b6
Compare
It looks as though the actual groups-api-fix part of the PR has already been addressed. The remaining changes have been split out into seperate PRs, as per below. If any of those have similarly been addressed please update.
|
6352584
to
d047fec
Compare
947fe13
to
c926f70
Compare
This is a fix for
groups
api calls where the api call throws an exception:com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.ihtsdo.rvf.core.data.model.AssertionGroup$HibernateProxy$PhV4dVWY["hibernateLazyInitializer"])
To reproduce this either try to get an existing assertion group with a
GET groups/{id}
call or try to add new tests to an assertion group with aPOST groups/{id}/assertions