Weekly Recap #2 #20
Replies: 4 comments 6 replies
-
Forgot to mention I'm also thinking of looking at a conversion script for Fixtures files, e.g. this: # test/fixtures/users.yml
kasper:
name: "Kasper" becomes: # test/seeds/users.rb
users.update :kasper, name: "Kasper" and so on. I've been meaning to test the inter-op between Rails' fixtures and our seeds so they can co-exist too. If anybody is interested in starting a PR for this, please do! |
Beta Was this translation helpful? Give feedback.
-
https://github.com/kaspth/oaken/blob/main/lib/oaken.rb#L28-L37 looks really good! 🎉
Never worked with it, but it seems like a good way to do it.
This sounds great! |
Beta Was this translation helpful? Give feedback.
-
I must be one of the folks on extreme end of the timezone - if I suggest this to be 7pm UTC+2 will that work out for everyone? But, this would be a great idea.
Nope.
This is a good idea as well 👍🏽
It's fine to follow. May not be able to contribute immediately but good enough to catchup.
Recaps are really helpful. Do continue this format. |
Beta Was this translation helpful? Give feedback.
-
I have worked with geminabox, but have never set it up. I think it needs a persistent folder to store the gem, I'm not sure if that's easily possible with Heroku.
I think a gotcha everybody stumbles upon when using fixtures instead of factorybot, is that factorybot executes Callbacks and Fixtures do not. I guess with
I'll try to join, great idea.
The API changes in the recap are really helpful. I haven't had time to check out all PRs yet, but seeing the API changes helps a lot to keep up.
I really like the async format and the api. When catching up I had some issues to understand with the Thank you so far. |
Beta Was this translation helpful? Give feedback.
-
Here's the second weekly recap!
In last weeks recap, I shared where we were at in code and it looked like this:
But now we've got this:
Which I think is a really nice improvement! It also ends up satisfying the
Up Next
part from last week's recap. It also feels good that the code itself is still just 115 lines.PRs
register :users, User
toregister User
where we'll automaticallytableize
the class name.Here's the stuff I worked on:
test/seeds.rb
.inflector
extension pattern.preregister
method that'll takeActiveRecord::Base.connection.tables
and automaticallyregister
each of those. This refactors this a bit. Note: this may also go away soon, since I'm wondering if we should do this work lazily — and it's also not the best to support multiple databases.has_many
through
association, and it just worked!!! I also added support forusers.with
to set default and derivable attributes. Check the PR for the comment on our bananasStruct
use.Up Next
Next week, I'd like to set up a
geminabox
server on Heroku to host the gem so you can start using it in your apps. Have any of you worked with this before?I've been meaning to do a write up on using GitHub better to follow along with this repo, and the tips are useful for building context in any repo.
@manuraj17 brought up namespaces, e.g. what happens to
register Post::Comment
, which I haven't really thought about yet. I'm going to be looking into having some sort of namespace conventions, maybeposts.comments.update :first, post: posts.first, subject: "My Insightful Critique, Vol. I", body: "In this Essay I will…"
I want to look at using
upsert
in our Active Record calls (right now we're doingfind_by
+update
orcreate
), because that would let us cache the fixture files in SQL and be able to just seed the database with that. It's probably pretty tricky to do reliably, so this is going to be a relatively long process to figure out whether or not that's viable.Setting up a Zoom/Whereby call to discuss where we're at, and hear your ideas. I'm curious if y'all are interested in doing a call? I could walk through the current codebase, and then we can see whatever else pops up. I'm thinking Thursday at 6pm UTC+2, that should cover most of the time zones we've got. How does that sound?
Kind of a packed week, this may be a bit too ambitious, so we'll see.
Contributions
I'm hoping that getting the gem out so y'all can use it more will mean that the API is settled more so it'll make sense to start looking at README and documentation writing. I'm hopeful we can get to that during the week. I'll probably make an announcement with some documentation tips.
How's it working for you so far?
It seems like what's worked best for me for working on the code is to pick a few days in the week and then do some bursts of activity (and that may change as we go along), but how's that been for y'all to follow? Is it still relatively easy to follow along with what's been going on and be caught up? — are the recaps helpful in cutting through all that instead if the PRs are too much?
Anything you feel like is missing here, or that we should do differently? How do you like the code and how the API is looking so far?
Beta Was this translation helpful? Give feedback.
All reactions