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

merge for release v0.9.1 #222

Merged
merged 4 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -69,7 +69,7 @@ public BrAPIClientTest() {
.withEnv("BRAPI_DB_PASSWORD", "postgres")
.withClasspathResourceMapping("brapi/properties/application.properties", "/home/brapi/properties/application.properties", BindMode.READ_ONLY)
.withClasspathResourceMapping("sql/", "/home/brapi/sql/", BindMode.READ_ONLY)
.waitingFor(Wait.forLogMessage(".*Started BrapiTestServer in \\d*.\\d* seconds.*", 1).withStartupTimeout(Duration.ofMinutes(1)));
.waitingFor(Wait.forLogMessage(".*Started BrapiTestServer in \\d*.\\d* seconds.*", 1).withStartupTimeout(Duration.ofMinutes(5)));

dbContainer.start();
brapiContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.brapi.v2.model.BrAPISearchRequestParametersPaging;

/**
* PedigreeSearchRequest
*/

public class BrAPIPedigreeSearchRequest {
public class BrAPIPedigreeSearchRequest extends BrAPISearchRequestParametersPaging {
@JsonProperty("accessionNumbers")
private List<String> accessionNumbers = null;

Expand Down Expand Up @@ -74,12 +75,6 @@ public class BrAPIPedigreeSearchRequest {
@JsonProperty("instituteCodes")
private List<String> instituteCodes = null;

@JsonProperty("page")
private Integer page = null;

@JsonProperty("pageSize")
private Integer pageSize = null;

@JsonProperty("pedigreeDepth")
private Integer pedigreeDepth = null;

Expand Down Expand Up @@ -520,42 +515,6 @@ public void setInstituteCodes(List<String> instituteCodes) {
this.instituteCodes = instituteCodes;
}

public BrAPIPedigreeSearchRequest page(Integer page) {
this.page = page;
return this;
}

/**
* Which result page is requested. The page indexing starts at 0 (the first page is &#x27;page&#x27;&#x3D; 0). Default is &#x60;0&#x60;.
*
* @return page
**/
public Integer getPage() {
return page;
}

public void setPage(Integer page) {
this.page = page;
}

public BrAPIPedigreeSearchRequest pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}

/**
* The size of the pages to be returned. Default is &#x60;1000&#x60;.
*
* @return pageSize
**/
public Integer getPageSize() {
return pageSize;
}

public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}

public BrAPIPedigreeSearchRequest pedigreeDepth(Integer pedigreeDepth) {
this.pedigreeDepth = pedigreeDepth;
return this;
Expand Down Expand Up @@ -827,8 +786,6 @@ public boolean equals(Object o) {
Objects.equals(this.includeProgeny, pedigreeSearchRequest.includeProgeny) &&
Objects.equals(this.includeSiblings, pedigreeSearchRequest.includeSiblings) &&
Objects.equals(this.instituteCodes, pedigreeSearchRequest.instituteCodes) &&
Objects.equals(this.page, pedigreeSearchRequest.page) &&
Objects.equals(this.pageSize, pedigreeSearchRequest.pageSize) &&
Objects.equals(this.pedigreeDepth, pedigreeSearchRequest.pedigreeDepth) &&
Objects.equals(this.progenyDepth, pedigreeSearchRequest.progenyDepth) &&
Objects.equals(this.programDbIds, pedigreeSearchRequest.programDbIds) &&
Expand All @@ -843,7 +800,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(accessionNumbers, binomialNames, collections, commonCropNames, externalReferenceIDs, externalReferenceIds, externalReferenceSources, familyCodes, genus, germplasmDbIds, germplasmNames, germplasmPUIs, includeFullTree, includeParents, includeProgeny, includeSiblings, instituteCodes, page, pageSize, pedigreeDepth, progenyDepth, programDbIds, programNames, species, studyDbIds, studyNames, synonyms, trialDbIds, trialNames);
return Objects.hash(accessionNumbers, binomialNames, collections, commonCropNames, externalReferenceIDs, externalReferenceIds, externalReferenceSources, familyCodes, genus, germplasmDbIds, germplasmNames, germplasmPUIs, includeFullTree, includeParents, includeProgeny, includeSiblings, instituteCodes, pedigreeDepth, progenyDepth, programDbIds, programNames, species, studyDbIds, studyNames, synonyms, trialDbIds, trialNames);
}


Expand All @@ -869,8 +826,6 @@ public String toString() {
sb.append(" includeProgeny: ").append(toIndentedString(includeProgeny)).append("\n");
sb.append(" includeSiblings: ").append(toIndentedString(includeSiblings)).append("\n");
sb.append(" instituteCodes: ").append(toIndentedString(instituteCodes)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" pedigreeDepth: ").append(toIndentedString(pedigreeDepth)).append("\n");
sb.append(" progenyDepth: ").append(toIndentedString(progenyDepth)).append("\n");
sb.append(" programDbIds: ").append(toIndentedString(programDbIds)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@

import org.brapi.v2.model.BrAPIContext;
import org.brapi.v2.model.BrAPIMetadata;
import org.brapi.v2.model.BrAPIResponse;
import org.brapi.v2.model.pheno.response.BrAPIObservationUnitListResponseResult;

/**
* PedigreeListResponse
*/

public class BrAPIPedigreeListResponse {
public class BrAPIPedigreeListResponse implements BrAPIResponse<BrAPIPedigreeListResponseResult> {
@JsonProperty("@context")
private BrAPIContext _atContext = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
import java.util.List;
import java.util.Objects;

import org.brapi.v2.model.BrAPIResponseResult;
import org.brapi.v2.model.germ.BrAPIPedigreeNode;
import org.brapi.v2.model.pheno.BrAPIObservationUnit;

/**
* PedigreeListResponseResult
*/

public class BrAPIPedigreeListResponseResult {
public class BrAPIPedigreeListResponseResult implements BrAPIResponseResult<BrAPIPedigreeNode> {
@JsonProperty("data")
private List<BrAPIPedigreeNode> data = new ArrayList<BrAPIPedigreeNode>();

Expand Down
Loading