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

Trm 30823 uniparc proteome redundant fasta #524

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

LeonardoGonzales
Copy link
Contributor

No description provided.

# Conflicts:
#	uniparc-rest/src/test/java/org/uniprot/api/uniparc/controller/UniParcGetIdControllerIT.java
# Conflicts:
#	common-rest/src/main/java/org/uniprot/api/rest/output/converter/JsonMessageConverter.java
# Conflicts:
#	idmapping-common/src/main/java/org/uniprot/api/idmapping/common/response/converter/uniparc/UniParcEntryPairFastaMessageConverter.java
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/UniParcQueryService.java
#	uniparc-rest/src/main/java/org/uniprot/api/uniparc/controller/UniParcController.java
#	uniparc-rest/src/test/java/org/uniprot/api/uniparc/controller/AbstractGetSingleUniParcByIdTest.java
#	uniparc-rest/src/test/java/org/uniprot/api/uniparc/controller/UniParcGetByProteomeIdIT.java
# Conflicts:
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/UniParcEntryService.java
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/filter/UniParcCrossReferenceTaxonomyFilter.java
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/filter/UniParcDatabaseFilter.java
#	uniparc-common/src/test/java/org/uniprot/api/uniparc/common/service/filter/UniParcCrossReferenceTaxonomyFilterTest.java
#	uniparc-common/src/test/java/org/uniprot/api/uniparc/common/service/filter/UniParcDatabaseFilterTest.java
#	uniparc-common/src/test/java/org/uniprot/api/uniparc/common/service/filter/UniParcDatabaseStatusFilterTest.java
# Conflicts:
#	common-rest/src/main/java/org/uniprot/api/rest/openapi/OpenAPIConstants.java
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/repository/UniParcStreamConfig.java
#	uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/UniParcEntryService.java
#	uniparc-rest/src/main/java/org/uniprot/api/uniparc/controller/UniParcEntryLightController.java
.documentIdStream(uniParcTupleStreamDocumentIdStream)
.build();
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update k8s meta cm with any new config?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already added in k8s module.

MessageConverterContext<UniParcEntry> context, OutputStream outputStream) {
TL_ENTITY_ONLY.set(context.isEntityOnly());
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which API will set this isEntityOnly flag? I can only see in UniSave

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parser can be used for 2 scenarios, and we need entityOnly to distinguishes it.

  1. /uniparc/{upi} (entityOnly is true) -> and we should use the simple fastaParser
  2. /uniparc/proteome use cases (entityOnly is false) for the more complex proteomeFastaParser.

PS2: We change entity only "context.setEntityOnly(true)" at BasicSearchController.getEntityResponse for every getById request (Entry request).
PS1: For uniparc search and stream we have another UniParcLightFastaMessageConverter for the light object.

@Parameter(description = FIELDS_UNIPARC_DESCRIPTION, example = FIELDS_UNIPARC_EXAMPLE)
@ValidReturnFields(uniProtDataType = UniProtDataType.UNIPARC)
private String fields;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need fields in fasta format?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a Jira for it: TRM-32296

@@ -37,4 +61,88 @@ static UniParcDocument.UniParcDocumentBuilder getUniParcDocument(UniParcEntry en
}
return builder;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for moving the code to common place

"$.messages[0]",
containsString(
"Invalid request received. Requested media type/format not accepted: 'application/json'.")));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to have multivalues test for devs. Sometime, we miss unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants