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

TASK-5610 - Create the CVDB endpoint analysis/clinical/cvdb/variant/summary and overwrite analysis/clinical/variant #2480

Open
wants to merge 29 commits into
base: release-3.x.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c61a302
test: update test classes to be used by OpenCGA Enterprise tests, #TA…
jtarraga Feb 26, 2024
32710de
Prepare cicd release
juanfeSanahuja Mar 8, 2024
38d57aa
Merge branch 'develop' into TASK-5610
imedina Apr 11, 2024
39365be
Merge branch 'develop' into TASK-5610
jtarraga Apr 16, 2024
3b42add
Merge branch 'release-3.1.x'
juanfeSanahuja May 20, 2024
36db72d
Merge branch 'release-3.1.x'
juanfeSanahuja May 20, 2024
b49d9e1
pom: Release 3.1.0
juanfeSanahuja May 20, 2024
14aa894
Merge branch 'develop'
juanfeSanahuja May 20, 2024
737fc4d
Merge branch 'release-3.1.x'
juanfeSanahuja May 20, 2024
cecf59d
Merge branch 'release-3.1.x'
juanfeSanahuja May 21, 2024
7274199
Merge branch 'release-3.1.x'
juanfeSanahuja May 21, 2024
470c290
Merge branch 'release-3.1.x'
juanfeSanahuja May 21, 2024
51f0e85
Merge branch 'release-3.1.x'
juanfeSanahuja May 21, 2024
eca4214
Merge branch 'develop' into TASK-5610
jtarraga Jun 19, 2024
bfeb502
Merge branch 'develop' into TASK-5610
jtarraga Jul 1, 2024
67fc138
Merge branch 'TASK-5610' of https://github.com/opencb/opencga into TA…
jtarraga Jul 1, 2024
8a841f5
Merge branch 'develop' into TASK-5610
jtarraga Jul 2, 2024
b99b99b
Merge branch 'release-3.2.x'
juanfeSanahuja Jul 17, 2024
d2e7b2e
Merge branch 'release-3.2.x' into TASK-5610
jtarraga Jul 22, 2024
7bc50c5
Merge branch 'release-3.2.x'
juanfeSanahuja Sep 13, 2024
a94f7be
Merge branch 'release-3.x.x' into TASK-5610
jtarraga Sep 23, 2024
a0b8d91
cli: Error message Active token detected. Please logout first. #TASK-…
juanfeSanahuja Sep 26, 2024
92ff7a7
cli: Ensure that the client has the session token #TASK-6992
juanfeSanahuja Sep 26, 2024
bd4ca99
Prepare release in hotfix branch release-3.2.x
juanfeSanahuja Sep 26, 2024
ee5f048
Fix pull request approve #TASK-6992
juanfeSanahuja Sep 26, 2024
f434e43
Merge branch 'release-3.2.x' into TASK-6992
juanfeSanahuja Sep 26, 2024
3456609
Update versions of the libraries #TASK-6992
juanfeSanahuja Sep 27, 2024
507168d
Merge pull request #2509 from opencb/TASK-6992
juanfeSanahuja Oct 1, 2024
e6160e0
Merge branch 'release-3.2.x' into TASK-5610d
jtarraga Oct 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
*/
public class OpenCGATestExternalResource extends ExternalResource {

private final CatalogManagerExternalResource catalogManagerExternalResource = new CatalogManagerExternalResource();
private final CatalogManagerExternalResource catalogManagerExternalResource;
private Path opencgaHome;
private String storageEngine;
private boolean initiated = false;
Expand All @@ -72,21 +72,27 @@ public class OpenCGATestExternalResource extends ExternalResource {
private StorageConfiguration storageConfiguration;
private StorageEngineFactory storageEngineFactory;
private ToolRunner toolRunner;

protected Path sourceAnalysisPath;

public static HadoopVariantStorageTest.HadoopExternalResource hadoopExternalResource
= new HadoopVariantStorageTest.HadoopExternalResource();

public OpenCGATestExternalResource() {
this(false);
this(false, Paths.get("../opencga-app/app/analysis/"));
}

public OpenCGATestExternalResource(boolean storageHadoop) {
this(storageHadoop, Paths.get("../opencga-app/app/analysis/"));
}

public OpenCGATestExternalResource(boolean storageHadoop, Path sourceAnalysisPath) {
if (storageHadoop) {
this.storageEngine = HadoopVariantStorageEngine.STORAGE_ENGINE_ID;
} else {
this.storageEngine = DummyVariantStorageEngine.STORAGE_ENGINE_ID;
}
this.sourceAnalysisPath = sourceAnalysisPath;
catalogManagerExternalResource = new CatalogManagerExternalResource(sourceAnalysisPath);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public RestResponse<AuthenticationResponse> login(CustomUsersCommandOptions.Logi
String token = session.getSession().getToken();
String errorMsg = "Missing password. ";
if (StringUtils.isNotEmpty(token)) {
errorMsg += "Active token detected ";
errorMsg += "Active token detected. Please logout first.";
}
CommandLineUtils.error(errorMsg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,13 @@ private boolean checkAutoRefresh(OpencgaCommandExecutor commandExecutor) {

public void loadSessionStudies(OpencgaCommandExecutor commandExecutor) {
Session session = commandExecutor.getSessionManager().getSession();
logger.debug("Loading session studies using token: "
+ session.getToken());
OpenCGAClient openCGAClient = commandExecutor.getOpenCGAClient();
logger.debug("openCGAClient Token: " + openCGAClient.getToken());
if(StringUtils.isEmpty(openCGAClient.getToken())) {
openCGAClient.setToken(session.getToken());
}
logger.debug("Loading session studies using token: "
+ openCGAClient.getToken());
try {
// Query the server to retrieve the studies of user projects
RestResponse<Project> res = openCGAClient.getProjectClient().search(new ObjectMap());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,25 @@
*/
public class CatalogManagerExternalResource extends ExternalResource {

private CatalogManager catalogManager;
private Configuration configuration;
private Path opencgaHome;
private String adminToken;
protected CatalogManager catalogManager;
protected Configuration configuration;
protected Path opencgaHome;
protected String adminToken;
public boolean initialized = false;

protected Path sourceAnalysisPath;

public CatalogManagerExternalResource() {
this(Paths.get("../opencga-app/app/analysis/"));
}

public CatalogManagerExternalResource(Path sourceAnalysisPath) {
this.sourceAnalysisPath = sourceAnalysisPath;
Configurator.setLevel("org.mongodb.driver.cluster", Level.WARN);
Configurator.setLevel("org.mongodb.driver.connection", Level.WARN);
}


@Override
public void before() throws Exception {
initialized = true;
Expand Down Expand Up @@ -93,8 +101,9 @@ public Path clearOpenCGAHome(String testName) throws IOException {

// Pedigree graph analysis
Path analysisPath = Files.createDirectories(opencgaHome.resolve("analysis/pedigree-graph")).toAbsolutePath();
FileInputStream inputStream = new FileInputStream("../opencga-app/app/analysis/pedigree-graph/ped.R");
Files.copy(inputStream, analysisPath.resolve("ped.R"), StandardCopyOption.REPLACE_EXISTING);
Files.copy(sourceAnalysisPath.resolve("pedigree-graph/ped.R"),
analysisPath.resolve("ped.R"), StandardCopyOption.REPLACE_EXISTING);

return opencgaHome;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ protected Query getVariantQuery() {
}

// FIXME This method must be deleted once deprecated params are not supported any more
static Query getVariantQuery(QueryOptions queryOptions) {
public static Query getVariantQuery(QueryOptions queryOptions) {
Query query = VariantStorageManager.getVariantQuery(queryOptions);
queryOptions.forEach((key, value) -> {
org.opencb.commons.datastore.core.QueryParam newKey = DEPRECATED_VARIANT_QUERY_PARAM.get(key);
Expand Down