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

Fix groups api calls #61

Draft
wants to merge 71 commits into
base: develop
Choose a base branch
from
Draft

Fix groups api calls #61

wants to merge 71 commits into from

Conversation

edeati
Copy link

@edeati edeati commented Apr 27, 2023

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 a POST groups/{id}/assertions

@edeati edeati marked this pull request as draft April 28, 2023 04:07
@CoderMChu CoderMChu changed the base branch from master to develop May 17, 2023 07:06
Copy link
Member

@CoderMChu CoderMChu left a 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)

@@ -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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Good idea

@lukeswindale
Copy link

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.

Issue PR URL
test-prerequisites 68 #68
longtext-fix 70 #70
support-additional-filetypes 69 #69

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.

6 participants