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

    lemon-wall-20836

    01/26/2021, 3:07 PM
    AFAIK we are not doing anything special regarding POST requests
  • a

    acoustic-dusk-34165

    01/26/2021, 3:07 PM
    I can check it out more, just wanted to gut check so I didn't go too far if you've experienced it
  • l

    lemon-wall-20836

    01/26/2021, 3:08 PM
    sure. let me know if I can help debug it. really:)
  • a

    acoustic-dusk-34165

    01/26/2021, 3:08 PM
    Awesome, thank you!
  • l

    lemon-wall-20836

    01/26/2021, 3:09 PM
    regarding
    2.
    we don't really do anything special with queries. we mostly use the AR models
  • l

    lemon-wall-20836

    01/26/2021, 3:09 PM
    I'd say that if there's a problem along that line... that would be a place to look
  • l

    lemon-wall-20836

    01/26/2021, 3:10 PM
    I mean... we don't do any "trickery" like "detect" the models, get the table and run a query against that table. always AR models
  • l

    lemon-wall-20836

    01/26/2021, 3:10 PM
    I have used the
    delayed_job
    gem and created a resource for that model
    Delayed::Job
  • l

    lemon-wall-20836

    01/26/2021, 3:11 PM
    there's the
    @model = Delayed::Job
    option you can set in the initializer
  • l

    lemon-wall-20836

    01/26/2021, 3:11 PM
  • a

    acoustic-dusk-34165

    01/26/2021, 3:11 PM
    Like I said, I'll look into it more. I can create resources no problem, it's the associations that seem to be running into issues.
  • l

    lemon-wall-20836

    01/26/2021, 3:11 PM
    hmm. got it
  • l

    lemon-wall-20836

    01/26/2021, 3:12 PM
    cool. let me know how I can help
  • a

    acoustic-dusk-34165

    01/26/2021, 3:13 PM
    Gonna focus mainly on this Authenticity issues as it's blocking me right now. Then I'll check out associations. ๐Ÿ‘
  • a

    acoustic-dusk-34165

    01/26/2021, 3:22 PM
    Thanks for "rubber-ducky-ing" with me. We have an app that acted as a middleman between our services and external ones. We would just listen for messages and work them off appropriately. As such, there was no need for a web service. We've been bringing it all back and Avo "Just Worked (tm)". Except for one small stupid thing that I forgot to do: Ensure
    config.api_only
    is set to
    false
    . That fixes the authenticity issue. Duh. ๐Ÿ˜‰
  • l

    lemon-wall-20836

    01/26/2021, 3:24 PM
    that's awesome!
  • l

    lemon-wall-20836

    01/26/2021, 3:25 PM
    good job for fixing it!
  • d

    dry-lion-23745

    04/02/2021, 10:54 AM
    Hi, I'm very new to stimulus-reflex. How can I make filters like on this photo? Where can I see GOOD example? Any good starting point? How can I collect filters/parameters?
  • l

    lemon-wall-20836

    04/02/2021, 11:00 AM
    hey @User. I'm afraid we don't have too much experience with Stimulus Reflex either. We use Stimulus in Avo, but AFAIK they are different
  • b

    blue-hospital-77159

    04/10/2021, 4:48 PM
    Hey everyone, trying to generate a filter but it says the template is missing. Probably something went wrong when installing? All resources and controllers work as intended.
    Copy code
    Running via Spring preloader in process 51711
    Could not find "filters/select_filter.rb" in any of your source paths. Your current source paths are:
    /Users/ricardo/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/avo-1.2.6/lib/generators/avo/templates
  • l

    lemon-wall-20836

    04/10/2021, 4:49 PM
    Hey Ricardo. I see it. it's a bug with Avo
  • l

    lemon-wall-20836

    04/10/2021, 4:49 PM
    pushing a fix now
  • b

    blue-hospital-77159

    04/10/2021, 4:50 PM
    Oh, awesome, thanks. I can just copy paste from the docs but not sure what the correct path is to create the file on.
  • l

    lemon-wall-20836

    04/10/2021, 4:52 PM
    I'll paste them here. just a sec. pls
  • l

    lemon-wall-20836

    04/10/2021, 4:52 PM
    Copy code
    ruby
    class FilterName < Avo::Filters::SelectFilter
      self.name = 'Filter name'
    
      def apply(request, query, value)
        query
      end
    
      def options
        {}
      end
    end
  • l

    lemon-wall-20836

    04/10/2021, 4:52 PM
    select filter๐Ÿ‘†
  • b

    blue-hospital-77159

    04/10/2021, 4:52 PM
    Awesome, where should I put this? In the avo directory?
  • l

    lemon-wall-20836

    04/10/2021, 4:52 PM
    Copy code
    ruby
    class FilterName < Avo::Filters::BooleanFilter
      self.name = 'Filter name'
    
      def apply(request, query, value)
        query
      end
    
      def options
        {}
      end
    end
  • l

    lemon-wall-20836

    04/10/2021, 4:52 PM
    boolean filter
  • l

    lemon-wall-20836

    04/10/2021, 4:53 PM
    in
    app/avo/filters/FILTER_NAME.rb
12345...64Latest