Conversation
```bash No available formula with the name "pg". ```
Owner
|
Thanks for the PR! And I'm excited to see what you build with Turbo Native. Unfortunately adding this sort doesn't change the underlying problem - the query is still returning duplicate entries. I just pushed a failing test to show what I mean. Let me know if that doesn't make sense! |
Author
|
Hi @joemasilotti, having a failing test case for #7 is great 👍. I pushed (what I proposed on #7) 7c85026 which fixes the test case: bin/rails test test/models/water_entry_tests.rb
Running 1 tests in a single process (parallelization threshold is 50)
Run options: --seed 63187
# Running:
.
Finished in 0.073761s, 13.5573 runs/s, 13.5573 assertions/s.
1 runs, 1 assertions, 0 failures, 0 errors, 0 skipsHowever, if I understand your comment here correctly, this is not what you want to have. Could you add another failing test to detail the expected behaviour further 🙏?
Have an amazing Pre-Christmas weekend 🎄👋, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solves #2
context
Hi @joemasilotti, nice to meet you 🤝. I came across this repo by way of your latest newsletter. I am in the process of writing a
Rails x Tailwind x Turbo-app myself, so I decided to dig into the source code here a little bit. Thehelp wanted-issues are great to solve some issues while looking around the code base.solution
The sorting happens on the
ruby-level (i.e. usingsort_by). This way we do not have to cross the#amount-abstraction level implemented bymeasured-rails. Performance-wise - I think - it's okay, since we'll have to load the threeWaterEntrys from the db for rendering the view anyway, so we might as well do the sorting after loading everything from the db.I added two
clean up-type commits on top.Let me know what you think.
Kind regards from Germany 🇩🇪,
Jan