-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
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.
One test request. Otherwise LGTM.
@@ -1371,9 +1372,27 @@ final class DatabaseService { | |||
}) | |||
.first | |||
} | |||
|
|||
func writeActivity<Data: Codable>(event: ActivityEvent<Data>) throws { |
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.
Let's add a test for this method using in-memory SQL
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.
Yep 👍
metadata TEXT DEFAULT '{}' NOT NULL, | ||
created TEXT DEFAULT CURRENT_TIMESTAMP NOT NULL | ||
); | ||
""" |
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.
Is it possible to also add a test for these migrations using a fresh in-memory SQL DB? This is a question. I don't recall if I put together the code to make that work.
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.
Done!
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.
LGTM!
Trying not to over engineer anything here.
activity
SQLite tableAs mentioned above, this is a step towards offering more sophisticated behaviour in the Deck view over multiple sessions but it could also let us offer an "activity" view in the app where you can see updates like "
@gordon
published 4 notes".Screen.Recording.2024-01-10.at.12.21.16.pm.mov