unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.65k stars 266 forks source link

Local UI doesn't work with a local `@unison/base/releases/x.y.z` branch #4611

Open ChrisPenner opened 5 months ago

ChrisPenner commented 5 months ago
.> clone @unison/base/releases/2.8.0
@unison/base/releases/2.8.0> ui

The ui fails to load, looks like the frontend is not recognizing the branch name, and is thus constructing invalid API URLs.

E.g. It calls:

/api/projects/@unison%2Fbase/releases/2.8.0/namespaces/ /api/projects/@unison%2Fbase/releases/2.8.0/list

Whereas for a regular contribution branch it looks like this:

/api/projects/@unison%2Fbase/branches/@chrispenner%2Ftestcontribution/list

There's no valid API without the branches segment, so not sure what's going on there.

Zelenya commented 2 months ago

I'm not sure if this is related enough (I can open another issue, otherwise).

A small thing I bumped into today: After I’ve forked/branched-off a project using my misspelled github username, the local ui wasn’t working for me

@unison/website> branch @Zelenya/test                  
@unison/website/@Zelenya/test> ui
...
Shows not found page
@unison/website> branch @zelenya/test                  
@unison/website/@zelenya/test> ui
...
Shows unison local as expected