reaper47 / recipya

A clean, simple and powerful recipe manager your whole family will enjoy.
https://recipes.musicavis.ca
GNU General Public License v3.0
147 stars 10 forks source link

Correction of "Date Created" sort logic in recipe list #366

Closed bakker closed 1 week ago

bakker commented 1 week ago

Correction of "Date Created" sort logic in recipe list

Closes #365.

reaper47 commented 1 week ago

The tests fail:

--- FAIL: TestBuildBaseSelectRecipe (0.00s)
    --- FAIL: TestBuildBaseSelectRecipe/new_to_old (0.00s)
        select_test.go:71: expected "ROW_NUMBER() OVER (ORDER BY recipes.created_at ASC) AS row_num" in SELECT of query
    --- FAIL: TestBuildBaseSelectRecipe/old_to_new (0.00s)
        select_test.go:71: expected "ROW_NUMBER() OVER (ORDER BY recipes.created_at DESC) AS row_num" in SELECT of query
FAIL

You can run the tests locally by running task test-no-build.