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

Sync - Generalizing resource downloading #58

Merged
merged 9 commits into from
Jun 30, 2020

Conversation

florina-muntenescu
Copy link
Collaborator

No description provided.

@florina-muntenescu florina-muntenescu changed the title [WIP] Sync - Generalizing resource downloading Sync - Generalizing resource downloading Jun 12, 2020
@florina-muntenescu florina-muntenescu force-pushed the fm/sync_prototype branch 5 times, most recently from a7d5b24 to 0d6fae1 Compare June 18, 2020 10:37
@@ -89,6 +90,11 @@ internal class DatabaseImpl(
} ?: throw ResourceNotFoundInDbException(type.name, id)
}

// TODO implement the last update date query
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to merge this after implementing it or merge w/ TODO?

// TODO find a better exception to throw
@Override
public Result sync() throws Exception {
if (syncConfiguration == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i think illegal state is proper here. and once we move to kotlin, we can just do checkNotNull

}
}

class SyncDownloadWorkerFactory(
Copy link
Contributor

Choose a reason for hiding this comment

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

does WM accept multiple workers?
if not, we should probably receive a delegate here so that it can be combined

Copy link
Collaborator Author

@florina-muntenescu florina-muntenescu Jun 28, 2020

Choose a reason for hiding this comment

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

I'll handle this properly as part of #71

Copy link
Contributor

@yigit yigit left a comment

Choose a reason for hiding this comment

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

just 1 suggestion then lgtm. thanks!

@florina-muntenescu florina-muntenescu merged commit 595a993 into master Jun 30, 2020
@florina-muntenescu florina-muntenescu deleted the fm/sync_prototype branch June 30, 2020 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants