fix: rely on api to properly sort tasks on home page #1997

Merged
konrad merged 5 commits from fix/due-soon-first into main 2022-06-01 17:00:00 +00:00
Owner

This PR changes the behaviour of how tasks are sorted. Before, the frontend would sort tasks but this resulted in some cases where tasks were not sorted properly. Most of this is test code to reliably reproduce the problem and make fixing it easier.
The actual bug was in Vikunja's api, therefore I've removed all sorting of tasks in the frontend and ensured the api properly sorts tasks.

Fixes https://github.com/go-vikunja/frontend/issues/54

Depends on vikunja/api#1177

This PR changes the behaviour of how tasks are sorted. Before, the frontend would sort tasks but this resulted in some cases where tasks were not sorted properly. Most of this is test code to reliably reproduce the problem and make fixing it easier. The actual bug was in Vikunja's api, therefore I've removed all sorting of tasks in the frontend and ensured the api properly sorts tasks. Fixes https://github.com/go-vikunja/frontend/issues/54 Depends on https://kolaente.dev/vikunja/api/pulls/1177
konrad added 4 commits 2022-05-28 09:28:09 +00:00
Author
Owner

Tests will fail since the api used in cypress tests is the old one without the fix. Will restart once the api PR is merged.

Tests will fail since the api used in cypress tests is the old one without the fix. Will restart once the api PR is merged.
Member

Hi konrad!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://1997-fix-due-soon-first--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi konrad! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://1997-fix-due-soon-first--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
dpschen reviewed 2022-05-30 10:41:28 +00:00
@ -0,0 +34,4 @@
return {tasks, list}
}
import '../../support/authenticateUser'

Move imports to top

Move imports to top
Author
Owner

Done.

Done.
konrad marked this conversation as resolved
@ -0,0 +106,4 @@
}, false)
cy.visit('/')
cy.get('[data-cy="showTasks"] .card .task')

Don't you remove the task class?

Don't you remove the task class?
Author
Owner

The <single-task-in-list/> component still has it.

The `<single-task-in-list/>` component still has it.

I was mostly asking because I remember the task class giving styling to some childs. But if that doesnt't apply here, all good :)

I was mostly asking because I remember the task class giving styling to some childs. But if that doesnt't apply here, all good :)
konrad changed title from WIP: fix: rely on api to properly sort tasks on home page to fix: rely on api to properly sort tasks on home page 2022-05-31 19:27:38 +00:00
konrad added 1 commit 2022-05-31 19:29:25 +00:00
continuous-integration/drone/pr Build is passing Details
fb994cab5c
chore: move imports to top
konrad requested review from dpschen 2022-05-31 19:29:41 +00:00
Author
Owner

@bolgrov This might be interesting to you.

@bolgrov This might be interesting to you.
dpschen approved these changes 2022-06-01 05:09:52 +00:00
konrad merged commit efed128f03 into main 2022-06-01 17:00:00 +00:00
konrad deleted branch fix/due-soon-first 2022-06-01 17:00:00 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.