Commit 8dc157c
authored
LOOP-1200: Persist Alerts to CoreData (#89)
* LOOP-1200: Persist DeviceAlerts to CoreData
Also: Squash removePendingAlert and removeDeliveredAlert into retractAlert
* PR Feedback: Renaming
* checkpoint
* Checkpoint: back to codegen'd CoreData object (seems to work)
* Remove bits about expiration until we know how/when we want to do it.
* Shuffled some code around a little.
* oops these changes weren't staged.
* Add unit tests, remove query support (for another PR)
* PR Feedback, more unit tests
* PR feedback
* Add a log line for when an alert is not found to update
* PR Feedback: "flatten" Trigger so that it is queryable
Stored trigger type as an Int16, trigger interval as an optional Double (NSNumber).
* Add query using modification counter (#92)
* Add query using modification counter
* PR Feedback
* LOOP-1200: Dump Alert database into Issue Report (#93)
* LOOP-1200: Dump Alert database into Issue Report
Added query by date, plus unit tests.
* PR Feedback, plus some rework/refactor
This takes @darin's suggestion, with some modifications :). Now, the Filter is part of the Anchor, which makes it so anchoring continues to apply the filter as appropriate.
* LOOP-1200: alert persistence followups (#94)
* Add query using modification counter
* PR Feedback
* LOOP-1200: Dump Alert database into Issue Report
Added query by date, plus unit tests.
* PR Feedback, plus some rework/refactor
This takes @darin's suggestion, with some modifications :). Now, the Filter is part of the Anchor, which makes it so anchoring continues to apply the filter as appropriate.
* LOOP-1200: Split alertIdentifier and managerIdentifier
After talking with Paul, we determined that we will need to be able to either filter or group alerts by device, so it would be better to keep managerIdentifier separate now so it can be used in data queries.1 parent dafbfda commit 8dc157c
File tree
14 files changed
+936
-135
lines changed- Loop.xcodeproj
- LoopTests/Managers/Alerts
- Loop/Managers
- Alerts
- AlertStore.xcdatamodeld/AlertStore.xcdatamodel
14 files changed
+936
-135
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
612 | 618 | | |
613 | 619 | | |
614 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
615 | 627 | | |
616 | 628 | | |
617 | 629 | | |
| |||
1246 | 1258 | | |
1247 | 1259 | | |
1248 | 1260 | | |
1249 | | - | |
| 1261 | + | |
1250 | 1262 | | |
1251 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1252 | 1268 | | |
1253 | 1269 | | |
| 1270 | + | |
1254 | 1271 | | |
1255 | 1272 | | |
1256 | | - | |
| 1273 | + | |
1257 | 1274 | | |
1258 | 1275 | | |
1259 | 1276 | | |
1260 | 1277 | | |
1261 | 1278 | | |
1262 | | - | |
| 1279 | + | |
1263 | 1280 | | |
1264 | 1281 | | |
1265 | 1282 | | |
1266 | 1283 | | |
1267 | | - | |
| 1284 | + | |
1268 | 1285 | | |
1269 | 1286 | | |
| 1287 | + | |
1270 | 1288 | | |
1271 | 1289 | | |
1272 | 1290 | | |
1273 | 1291 | | |
1274 | | - | |
| 1292 | + | |
1275 | 1293 | | |
1276 | 1294 | | |
1277 | 1295 | | |
| |||
1681 | 1699 | | |
1682 | 1700 | | |
1683 | 1701 | | |
1684 | | - | |
| 1702 | + | |
1685 | 1703 | | |
1686 | 1704 | | |
1687 | 1705 | | |
| |||
2751 | 2769 | | |
2752 | 2770 | | |
2753 | 2771 | | |
| 2772 | + | |
2754 | 2773 | | |
2755 | 2774 | | |
2756 | 2775 | | |
| |||
2777 | 2796 | | |
2778 | 2797 | | |
2779 | 2798 | | |
| 2799 | + | |
2780 | 2800 | | |
2781 | 2801 | | |
2782 | 2802 | | |
| |||
2802 | 2822 | | |
2803 | 2823 | | |
2804 | 2824 | | |
| 2825 | + | |
2805 | 2826 | | |
2806 | 2827 | | |
2807 | 2828 | | |
| |||
2836 | 2857 | | |
2837 | 2858 | | |
2838 | 2859 | | |
| 2860 | + | |
2839 | 2861 | | |
2840 | 2862 | | |
2841 | 2863 | | |
2842 | 2864 | | |
2843 | 2865 | | |
2844 | 2866 | | |
2845 | 2867 | | |
| 2868 | + | |
2846 | 2869 | | |
2847 | 2870 | | |
2848 | 2871 | | |
| |||
3036 | 3059 | | |
3037 | 3060 | | |
3038 | 3061 | | |
| 3062 | + | |
3039 | 3063 | | |
3040 | 3064 | | |
3041 | 3065 | | |
| |||
4201 | 4225 | | |
4202 | 4226 | | |
4203 | 4227 | | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
4204 | 4241 | | |
4205 | 4242 | | |
4206 | 4243 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
0 commit comments