unison
unison copied to clipboard
codebase UI shows wrong docs for a hash qualified name in a relative view
Here is a term on unison share in the namespace containing that term queried by name and queried by hash. The hash query shows docs from another term with a similar name. this term should have no docs.
They both query /api/getDefinition
with the same parameters for rootBranch
and relativeTo
but differ for names
(hashes shortened):
names=main
rootBranch=#rubverph...
relativeTo=iamevn.advent.year2021.day03
names=%2369dn0q...
rootBranch=#rubverph...
relativeTo=iamevn.advent.year2021.day03
The response for the hash query includes entries in termDocs
where there should be none:
Going from the root namespace instead seems to work correctly: query by name / query by hash
Hmmm, thought this one had been fixed (https://github.com/unisonweb/unison/issues/2557). Should verify if this problem is just the server or if ucm is impacted as well.
@ceedubs reports this also happening on the new Share.
@aryairani I might need some backend assistance on this.
Here's an example

https://share.unison-lang.org/@hojberg/code/latest/namespaces/public/projects/html/latest/;/terms/div