-
Notifications
You must be signed in to change notification settings - Fork 214
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
Changesets applied after iModel open don't always work #7544
Comments
Sounds similar to https://github.com/iTwin/itwinjs-backlog/issues/1321, except that they explicitly call a fxn meant to refresh the viewport
Is it possible to easily do steps 3 and 5? I don't really know what it looks like in code to "generate a tile for element A" or whether that even makes sense. @markschlosseratbentley do you know? |
Tiles are generated based on the view. |
What would the relevant APIs be to achieve that? Does that mean I absolutely need a view (making the test impossible to write? or maybe just harder to write?) |
@nick4598 Actually, this test might be a good example of loading and checking a single tile (the root tile of a tree):
|
Describe the bug
When I download the first version of an iModel (which in this case I think is empty), then open the iModel, then pull changesets, I get an empty view. If I close the iModel and reopen it after pulling the changesets, it displays as expected. This implies to me that the view isn't properly handling the updates that were applied by the changesets.
To Reproduce
Steps to reproduce the behavior:
NativeApp.requestDownloadBriefcase
withasOf
set toNativeVersion.first()
andopts.syncMode
set toSyncMode.PullAndPush
.pullChanges
on the briefcase to update it to the latest version.Expected behavior
The iModel should display, including the latest changes present in the latest changeset.
Desktop (please complete the applicable information):
Additional context
If I close the iMode after calling
pullChanges
and then reopen it, everything displays fine. The sequence above was performed on a local build of the iTwin Mobile SDK sample app. However, I have no reason to believe that this is a mobile-only bug. I will be pushing the changes that allow for this sequence shortly. I can provide information about the specific iModel I am using upon request.Note: if I update the UserLabel on a specific element and push those changes on one device, then open the previously downloaded briefcase and pull changes, the UserLabel updates do immediately appear in the view. So some changes clearly do show up immediately without having the close and reopen the iModel.
The text was updated successfully, but these errors were encountered: