Bug 2056071 - remove BridgedEngine, app-services side. - #7483
Conversation
bendk
left a comment
There was a problem hiding this comment.
Looks great to me, I love seeing all the deleted lines.
| // This is what UniFFI exposes; it does nothing other than delegate to | ||
| // the shared `BridgedEngineWrapper`. See | ||
| // services/interfaces/mozIBridgedSyncEngine.idl for the Desktop contract. | ||
| // the shared `BridgedEngineWrapper`, which adapts our `SyncEngine`. |
There was a problem hiding this comment.
What's stopping us from removing this macro and the various [Component]BridgedEngine interfaces and replacing them with a single thing (maybe a trait interface that's defined in sync15)? The differences I can see are the GUID handling and the error type, which don't seem that big? I'm not suggesting you do anything different in this PR, I'm just wondering where we are in the larger process.
There was a problem hiding this comment.
Most recent version changes the guid handling too. Not entirely sure what you mean otherwise though - SyncEngine already is a trait in sync15, and bridged engine was a trait, but this is trying to roll them up so that only 1 engine need be implemented. But I'm totally up for future improvements!
There was a problem hiding this comment.
I think I was wondering if we could have a sync15::BridgedEngine trait and a blanket impl for everything that implements SyncEngine. I'm not sure that's better than the this PR, but doing away with the macro seems good to me.
3e70c1f to
d4dcbb6
Compare
72c99b5 to
f5cbd89
Compare
|
hey @DimiDL, this now also needed to touch addresses - I think it looks fine but want your review and also serves as a heads-up that I'm looking into landing this. |
This uniffis (ha) the desktop and mobile sync engine implementations. Desktop still uses the macro generated "bridge", and that's a duck-type JS model - which all of desktop sync already is so, yeah. Breaking change, will need to land phabricator/m-c's side of bug 2056071, which will have its own patch and also vendor this.
f5cbd89 to
bc0ec3f
Compare
Removes lots of code and combined desktop and mobile syncing significantly. Tagging Bastian too, sharing the love 😆 ❤️
This uniffis (ha) the desktop and mobile sync engine implementations. Desktop still uses the macro generated "bridge", and that's a duck-type JS model - which all of desktop sync already is so, yeah.
Breaking change, will need to land https://phabricator.services.mozilla.com/D312903 and vendor this.
Pull Request checklist
[ci full]to the PR title.