-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Bug]: Invalid asset source causes models to disappear without a way to retrieve them #241
Comments
The main worry I have with this behavior is that the state of the site won't actually represent what the value of the components have. |
I wonder if it makes sense to reject invalid inputs to preserve what's reflected on the site to be consistent with the components. So the value is not changed until we verify that it is valid.
Unfortunately if users take a longer time to type, the Inspect widget would close and the model is lost. I tried leaving the partial asset value untouched for a couple seconds and visibility is automatically updated with the invalid source. But you're right that the scenarios PR would fix that such that we can always access the asset source. With the scenarios PR we can select the Model Description (they are still available and listed under Groups even if Model Instances are invisible) and try to correct the asset source, but after an invalid value is passed, even if we re-enter a valid one the Model Instances remain hidden. Added a video below to illustrate. missing_instance.mp4 |
Good points, I would propose the following behavior:
I think once we've finished migrating model spawning to use workflows this behavior should be pretty reasonable to pull off. |
We should probably also have a way for the issue reporting widget to list models with invalid asset sources and allow the user to select those items and fix the asset sources. |
Before proceeding, is there an existing issue or discussion for this?
OS and version
Ubuntu 24.04
Open-RMF installation type
Source build
Other Open-RMF installation methods
No response
Open-RMF version or commit hash
main
ROS distribution
Jazzy
ROS installation type
Docker
Other ROS installation methods
No response
Package or library, if applicable
No response
Description of the bug
When modifying the asset source, if an invalid source is provided, the model will disappear while the entity still exists. This makes it impossible for users to click on the same model to input a valid asset source.
Steps to reproduce the bug
Search
, type in any invalid model path. For example,OpenRobotics/
or leave it empty. Press Enter.Expected behavior
A suggested behavior would be for the model to remain visible with the previous valid asset source until a new valid asset source is provided.
Actual behavior
Model disappears with no way to retrieve it, warnings printed about component mismtach and
Model not found
. The asset source can no longer be modified from the editor as the model is hidden and cannot be selected.Additional information or screenshots
From an offline discussion with @mxgrey I understand that asset loading behavior can be greatly improved with the workflows PR #238, opening this ticket to track the progress of this bug.
The text was updated successfully, but these errors were encountered: