-
Notifications
You must be signed in to change notification settings - Fork 311
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
metadata in link json #716
Comments
👍 Or the Zarr-ish |
I think ignored when parsing on initial loading makes sense.. but persistent across whatever changes are made in the UI? this seems like a bad idea as users might not be aware that this metadata exists and then start sharing links after fundamentally changing something about the link that the person who put the metadata into the json was expecting to be there. Can you elaborate a bit on the use case for persisting metadata in the json state? |
Indeed, it appears that unrecognized keys are currently ignored by neuroglancer anyway. So maybe I don't need any special feature, other than for someone to "bless" a particular key name (or prefix?) that is guaranteed not to become reserved in the future.
Yeah, that's a fair concern, and it might be enough to sink this proposal. We could start inventing mitigations (e.g. I could insert a checksum of some sort in my own metadata, or neuroglancer automatically adds
I admit that my main use-cases are achievable without persistence, as long as I can insert stuff into the JSON that will be ignored. But I think the power to persist one's own metadata might be convenient in some cases. It would allow for simpler provenance tracking without referring to a separate data source. Just brainstorming -- the following are all variations on the same theme:
|
When managing collections of neuroglancer links (as JSON documents), it would be convenient if I could sneak in a bit of metadata for myself. I wouldn't want the metadata to be actually used by neuroglancer in any way, but I would want it retained in the JSON state (and URL).
For example:
(I have additional metadata fields in mind that I won't bother explaining here.)
Would it be possible to permit a schemaless user-provided metadata field in the neuroglancer JSON state? (I don't have an opinion on the name of the key...
metadata
oruser-defined-metadata
or something like that seems fine.)cc: @olbris
The text was updated successfully, but these errors were encountered: