Adding Locking / Confirmations / Log Info to Authentic #1285
Replies: 2 comments 5 replies
-
The Lucky philosophy is geared more toward "batteries included" with the option of escape hatch for you to do your own thing. I think it makes sense for Authentic to have these options built-in. Our generators would just say "Do you want auth", and that's it. We wouldn't customize it for you. Once you have auth, if you wanted locking or confirmations, that would be up to you to look up the docs on how to enable it. I'm not a fan of the rails template stuff. I would like to stay away from going that route. We can always point people toward using that bloat gem and setting up their own stuff for that sort of thing. |
Beta Was this translation helpful? Give feedback.
-
Summary: I think we should make a lucky task in Authentic that generates most of the files, and outputs instructions for the bits it can't do easily (like adding to existing files, e.g. the This is a tricky one. Because we want to balance providing code that is tedious to do write yourself, without introducing too many options. I think if we provide things by default it should be easy to remove or useful in the majority of cases (i.e. very few people would want to remove it). In this case there are a number of files generated, columns added to the migration and model, etc. And not everyone wants/likes email confirmation. So it is hard to remove. We could do the devise route but I am personally not a fan because it is super hard to customize and understand what's going on because so much is hidden. I like generating most of the code instead, like we do now with So I'd say we should do one of these two things:
I think the real question is how do we do this. We could probably do a V1 with just teeplate and a lucky task in Authentic that generates the files However, long-term I think we need our own Railsbyte type thing so we don't need users to install Bloat and Ruby, etc. I think we really need something like |
Beta Was this translation helpful? Give feedback.
-
We have the following roadmap item:
Having just recently added email confirmations to Lucky Jumpstart here, I actually think this is worth a discussion about how much Lucky can/should take on.
I thought about using Teeplate for this in our generators, but that seems like it would get tedious for all of the various permutations of features you might want. Are these kinds of application features something we should consider building a more generic template capability like what Rails has? Otherwise, I think we'll constantly be pulled by the community towards implementing a massive set of base options that folks will only end up using a small portion of for most applications.
Beta Was this translation helpful? Give feedback.
All reactions