SUNET / sri-front

Frontend code for the SRI project
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Provider, Site Owner: Crash in detail view #232

Open jlguillen opened 3 years ago

jlguillen commented 3 years ago

If clicking on SUNET as provider the site crashes, same with and .

JS trace: "Provider SUNET - TypeError: ot[l.__typename] is undefined I see this 'Server error, redirecting to login please wait' for almost all the providers.

PaKZer0 commented 3 years ago

Site Owner NETNOD - TypeError: n[e.internalName] is null

mariahaider commented 3 years ago

I still see 'loading' for two providers.

mariahaider commented 3 years ago

All of them work except one. It is SUNET. When we click on it, the site crashes and show an empty page. @johanlundberg found this error 'TypeError: kt[t] is undefined'. No other information.

mariahaider commented 3 years ago

Site owners work now.

PaKZer0 commented 3 years ago

To check what's going on, here's a way to get the data fetched by the fronten, feel free to replace any sensible data

https://user-images.githubusercontent.com/2436503/105829439-aa47e800-5fc4-11eb-900d-878bdf12f01e.mp4

PaKZer0 commented 3 years ago

Now that we have some of the underlying data we know how to fix this. For HostUsers with the same name we will skip painting this entity, as it has no detail/edit/list view and only holds a name field (being this the same name of the entity we're editing or viewing).

mariahaider commented 3 years ago

This issue can be closed.