-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1656 from alliance-genome/remove_dataprovider_dups
Remove and add back FK's
- Loading branch information
Showing
21 changed files
with
398 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 0 additions & 74 deletions
74
src/main/java/org/alliancegenome/curation_api/jobs/executors/Gff3Executor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/org/alliancegenome/curation_api/jobs/executors/gff/Gff3Executor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.alliancegenome.curation_api.jobs.executors.gff; | ||
|
||
import java.util.List; | ||
|
||
import org.alliancegenome.curation_api.enums.BackendBulkDataProvider; | ||
import org.alliancegenome.curation_api.exceptions.ObjectUpdateException; | ||
import org.alliancegenome.curation_api.exceptions.ObjectUpdateException.ObjectUpdateExceptionData; | ||
import org.alliancegenome.curation_api.jobs.executors.LoadFileExecutor; | ||
import org.alliancegenome.curation_api.model.entities.bulkloads.BulkLoadFileHistory; | ||
import org.alliancegenome.curation_api.services.Gff3Service; | ||
import org.alliancegenome.curation_api.util.ProcessDisplayHelper; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.inject.Inject; | ||
|
||
@ApplicationScoped | ||
public class Gff3Executor extends LoadFileExecutor { | ||
|
||
@Inject Gff3Service gff3Service; | ||
|
||
protected String loadGenomeAssembly(String assemblyName, BulkLoadFileHistory history, List<String> gffHeaderData, BackendBulkDataProvider dataProvider, ProcessDisplayHelper ph) { | ||
try { | ||
assemblyName = gff3Service.loadGenomeAssembly(assemblyName, gffHeaderData, dataProvider); | ||
history.incrementCompleted(); | ||
} catch (ObjectUpdateException e) { | ||
//e.printStackTrace(); | ||
history.incrementFailed(); | ||
addException(history, e.getData()); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
history.incrementFailed(); | ||
addException(history, new ObjectUpdateExceptionData(gffHeaderData, e.getMessage(), e.getStackTrace())); | ||
} | ||
updateHistory(history); | ||
ph.progressProcess(); | ||
|
||
return assemblyName; | ||
} | ||
|
||
} |
Oops, something went wrong.