-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
# 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
uniparc-common/src/main/java/org/uniprot/api/uniparc/common/service/UniParcEntryService.java
Show resolved
Hide resolved
.documentIdStream(uniParcTupleStreamDocumentIdStream) | ||
.build(); | ||
} | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
...a/org/uniprot/api/uniparc/common/repository/store/stream/UniParcFastaBatchStoreIterable.java
Show resolved
Hide resolved
...a/org/uniprot/api/uniparc/common/repository/store/stream/UniParcFastaBatchStoreIterable.java
Show resolved
Hide resolved
MessageConverterContext<UniParcEntry> context, OutputStream outputStream) { | ||
TL_ENTITY_ONLY.set(context.isEntityOnly()); | ||
} | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
- /uniparc/{upi} (entityOnly is true) -> and we should use the simple fastaParser
- /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.
...mon/src/main/java/org/uniprot/api/uniparc/common/service/filter/UniParcProteomeIdFilter.java
Show resolved
Hide resolved
@Parameter(description = FIELDS_UNIPARC_DESCRIPTION, example = FIELDS_UNIPARC_EXAMPLE) | ||
@ValidReturnFields(uniProtDataType = UniProtDataType.UNIPARC) | ||
private String fields; | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; | |||
} | |||
|
There was a problem hiding this comment.
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'."))); | ||
} |
There was a problem hiding this comment.
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.
No description provided.