-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
Sessions table view model refactoring #703
Sessions table view model refactoring #703
Conversation
13f8114
to
4b5dca0
Compare
…imenting with schedule tab solution
9899bac
to
cee9fe2
Compare
|
||
keywords.removeAll() | ||
keywords.append(objectsIn: otherKeywords) | ||
keywords.append(realm.object(ofType: Keyword.self, forPrimaryKey: newKeyword.name) ?? newKeyword) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer equivalent since it doesn't handle removals
other.focuses.forEach { newFocus in | ||
let effectiveFocus: Focus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing logic doesn't handle removals, should we fix that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(that's true for all 3 lists that get updated here)
@@ -14,6 +14,7 @@ let package = Package( | |||
targets: ["ConfCore"]) | |||
], | |||
dependencies: [ | |||
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.4"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in use anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Haven't found any issues living on this build for a couple of days :)
Simplify how the table data source gets it's data and receives updated results from storage and how that is then combined with filtering predicates.
A structural change that will help make it simpler to convert to diffable datasource and/or leverage SwiftUI or move to outline view, etc. It's just simpler.