iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
606 stars 210 forks source link

Deprecate `SnapshotConnection.openRemote` and make `SnapshotConnection.openFile` IPC only #7171

Open GytisCepk opened 1 week ago

GytisCepk commented 1 week ago

Public API changes

Motivation

SnapshotConnection relies on SnapshotIModelRpcInterface for it's communication with the backend. With deprecation and eventual replacement of RPC, all RPC interfaces owned by core need to reviewed and rewritten as needed. While some of the other RPC interfaces (e.g. IModelReadRpcInterface) will need to be converted to the new architecture, I believe, SnapshotIModelRpcInterface can be moved to IPC as it doesn't make sense to have Web implementation for it.

Details

SnapshotConnection / SnapshotIModelRpcInterface has two main methods:

TODO

pmconne commented 1 week ago

Please add to your TODO list: Don't break display-test-app. See usage here.

markschlosseratbentley commented 2 days ago

lgtm;

@markschlosseratbentley please review changes to DTA

@MarcNeely FYI

markschlosseratbentley commented 2 days ago

lgtm; @markschlosseratbentley please review changes to DTA

@MarcNeely FYI

@aruniverse I did some very basic testing (successfully opened an iModel in a DTA built off this branch) and it works. @MarcNeely may have some more thorough testing he can do.

mergify[bot] commented 1 day ago

This pull request is now in conflicts. Could you fix it @GytisCepk? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

pmconne commented 1 day ago

I did some very basic testing (successfully opened an iModel in a DTA built off this branch) and it works.

Did you confirm you can edit an iModel?

markschlosseratbentley commented 1 day ago

I did some very basic testing (successfully opened an iModel in a DTA built off this branch) and it works.

Did you confirm you can edit an iModel?

I did not confirm this.

EDIT: fyi @pmconne I have now confirmed that I can successfully edit an iModel using this branch. I placed a bunch of line strings in an iModel and those lines persisted.

I used Electron DTA.