https://avo.cool logo
Has anyone else had issues with the app
# general
f
Has anyone else had issues with the app not rendering when going to create or edit page? The server seems to complete the request but the browser just hangs and I end up having to force quit the tab. Is it a turbo / hotwire issue?
This happens for any and all avo resource types. I'm running the app in Docker. Rails 7.1.3, Ruby 3.2.2
l
Hey @future-garden-51299 it seems to be a peculiar issue, are you able to see index and show pages for each record but not create and edit?
f
Yep
l
Do you have any monkey patch that can impact?
f
What i have is just the Active record models from our previous build with the schema. I installed avo. Generated resources as the UI failed when I navigated to default show pages, and then it bombs on
new
and
edit
screens
what does avo use for pipeline? importmaps?
l
Got it, any error on the logs or browser console?
f
it seems like a client side spinning issue
that's it
l
Avo compiles assets just before packing so assets should be served already compiled
f
it says completed, which is why i think it's a browser issue
l
Can you try on another browser? What are you using Btw?
f
I'm using Arc - just tried Safari - it gets a little further but is super laggy
l
With safari you get the page loaded?
f
it hangs but finishes, but if i click on any dropdowns for a retionship it lags big time
(shrug)
🤷‍♂️
l
Hmm I can't reproduce it right now but I'll try to see if is something browser related when get the chance
I normally use Firefox / Chrome and nothing similar to relate
f
The ActiveRecord model that's the hingepoint for the app is named resource, and i've named the avo resource AgencyResource, but i dont think that's an issue
l
Hmm did you set the
self.model_class = Resource
inside
Avo::Resources::AgemcyResource
?
f
yes
the server is loading fine it seems
l
Avo resources are mapped to records by name, i.e. Avo::Resources::Example will use by default the Example model but it can be changed by model_class option
f
thank you for trying to help - i have to jump of cause i gotta feed our newborn baby... if you have any ideas while in the shower lmk!
l
So we're good
Sure! Actually I'm leaving soon too, are you able to share the code maybe I can have a closer look and figure it out
l
Hey @future-garden-51299 thanks for trying Avo out. let’s hop on a call together
It’s really strange and definitely a n isolated event
Tthe important thing is that it’s fixable
f
Hey - thanks for reaching out. I’ll have more Flex Time tomorrow. Can I message you then?
Thanks again for reaching out! I’ve been stressing about building this backend for a while
l
calendly.com/adrianthedev
f
For posterity, the issue was loading a
belongs_to
select field with over 100k records... the parent association gets populated elsewhere, so didn't need to be loaded in that form
l
the fix was
searchable: true
we had anothe sighting of this issue today
we'll fix this soon
2 Views