Browse Source

Clean up CoreDataStack

Marvin Polscheit 1 month ago
parent
commit
6c1fc58793
2 changed files with 12 additions and 6 deletions
  1. 0 6
      Model/CoreDataStack.swift
  2. 12 0
      Trio/Sources/Localizations/Main/Localizable.xcstrings

+ 0 - 6
Model/CoreDataStack.swift

@@ -443,9 +443,6 @@ extension CoreDataStack {
             request.resultType = .managedObjectResultType
         }
 
-        context.name = "fetchContext"
-        context.transactionAuthor = "fetchEntities"
-
         /// we need to ensure that the fetch immediately returns a value as long as the whole app does not use the async await pattern, otherwise we could perform this asynchronously with backgroundContext.perform and not block the thread
         return try context.performAndWait {
             do {
@@ -497,9 +494,6 @@ extension CoreDataStack {
             request.relationshipKeyPathsForPrefetching = prefetchKeyPaths
         }
 
-        context.name = "fetchContext"
-        context.transactionAuthor = "fetchEntities"
-
         return try await context.perform {
             do {
                 if propertiesToFetch != nil {

+ 12 - 0
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -29700,6 +29700,9 @@
         }
       }
     },
+    "Add Mock Garmin Watch" : {
+
+    },
     "Add Omnipod" : {
       "comment" : "Add Omnipod pump",
       "extractionState" : "manual",
@@ -199129,6 +199132,9 @@
         }
       }
     },
+    "Remove All Devices" : {
+
+    },
     "Remove Last" : {
       "localizations" : {
         "bg" : {
@@ -216085,6 +216091,12 @@
         }
       }
     },
+    "Simulator only - for testing UI workflow" : {
+
+    },
+    "Simulator Testing" : {
+
+    },
     "Skip Bolus screen after carbs" : {
       "comment" : "Do you want to show bolus screen after added carbs?",
       "extractionState" : "manual",