https://avo.cool logo
Join Discord
Powered by
# avo-2
  • l

    lemon-wall-20836

    04/15/2022, 4:38 PM
    pushing a release on Monday
  • l

    lemon-wall-20836

    04/15/2022, 4:38 PM
    I just uploaded the docs earlier
  • d

    dazzling-kite-85871

    04/15/2022, 4:38 PM
    Oh awesome, Monday is just fine!
  • d

    dazzling-kite-85871

    04/15/2022, 4:38 PM
    Thanks @lemon-wall-20836
  • l

    lemon-wall-20836

    04/15/2022, 4:39 PM
    for sure!
  • a

    acoustic-jackal-82257

    04/18/2022, 10:44 PM
    Hi evenryone, i need some help, maybe you can help me, I'am triying to implement this https://docs.avohq.io/2.0/faq.html#i-want-to-have-2-different-resources-maped-to-the-same-model-with-different-type, what i have done: - Create the models using https://guides.rubyonrails.org/association_basics.html#single-table-inheritance-sti - Added the resources on AVO but on the render i got the error of the image, Also i noticed that the resource is not present on the routes.
  • l

    lemon-wall-20836

    04/19/2022, 7:08 AM
    hey @acoustic-jackal-82257. Could you please create an issue? Also post some code of the models and the resources. https://avo.cool/new-issue
  • l

    lemon-wall-20836

    04/19/2022, 7:19 AM
    I filled out some new details in the docs. Specifically, I linked to the demo app where you can see how they are implemented there. Also, fill in the
    model_class
    for the derived model (it's also in the new docs section on STI)
  • l

    lemon-wall-20836

    04/19/2022, 7:20 AM
    https://docs.avohq.io/2.0/faq.html#sti-example
  • e

    early-camera-94059

    04/19/2022, 7:27 AM
    Hi, is it possible to create a customised resource view that has a filter pre-applied? Or rather, a specific scope on a model?
  • l

    lemon-wall-20836

    04/19/2022, 7:28 AM
    you can have filters with default values applied to the resource
    Index
    view
  • l

    lemon-wall-20836

    04/19/2022, 7:28 AM
    we do have scopes on the roadmap
  • e

    early-camera-94059

    04/19/2022, 7:33 AM
    How would this be done? Not sure I can see how from docs...
  • l

    lemon-wall-20836

    04/19/2022, 7:33 AM
    https://docs.avohq.io/2.0/filters.html#default-value
  • e

    early-camera-94059

    04/19/2022, 7:41 AM
    Is it possible to build a resource based on a AR model that isnt backed by a database table?
  • l

    lemon-wall-20836

    04/19/2022, 7:41 AM
    it is, but a bit hacky
  • l

    lemon-wall-20836

    04/19/2022, 7:42 AM
    https://docs.avohq.io/2.0/recipes/rest-api-integration.html
  • l

    lemon-wall-20836

    04/19/2022, 7:42 AM
    this is a guide contributed by a customer👆
  • l

    lemon-wall-20836

    04/19/2022, 7:42 AM
    it would be cool to support that in the future
  • q

    quaint-megabyte-28702

    04/19/2022, 7:59 PM
    hello - ive created an action from the dropdown, i am trying to redirect_to another path on my server /checkout - however, i keep getting a cors issue "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." has anyone else ran into the same issue? is there an easy solution?
  • l

    lemon-wall-20836

    04/20/2022, 8:36 AM
    hey @quaint-megabyte-28702 my first impression is that it's not an Avo related issue, but would love to help could you create a ticket with a few more details? Also check if you have any special CORS configuration in Rails. https://cln.sh/9e8KVm https://avo.cool/new-ticket
  • s

    strong-restaurant-36788

    04/24/2022, 5:10 PM
    Is it possible that Avo licensing is having an issue right now. Avo is broken for me in production (but not locally), and when I try locally or in production
    Avo::App.license
    it returns
    nil
    . In production it's raising an exception `/app/vendor/bundle/ruby/3.0.0/gems/avo-2.3.0/lib/avo/app.rb:108:in `main_menu': undefined method
    lacks_with_trial' for nil:NilClass (NoMethodError)
    I do have a pro license (and # looks fine). Any thoughts?
  • s

    strong-restaurant-36788

    04/24/2022, 5:10 PM
    or... is anyone else having issues?
  • l

    lemon-wall-20836

    04/24/2022, 5:17 PM
    Hey @strong-restaurant-36788 the server seems fine. Avodemo works ok.
  • l

    lemon-wall-20836

    04/24/2022, 5:18 PM
    Or maybe restart the app
  • l

    lemon-wall-20836

    04/24/2022, 5:19 PM
    That should force to revalidate the license key
  • l

    lemon-wall-20836

    04/24/2022, 5:19 PM
    I’ll push some changes next week to allow for more leaniant behavior
  • s

    strong-restaurant-36788

    04/24/2022, 5:21 PM
    Hmm. When clearing the cache, I get a
    1
    as the output, so it is clearing it, but after a cache clear and a restart, it's still an issue
  • s

    strong-restaurant-36788

    04/24/2022, 5:21 PM
    Maybe it's something else?
  • s

    strong-restaurant-36788

    04/24/2022, 5:21 PM
    Should
    Avo::App.license
    return something? (i.e. not nil)?
1...343536...64Latest