Skip to content

Explore Dash data sync via WorkManager - #789

Merged
HashEngineering merged 8 commits into
explore-dashfrom
explore-sync-data
Oct 22, 2021
Merged

HashEngineering merged 8 commits into
explore-dashfrom
explore-sync-data

Conversation

@tomasz-ludek

@tomasz-ludek tomasz-ludek commented Oct 22, 2021 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Explore Dash data sync via WorkManager

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@tomasz-ludek
tomasz-ludek requested a review from Syn-McJ October 22, 2021 10:42
@tomasz-ludek tomasz-ludek self-assigned this Oct 22, 2021

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, I left some possible suggestions for simplifying firebase methods.

continuation.resumeWith(Result.failure(IOException(databaseError.message)))
}
})
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can be greatly simplified by using await(), something like this:

override suspend fun getDataSize(tableName: String): Int {
    ...
    return query.get().await().getValue<Int>()
}

Same for the get() method

@tomasz-ludek
tomasz-ludek changed the base branch from fix-merchant-details to explore-dash October 22, 2021 12:17
@HashEngineering
HashEngineering merged commit ed9b869 into explore-dash Oct 22, 2021
@tomasz-ludek
tomasz-ludek deleted the explore-sync-data branch October 25, 2021 09:27
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.

3 participants