-
Notifications
You must be signed in to change notification settings - Fork 1
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
SCRUM-3515 LinkML v2.0.0 refactor #1375
Conversation
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.
Ok took my most of the day to get through this PR. I have not looked at the migration yet. I am going to pull this branch and give it a shot. Maybe can speed up the migration... will run again current version of alpha.
src/main/java/org/alliancegenome/curation_api/interfaces/crud/ReferenceCrudInterface.java
Outdated
Show resolved
Hide resolved
src/main/java/org/alliancegenome/curation_api/jobs/executors/AgmDiseaseAnnotationExecutor.java
Outdated
Show resolved
Hide resolved
.../java/org/alliancegenome/curation_api/interfaces/crud/AffectedGenomicModelCrudInterface.java
Show resolved
Hide resolved
src/main/java/org/alliancegenome/curation_api/model/entities/ontology/OntologyTerm.java
Show resolved
Hide resolved
src/main/java/org/alliancegenome/curation_api/model/entities/Allele.java
Outdated
Show resolved
Hide resolved
src/main/java/org/alliancegenome/curation_api/services/ontology/NcbiTaxonTermService.java
Show resolved
Hide resolved
src/main/java/org/alliancegenome/curation_api/services/ontology/NcbiTaxonTermService.java
Outdated
Show resolved
Hide resolved
return ret; | ||
} | ||
|
||
public E findByCurie(String curie) { |
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.
This might be better moved into the BaseDAO that way these other classes don't have to inject both the service and the dao.
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.
I thought this kind of logic was better kept in the service classes rather than DAO. Also, I only wanted it accessible by the classes that inherit from CurieObject
@@ -38,11 +37,11 @@ public ObjectResponse<Organization> get(String orgId) { | |||
org = orgCacheMap.get(orgId); | |||
} else { | |||
Log.debug("Org not cached, caching org: (" + orgId + ")"); | |||
org = organizationDAO.find(orgId); | |||
org = organizationDAO.find(Long.parseLong(orgId)); |
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.
Might want to change the definition of this method to take a Long vs String?
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.
orgCacheMap can also be keyed by abbreviation (String), so I kept it like this. Could refactor though
src/main/java/org/alliancegenome/curation_api/services/ExperimentalConditionService.java
Outdated
Show resolved
Hide resolved
src/main/resources/db/migration/v0.30.0.1__linkml_v2.0.0_update.sql
Outdated
Show resolved
Hide resolved
src/main/resources/db/migration/v0.30.0.1__linkml_v2.0.0_update.sql
Outdated
Show resolved
Hide resolved
@oblodgett ES indexes are smaller than those on alpha, so that doesn't explain slow performance on my machine. Might be good if you could check this locally to see how performance is for you. I can create a dump of the migrated DB again (changed since last one). |
ya if you can create the dump file... i'll give it a shot. |
Known issues: