Skip to content

fix(AssetSelect): report listing errors on the widget - #1084

Merged
dfguerrerom merged 1 commit into
mainfrom
fix/asset-select-errors
Oct 28, 2026
Merged

dfguerrerom merged 1 commit into
mainfrom
fix/asset-select-errors

Conversation

@dfguerrerom

@dfguerrerom dfguerrerom commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

When the asset list cannot be loaded, the error handler of AssetSelect called self.alert, which does not exist. Thus a failed listing raised an AttributeError, and the user saw no message.
Now the widget shows the error in error_messages. A reload that succeeds removes this error, but keeps the validation errors. When the lookup of a default asset fails, the widget now also logs a warning that it dropped the asset. Before, the log showed only the failed request.
New unit tests cover these three cases. The AssetSelect tests pass, also with live Earth Engine.

The get_items error handler called a missing self.alert, so a failed listing raised AttributeError and the user saw nothing. Show the error in error_messages instead, and log a warning when a default asset lookup fails instead of dropping it silently.
@dfguerrerom
dfguerrerom merged commit ff27550 into main Oct 28, 2026
8 of 9 checks passed
@dfguerrerom
dfguerrerom deleted the fix/asset-select-errors branch October 28, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant