Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve local only sync #87

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Improve local only sync #87

wants to merge 8 commits into from

Conversation

opatry
Copy link
Owner

@opatry opatry commented Oct 30, 2024

Description

  • Local tasks coming from local only task lists weren't properly sync
  • Local only sub-tasks weren't displayed
  • Task hierarchy (sub tasks) & order wasn't preserved while syncing
  • position sorting wasn't enforced at DB query level

Checklist

  • I have read the CONTRIBUTING guide
  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing

Copy link

Job Summary for Gradle

Build & Test :: build
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
Taskfolio :tasks-app-desktop:assemble 8.10.1 Build Scan not published
Taskfolio :tasks-app-desktop:exportLibraryDefinitions 8.10.1 Build Scan not published

@opatry opatry force-pushed the improve-local-only-sync branch from a215d01 to 2fa07e3 Compare October 30, 2024 16:21
Copy link

Job Summary for Gradle

Build & Test :: build
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
Taskfolio :tasks-app-desktop:assemble 8.10.1 Build Scan not published
Taskfolio :tasks-app-android:assembleStoreRelease 8.10.1 Build Scan not published
Taskfolio test :tasks-app-android:testStoreReleaseUnitTest jvmTest 8.10.1 Build Scan not published
Taskfolio :tasks-app-android:exportLibraryDefinitions 8.10.1 Build Scan not published
Taskfolio :tasks-app-desktop:exportLibraryDefinitions 8.10.1 Build Scan not published

@opatry opatry force-pushed the improve-local-only-sync branch from 2fa07e3 to 205612f Compare October 30, 2024 17:16
@@ -223,6 +266,7 @@ class TaskRepository(
}
if (remoteTaskList != null) {
taskListDao.upsert(remoteTaskList.asTaskListEntity(localTaskList.id, localTaskList.sorting))
taskListIds[localTaskList.id] = remoteTaskList.id
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't ideal for the next step as it would consider this local only list as remote from now on.
In particular, it will query its tasks which aren't there for sure…

This should be refactored another way.

@opatry opatry force-pushed the improve-local-only-sync branch 2 times, most recently from f674a02 to 5412239 Compare November 5, 2024 07:33
@opatry opatry force-pushed the improve-local-only-sync branch from 5412239 to ac610fa Compare November 30, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant