-
Notifications
You must be signed in to change notification settings - Fork 40
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
Upgrade viewer specific APIs to v5 #4973
Comments
For future reference, APIs that the viewer currently uses and potential V5 equivalents.
|
@carmenfan While mocking the test environment for my new route I noticed a few peculiarities in my local deployment that I use to check whether all is mocked as it would be in production:
I tried a Postman request via the v4 API against my local and it does return with a 200, but the json has only its basic structure without any file content. |
As far as I'm aware, model properties is still being used/called for the sake of the viewer knowing what to hide by default when we present the model. Unless it has another way of finding out this information (i don't think there is, at least not easily) I don't think it can be axed.
again, i don't think we've axed it, I just edited a federation and the new records had rid in it. this was done in staging, which should have the latest version fo bouncer (5.13.x) I'm suspecting you have a dodgy bouncer build 🤔 |
@carmenfan Is there a way for me to connect myself to the mongo DB on staging to get a more accurate picture? |
if you ask @nkuberaf he can probably hook you up with access |
…m already existing in the v5 typeCheck file. Replaced where used.
Currently, the viewer does not receive information whether the model is container or federation so it gets this through a call to the v4 API for the model settings. The new v5 API call for model settings however requires that knowledge already since it has container and federation paths. It also requires the project ID, which is also not passed into the viewer. I would suggest to expand the info that the viewer receives through the initial LoadModel call from the frontend by these two attributes as part of this issue and Viewer #566. |
Hi @FJThiel, yes unity-utils should be updated to take this from now on. The only question is whether we need a shim there for embedded viewers @carmenfan? (In which case, I'd say unity-util should do it, i.e. figure out which it is and pass the appropriate arguments to unity) |
yes do the change on unity util and we can get someone from frontend to adjust the call @sanmont3drepo fyi As for the workaround, i'd say let's skip for now, I'll double check to see if there's anyone other than cbim using the embedded viewer |
Okidoki. Just that I understand this correctly, you want me to just change the method in unity util and let the frontend team figure out how to get project and fed info there? Edit: If I am already touching that method, would you mind if I also throw out the branch parameter? It is still in there but not even passed on to Unity anymore. Edit 2: Also, I would like to take the opportunity to unify the terms we use there for teamspace. In the space of this one function, we call it teamspace, database, and account. |
yes
yes
Internally for sure, for public APIs lets wait and see who else is using the embedded viewer. |
… and federation info to the unity viewer
Description
Once the viewer is V5 ready, we should move over some of the APIs that it solely uses to V5 style. These include at least some model and textures calls.
Goals
Tasks
Related Resources
Unity Issue: https://github.com/3drepo/3drepounity/pull/522
The text was updated successfully, but these errors were encountered: