Skip to content

Commit

Permalink
Prepare new release 5.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
imedina committed Aug 2, 2022
2 parents 0a81a33 + a99d0f9 commit f1282b1
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cellbase-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion cellbase-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion cellbase-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion cellbase-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.ArrayList;
import java.util.List;

public class AbstractManager {
public class AbstractManager implements AutoCloseable {

protected String species;
protected String assembly;
Expand Down Expand Up @@ -89,4 +89,9 @@ protected List<Query> createQueries(Query query, String csvField, String queryKe
}
return queries;
}

@Override
public void close() {
mongoDBManager.close();
}
}
2 changes: 1 addition & 1 deletion cellbase-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void initQuery() throws CellBaseException {
assembly = SpeciesUtils.getSpecies(cellBaseConfiguration, species, assembly).getAssembly();
}
if (StringUtils.isNotEmpty(assembly)) {
DataReleaseManager releaseManager = new DataReleaseManager(species, assembly, cellBaseConfiguration);
DataReleaseManager releaseManager = cellBaseManagerFactory.getDataReleaseManager(species, assembly);
DataRelease dr = releaseManager.getDefault();
if (dr != null) {
defaultDataRelease = dr.getRelease();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public Response getDataRelease(@PathParam("species")
return createErrorResponse("getVersion", "Invalid species: '" + species + "' or assembly: '"
+ assembly + "'");
}
DataReleaseManager dataReleaseManager = new DataReleaseManager(species, assembly, cellBaseConfiguration);
DataReleaseManager dataReleaseManager = cellBaseManagerFactory.getDataReleaseManager(species, assembly);
CellBaseDataResult<DataRelease> result = dataReleaseManager.getReleases();
if (onlyActive) {
for (DataRelease release : result.getResults()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public class GeneWSServer extends GenericRestWSServer {
private TranscriptManager transcriptManager;
private VariantManager variantManager;
private ProteinManager proteinManager;
private TfbsManager tfbsManager;

public GeneWSServer(@PathParam("apiVersion") @ApiParam(name = "apiVersion", value = VERSION_DESCRIPTION,
defaultValue = DEFAULT_VERSION) String apiVersion,
Expand All @@ -82,10 +81,9 @@ public GeneWSServer(@PathParam("apiVersion") @ApiParam(name = "apiVersion", valu
}

geneManager = cellBaseManagerFactory.getGeneManager(species, assembly);
// transcriptManager = cellBaseManagerFactory.getTranscriptManager(species, assembly);
// variantManager = cellBaseManagerFactory.getVariantManager(species, assembly);
// proteinManager = cellBaseManagerFactory.getProteinManager(species, assembly);
// tfbsManager = cellBaseManagerFactory.getTFManager(species, assembly);
transcriptManager = cellBaseManagerFactory.getTranscriptManager(species, assembly);
variantManager = cellBaseManagerFactory.getVariantManager(species, assembly);
proteinManager = cellBaseManagerFactory.getProteinManager(species, assembly);
}

@GET
Expand Down
2 changes: 1 addition & 1 deletion cellbase-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase-test</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<packaging>pom</packaging>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.opencb.cellbase</groupId>
<artifactId>cellbase</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<packaging>pom</packaging>

<name>CellBase project</name>
Expand Down

0 comments on commit f1282b1

Please sign in to comment.