-
Notifications
You must be signed in to change notification settings - Fork 305
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
local echo (4/n): Migrate more fields to PerAccountStoreBase #1466
base: main
Are you sure you want to change the base?
Conversation
I see we were thinking in a similar direction today 🙂. I just sent #1467 which does the |
Thanks! This has been rebased atop #1467. |
#1467 has been merged, and GitHub says there are some conflicts; could you rebase again? |
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.
Thanks! Small comment below.
lib/model/store.dart
Outdated
@@ -384,6 +386,8 @@ abstract class PerAccountStoreBase { | |||
//////////////////////////////// | |||
// Data attached to the self-account on the realm. | |||
|
|||
String get queueId => _core.queueId; |
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 intentional to move this from the section
////////////////////////////////
// Where data comes from in the first place.
to the section
////////////////////////////////
// Data attached to the self-account on the realm.
?
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.
I want to position this after connection
and before accountId
, and I feel that it fits a bit better as it is associated with the self-account. But keeping it in the original section works too (proximity to UpdateMachine
, queueId
's old home, was a reason why it was there).
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.
Thanks for explaining; otherwise it looks like an accident 🙂 perhaps Greg has thoughts about it.
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.
Yeah, I think up next to connection
in the "Where data comes from in the first place" section would be better.
I see the queue ID as much more like the connection than it is like the account. It's part of "where data comes from" — each getEvents
call passes it in order to get the right events.
Conversely it's not really "attached to" the self-account, in that there may be zero, one, or many queues at any given time for a given account and the queues are fairly ephemeral.
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.
Makes sense. Move it up to be right after connection
.
Thanks, and thanks @chrisbobbe for the review! LGTM modulo the thread above. |
MessageStore will need to access
queueId
andselfUserId
later for outbox message support.