Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vincent Jousse
    @vjousse

    Hello, I'm discovering pipes atm and, in the documentation, it seems that there is a missing continue here: https://luckyframework.org/guides/http-and-routing/before-after-actions#sharing-pipes-across-actions
    This code doesn't work and throws an exception Error: no overload matches 'Blog::Index#ensure_pipe_return_response_or_continue' with type Nil:

    # src/actions/mixins/log_request.cr
    module LogRequest
      macro included
        after log_request_path
      end
    
      private def log_request_path
        Log.dexter.info { {method: request.method, path: request.path} }
      end
    end

    Am I missing something or am I write assuming there is a missing continue after the Log.dexter.info… line?

    Vincent Jousse
    @vjousse
    Oops forgot that we're now on discord ^^
    Håkan Nylén
    @confact
    @vjousse in before and after you need to call continue or throw an exception.
    Or return an response I mean, like html or json
    Rémy Marronnier
    @rmarronnier
    TLDR : Is there any way to create a persistent mutable object accessible from actions in Lucky?
    I'm building a json API without any DB, and I want to be able to share between routes an object holding the allowed apikeys and counting the api calls for each client. This object is updated with a scheduler (Thanks Tasker !) where it gets every few minutes the new apikeys from a firebase db (firestore) and posts the consumption.
    I tried creating a custom http handler : it works but I was starting to change it into a router to avoid counting api calls to wrong endpoints.
    I initialized it in a LuckyAction and set up a before pipeline, but quickly realized every api calls initialize (reset) this object...
    Is Habitat a sane way to solve this ? Are settings mutable ? Are Pulsar events persistent ?
    I'm sure there is an obvious way, but I can't find it :-/
    Edward Loveall
    @edwardloveall
    Hi @rmarronnier! We've migrated to Discord these days, so you're much more likely to get an answer there: https://discord.gg/HeqJUcb
    Rémy Marronnier
    @rmarronnier
    Thanks
    Carlos Donderis
    @CaDs
    Random message here. I was lurking around techempower benchmarks checking if someone already added Lucky (I was thinking about doing it myself) and I found that is already being benchmarked
    However, performance-wise it seems not to be scoring really well.
    Even compared with some Ruby frameworks (fair enough these are microframeworks) it seems to be slower.
    Taking into consideration the number of things Lucky packs I was expecting it not to be the fastest framework, but I was a little bit surprised to see it down there on the list.
    Edward Loveall
    @edwardloveall
    Hi @CaDs! Thanks for pointing that out. We've mostly moved to Discord for our chat. Would you mind posting that over there? https://discord.gg/HeqJUcb
    Carlos Donderis
    @CaDs
    sure
    Jack
    @wontruefree
    Chicago Ruby December meetup was just announced and I will be giving the talk on Ruby, Crystal, and Lucky https://www.meetup.com/ChicagoRuby/events/pjfxvrybcqbcb/
    Andi
    @awcrotwell
    Does lucky have a way to circumvent the http server and just handle requests? I am trying to deploy lucky on aws lambda.
    Edward Loveall
    @edwardloveall
    hey @andrewc910! we're all over on discord, so you're best bet is to ask over there :slight_smile: https://discord.gg/HeqJUcb
    Andi
    @awcrotwell
    Yeah o just saw that! Thanks!
    Kirk Haines
    @wyhaines
    Anyone awake? I am puzzled.
     1 | class UserFactory < Avram::Factory
                             ^-------------
    Error: undefined constant Avram::Factory
    I get that when trying to start a brand new app created with lucky init, pointing it at a freshly created database instance.
    Well, I get that when running script/setup.
    Edward Loveall
    @edwardloveall
    Hi @wyhaines! We've moved over to Discord. Much better chance that someone can help you over there: https://discord.gg/HeqJUcb
    Harm Aarts
    @haarts
    Quick question: I would like to use Lucky for a project which doesn't need a database. Can I?
    I found this reference: luckyframework/lucky#562 but it is old and I'm not sure where to add the code snippet
    Harm Aarts
    @haarts
    Discord I see. See you there!
    backward crazy mage puppy 36
    @backward-crazy-mage-puppy-36
    Is it possible to move lucky models, operations, pages, queries, serializers etc files out of their folders into a single folder ? Rearranging code in feature folders similar to https://github.com/damianham/amber_render_module .
    Edward Loveall
    @edwardloveall
    Hello future readers! Please join us on Discord instead: https://discord.gg/HeqJUcb
    Jean-Malan
    @Jean-Malan
    @edwardloveall That link is broken - any updated link?