cyberbotics / webots-cloud

Apache License 2.0
2 stars 2 forks source link

No 3dview for proto with no graphical representation #110

Closed BenjaminDeleze closed 1 year ago

BenjaminDeleze commented 1 year ago

Also change Field Summary to Field Description.

Test it here: https://testing.webots.cloud/run?version=R2023b&url=https://github.com/cyberbotics/webots/blob/doc-add-bo/projects/joints/protos/Hinge2JointWithBacklash.proto&type=undefined

omichel commented 1 year ago

Also, I believe we should avoid to add more ajax requests with individual SQL queries on the same table. Instead we should try to minimize these costly calls by grouping them together. For example, it would be nice to merge the calls to documentation.php, needs_robot_ancestor.php, display_3d_view.php and maybe insertable.php into a single call.

BenjaminDeleze commented 1 year ago

Also, I believe we should avoid to add more ajax requests with individual SQL queries on the same table. Instead we should try to minimize these costly calls by grouping them together. For example, it would be nice to merge the calls to documentation.php, needs_robot_ancestor.php, display_3d_view.php and maybe insertable.php into a single call.

If feasible for display_3d_view.php and documentation.php.

I did not do it initially because we do not always need the information returned by documentation.php but it is a good idea to merge the two files, the calls to the two ajax request is done two functions (both in webots-cloud.js) apart so it is no a problem to pass the information.

In the JavaScript code, it should probably be the same as in the proto file.

In JS we get the .json straigth from the .sql so the attribute is named no_3d_view

BenjaminDeleze commented 1 year ago

https://github.com/cyberbotics/webots/pull/5933 must be reviewed in parallel.