Skip to content

Merge query results on refined query when sub-results contains different headers#40

Open
jrmartin wants to merge 3 commits into
developmentfrom
feature/464
Open

Merge query results on refined query when sub-results contains different headers#40
jrmartin wants to merge 3 commits into
developmentfrom
feature/464

Conversation

@jrmartin

@jrmartin jrmartin commented Dec 12, 2019

Copy link
Copy Markdown
Contributor

Takes care of issue VirtualFlyBrain/geppetto-vfb#464

Outcome of query search:
NBLAST Similar to VGlut-F-200114 with List all images included in FlyCircuit 1.0 - single neurons (Chiang2010)

image

Merge query results on refined query when sub-results contains different
headers
@ddelpiano ddelpiano requested a review from filippomc January 24, 2020 18:02

@filippomc filippomc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Needs unit testing

// Add headers for new result to 'finalResults' list, this is done after merging results
// to avoid having a mismatch of values and headers prior to the merge.
if(!first){
finalResults.getHeader().addAll(result.getHeader());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is really calling a unit test! We have this in pygeppetto: https://github.com/openworm/pygeppetto/blob/5932729e4098cd6e0f766b9fd43ff6b33fce56a2/tests/test_datasource_service.py#L33. Should test also the case with different headers from here VirtualFlyBrain/geppetto-vfb#464

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