Skip to content

simplify and fix neuronjson fields processing#401

Merged
DocSavage merged 2 commits intomasterfrom
dev
Feb 11, 2025
Merged

simplify and fix neuronjson fields processing#401
DocSavage merged 2 commits intomasterfrom
dev

Conversation

@DocSavage
Copy link
Member

@DocSavage DocSavage commented Feb 11, 2025

This addresses an issue noticed by @stuarteberg regarding incorrect behavior for the neuronjson datatype's /all endpoint when only selecting fields with _user and show=user query string:

http://dvid-server/api/node/:master/segmentation_annotations/all?show=user&fields=type_user
http://dvid-server/api/node/:master/segmentation_annotations/all?show=user&fields=type_user,type

The first will only return a fraction of the second request. This error was caused by a bug in overly complicated code to handle the various options for returning neuronjson data. It was fixed by moving from a procedure that removed fields to one that added fields from stored data as needed.

With the added tests I was able to verify the bad behavior between the two types of requests.


This change is Reviewable

@DocSavage DocSavage requested review from stuarteberg and removed request for stuarteberg February 11, 2025 03:43
@DocSavage DocSavage merged commit c2a47ed into master Feb 11, 2025
DocSavage added a commit that referenced this pull request Sep 4, 2025
simplify and fix neuronjson fields processing
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.

1 participant