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

Ref #1376: Regression with creating store and old location on 1st launch #1586

Merged
merged 1 commit into from Oct 1, 2019

Conversation

@iccub
Copy link
Contributor

iccub commented Sep 27, 2019

Summary of Changes

This pull request fixes issue #1376

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

Screenshots:

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).
@iccub iccub requested review from jhreis and danishjafri88 Sep 27, 2019
@@ -41,18 +40,6 @@ public class DataController: NSObject {
return mom
}()

// Internal scope so unit tests can recreate the DB stack as needed.
override init() {

This comment has been minimized.

Copy link
@iccub

iccub Sep 27, 2019

Author Contributor

This initalizer was called before migration was fully completed, and on first launch it was using the old documents directory. After removing it all should be working fine.

This was done to fix intermittent bug with data tests, but so far these tests are not failing, I will keep an eye on it

managedObjectModel: DataController.model)

super.init()
storeSetup()

This comment has been minimized.

Copy link
@danishjafri88

danishjafri88 Sep 27, 2019

Contributor

This function storeSetup . is only used here. We can remove it. perhaps?

@iccub iccub force-pushed the bugfix/1376_regression branch from a6f0802 to 4696a2f Sep 27, 2019
@iccub iccub requested a review from danishjafri88 Sep 27, 2019
@jhreis
jhreis approved these changes Oct 1, 2019
@jhreis jhreis merged commit c24ec54 into development Oct 1, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@jhreis jhreis deleted the bugfix/1376_regression branch Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.