Fork me on GitHub
#portal
<
2022-02-01
>
hiredman22:02:20

I am trying to add datafy/nav to objects I am passing to portal so I can navigate links. But what I get is, I drill down into my map until I get to the map what has the reference I want to follow, but once I get to that map, portal doesn't let me call nav on it, but I can see in the metadata that it has datafy and nav functions on the map

hiredman22:02:42

it will let me call datafy, which is just identity with some logging, and I can see it being called

hiredman22:02:08

and even on objects where portal does allow me to call nav, I never see the logging I have for the nav impl printing

djblue22:02:37

Does double clicking the collection value you want to navigate into not work?

hiredman22:02:36

sort of, when I attach the metadata it most go all weird, I think that must be it, I attached the metadata everywhere with the idea that if it does see references it doesn't do anything, but I think I am screwing with portal's navigation when I do that

hiredman22:02:58

I just don't see any evidence that call nav from the portal ui ever invokes the nav I defined

hiredman22:02:08

(none of the logging happens)

hiredman22:02:26

the logging for datafy fires just fine

hiredman22:02:23

Hah, got it, my nav implementation was wrong, throwing an exception somewhere inside portal when it was called, and there is no evidence of that anywhere

hiredman22:02:37

perfect, works great now

djblue23:02:42

Yeah, I don't think portal does a great job of reporting exceptions currently. Something to fix in the future. Glad it works! awesome

djblue23:02:51

The portal.ui.commands/show-client-errors command should give you the last couple of exceptions if you need to debug in the future

hiredman23:02:39

yeah, shows all my nav arity errors